include: fix double include pre-processor guards

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2022-01-15 04:44:35 +02:00
committed by Alan Carvalho de Assis
parent 1adee3d657
commit 8d3bf05fd2
684 changed files with 2242 additions and 2252 deletions
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __BOARD_HALL3PH_H
#define __BOARD_HALL3PH_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_BOARD_HALL3PH_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_BOARD_HALL3PH_H
/****************************************************************************
* Included Files
@@ -64,4 +64,4 @@ int board_hall3ph_initialize(int devno, int pha, int phb, int phc);
}
#endif
#endif // __BOARD_HALL3PH_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_BOARD_HALL3PH_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_QENCODER_H
#define __STM32_QENCODER_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_BOARD_QENCODER_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_BOARD_QENCODER_H
/****************************************************************************
* Included Files
@@ -70,4 +70,4 @@ int board_qencoder_initialize(int devno, int timerno);
}
#endif
#endif // __STM32_QENCODER_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_BOARD_QENCODER_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_APA102_H
#define __STM32_APA102_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_APA102_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_APA102_H
/****************************************************************************
* Included Files
@@ -81,4 +81,4 @@ int board_apa102_initialize(int devno, int spino);
}
#endif
#endif // __STM32_APA102_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_APA102_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_APDS9960_H
#define __STM32_APDS9960_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_APDS9960_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_APDS9960_H
/****************************************************************************
* Included Files
@@ -77,4 +77,4 @@ int board_apds9960_initialize(int devno, int busno);
}
#endif
#endif // __STM32_APDS9960_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_APDS9960_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_BH1750_H
#define __STM32_BH1750_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_BH1750_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_BH1750_H
/****************************************************************************
* Included Files
@@ -77,4 +77,4 @@ int board_bh1750_initialize(int devno, int busno);
}
#endif
#endif // __STM32_BH1750_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_BH1750_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_BMP180_H
#define __STM32_BMP180_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_BMP180_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_BMP180_H
/****************************************************************************
* Included Files
@@ -81,4 +81,4 @@ int board_bmp180_initialize(int devno, int busno);
}
#endif
#endif // __STM32_BMP180_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_BMP180_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_DHTXX_H
#define __STM32_DHTXX_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_DHTXX_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_DHTXX_H
/****************************************************************************
* Included Files
@@ -78,4 +78,4 @@ int board_dhtxx_initialize(int devno);
}
#endif
#endif // __STM32_DHTXX_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_DHTXX_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_HCSR04_H
#define __STM32_HCSR04_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_HCSR04_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_HCSR04_H
/****************************************************************************
* Included Files
@@ -78,4 +78,4 @@ int board_hcsr04_initialize(int devno);
}
#endif
#endif // __STM32_HCSR04_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_HCSR04_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_IHM07M1_H
#define __STM32_IHM07M1_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_IHM07M1_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_IHM07M1_H
/****************************************************************************
* Included Files
@@ -56,4 +56,4 @@ int board_ihm07m1_initialize(FAR struct stm32_foc_adc_s *adc_cfg);
}
#endif
#endif // __STM32_IHM07M1_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_IHM07M1_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_IHM08M1_H
#define __STM32_IHM08M1_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_IHM08M1_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_IHM08M1_H
/****************************************************************************
* Included Files
@@ -56,4 +56,4 @@ int board_ihm08m1_initialize(FAR struct stm32_foc_adc_s *adc_cfg);
}
#endif
#endif // __STM32_IHM08M1_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_IHM08M1_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_IHM16M1_H
#define __STM32_IHM16M1_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_IHM16M1_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_IHM16M1_H
/****************************************************************************
* Included Files
@@ -56,4 +56,4 @@ int board_ihm16m1_initialize(FAR struct stm32_foc_adc_s *adc_cfg);
}
#endif
#endif // __STM32_IHM16M1_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_IHM16M1_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_INA219_H
#define __STM32_INA219_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_INA219_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_INA219_H
/****************************************************************************
* Included Files
@@ -77,4 +77,4 @@ int board_ina219_initialize(int devno, int busno);
}
#endif
#endif // __STM32_INA219_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_INA219_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_L3GD20_H
#define __STM32_L3GD20_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_L3GD20_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_L3GD20_H
/****************************************************************************
* Included Files
@@ -78,4 +78,4 @@ int board_l3gd20_initialize(int devno, int busno);
}
#endif
#endif // __STM32_L3GD20_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_L3GD20_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_LCD_BACKPACK_H
#define __STM32_LCD_BACKPACK_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_LCD_BACKPACK_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_LCD_BACKPACK_H
/****************************************************************************
* Included Files
@@ -80,4 +80,4 @@ int board_lcd_backpack_init(int devno, int busno, int rows, int cols);
}
#endif
#endif /* __STM32_LCD_BACKPACK_H */
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_LCD_BACKPACK_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_LIS3DSH_H
#define __STM32_LIS3DSH_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_LIS3DSH_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_LIS3DSH_H
/****************************************************************************
* Included Files
@@ -77,4 +77,4 @@ int board_lis3dsh_initialize(int devno, int busno);
}
#endif
#endif // __STM32_LIS3DSH_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_LIS3DSH_H */
+3 -3
View File
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_LM75_H
#define __STM32_LM75_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_LM75_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_LM75_H
/****************************************************************************
* Included Files
@@ -77,4 +77,4 @@ int board_lm75_initialize(int devno, int busno);
}
#endif
#endif // __STM32_LM75_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_LM75_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_MAX31855_H
#define __STM32_MAX31855_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MAX31855_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MAX31855_H
/****************************************************************************
* Included Files
@@ -77,4 +77,4 @@ int board_max31855_initialize(int devno, int busno);
}
#endif
#endif // __STM32_MAX31855_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MAX31855_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_MAX6675_C
#define __STM32_MAX6675_C
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MAX6675_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MAX6675_H
/****************************************************************************
* Included Files
@@ -81,4 +81,4 @@ int board_max6675_initialize(int devno, int busno);
}
#endif
#endif // __STM32_MAX6675_C
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MAX6675_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_MLX90614_H
#define __STM32_MLX90614_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MLX90614_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MLX90614_H
/****************************************************************************
* Included Files
@@ -77,4 +77,4 @@ int board_mlx90614_initialize(int devno, int busno);
}
#endif
#endif // __STM32_MLX90614_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MLX90614_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_MPL115A_H
#define __STM32_MPL115A_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MPL115A_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MPL115A_H
/****************************************************************************
* Included Files
@@ -77,4 +77,4 @@ int board_mpl115a_initialize(int devno, int busno);
}
#endif
#endif // __STM32_MPL115A_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_MPL115A_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_NRF24L01_H
#define __STM32_NRF24L01_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_NRF24L01_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_NRF24L01_H
/****************************************************************************
* Included Files
@@ -76,4 +76,4 @@ int board_nrf24l01_initialize(int busno);
}
#endif
#endif // __STM32_NRF24L01_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_NRF24L01_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_NUNCHUCK_H
#define __STM32_NUNCHUCK_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_NUNCHUCK_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_NUNCHUCK_H
/****************************************************************************
* Included Files
@@ -82,4 +82,4 @@ int board_nunchuck_initialize(int devno, int busno);
}
#endif
#endif // __STM32_NUNCHUCK_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_NUNCHUCK_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_SSD1306_H
#define __STM32_SSD1306_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_SSD1306_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_SSD1306_H
/****************************************************************************
* Included Files
@@ -77,4 +77,4 @@ FAR struct lcd_dev_s *board_ssd1306_getdev(void);
}
#endif
#endif // __STM32_SSD1306_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_SSD1306_H */
+3 -3
View File
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_TONE_H
#define __STM32_TONE_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_TONE_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_TONE_H
/****************************************************************************
* Included Files
@@ -73,4 +73,4 @@ int board_tone_initialize(int devno);
}
#endif
#endif // __STM32_TONE_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_TONE_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_VEML6070_H
#define __STM32_VEML6070_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_VEML6070_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_VEML6070_H
/****************************************************************************
* Included Files
@@ -82,4 +82,4 @@ int board_veml6070_initialize(int devno, int busno);
}
#endif
#endif // __STM32_VEML6070_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_VEML6070_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_WS2812_H
#define __STM32_WS2812_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_WS2812_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_WS2812_H
/****************************************************************************
* Included Files
@@ -82,4 +82,4 @@ int board_ws2812_initialize(int devno, int spino, uint16_t nleds);
}
#endif
#endif // __STM32_WS2812_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_WS2812_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_XEN1210_H
#define __STM32_XEN1210_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_XEN1210_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_XEN1210_H
/****************************************************************************
* Included Files
@@ -78,4 +78,4 @@ int board_xen1210_initialize(int devno, int busno);
}
#endif
#endif // __STM32_XEN1210_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_XEN1210_H */
@@ -18,8 +18,8 @@
*
****************************************************************************/
#ifndef __STM32_ZEROCROSS_H
#define __STM32_ZEROCROSS_H
#ifndef __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_ZEROCROSS_H
#define __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_ZEROCROSS_H
/****************************************************************************
* Included Files
@@ -70,4 +70,4 @@ int board_zerocross_initialize(int devno);
}
#endif
#endif // __STM32_ZEROCROSS_H
#endif /* __BOARDS_ARM_STM32_COMMON_INCLUDE_STM32_ZEROCROSS_H */