Include guard script applied to all headers in the radio directory

This commit is contained in:
Bertrand Songis
2015-12-23 19:47:10 +01:00
parent b818c0df6b
commit 0f1ccc993e
60 changed files with 168 additions and 168 deletions
+3 -3
View File
@@ -34,8 +34,8 @@
*
*/
#ifndef board_stock_h
#define board_stock_h
#ifndef _BOARD_STOCK_H_
#define _BOARD_STOCK_H_
#include "../common_avr/board_avr.h"
@@ -250,4 +250,4 @@ void rotencPoll();
#define eepromReadBlock(a, b, c) eeprom_read_block(a, (const void *)b, c)
#endif
#endif
#endif // _BOARD_STOCK_H_
+3 -3
View File
@@ -14,8 +14,8 @@
*
*/
#ifndef _SERIAL_H_
#define _SERIAL_H_
#ifndef _SERIAL_DRIVER_H_
#define _SERIAL_DRIVER_H_
typedef enum serial_tx_state_ {
TX_STATE_EMPTY = 0, //
@@ -56,4 +56,4 @@ extern void SERIAL_send_uart_bytes(uint8_t * buf, uint16_t len);
void SERIAL_startTX(void);
#define IS_TX_BUSY (serialTxState!=TX_STATE_EMPTY)
#endif
#endif // _SERIAL_DRIVER_H_
+3 -3
View File
@@ -34,8 +34,8 @@
*
*/
#ifndef board_gruvin9x_h
#define board_gruvin9x_h
#ifndef _BOARD_GRUVIN9X_H_
#define _BOARD_GRUVIN9X_H_
#include "../common_avr/board_avr.h"
@@ -182,4 +182,4 @@ void pwrOff();
#define eepromReadBlock(a, b, c) eeprom_read_block(a, (const void *)b, c)
#endif
#endif
#endif // _BOARD_GRUVIN9X_H_
+3 -3
View File
@@ -34,8 +34,8 @@
*
*/
#ifndef _BOARD_FLAMENCO_H_
#define _BOARD_FLAMENCO_H_
#ifndef _BOARD_HORUS_H_
#define _BOARD_HORUS_H_
#include "stddef.h"
@@ -330,4 +330,4 @@ void usbJoystickUpdate(void);
void checkTrainerSettings(void);
#endif
#endif // _BOARD_HORUS_H_
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef _HAL_
#define _HAL_
#ifndef _HAL_H_
#define _HAL_H_
// Keys
#define KEYS_RCC_AHB1Periph_GPIO (RCC_AHB1Periph_GPIOB | RCC_AHB1Periph_GPIOC | RCC_AHB1Periph_GPIOD | RCC_AHB1Periph_GPIOE | RCC_AHB1Periph_GPIOG | RCC_AHB1Periph_GPIOH | RCC_AHB1Periph_GPIOI | RCC_AHB1Periph_GPIOJ)
@@ -249,4 +249,4 @@
#define TIMER_2MHz_APB1Periph RCC_APB1Periph_TIM7
#define TIMER_2MHz_TIMER TIM7
#endif
#endif // _HAL_H_
+3 -3
View File
@@ -27,8 +27,8 @@
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __SDIO_SD_H
#define __SDIO_SD_H
#ifndef _SDIO_SD_H_
#define _SDIO_SD_H_
#include "../horus/board_horus.h"
@@ -388,7 +388,7 @@ SD_Error SD_WaitWriteOperation(void);
extern SD_CardInfo SDCardInfo;
#endif /* __STM32F4_DISCOVERY_SDIO_SD_H */
#endif // _SDIO_SD_H_
/**
* @}
*/
+3 -3
View File
@@ -26,8 +26,8 @@
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USB_CONF__H__
#define __USB_CONF__H__
#ifndef _USB_CONF_H_
#define _USB_CONF_H_
#include "STM32F4xx_DSP_StdPeriph_Lib_V1.4.0/Libraries/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h"
@@ -165,7 +165,7 @@
#endif /* __CC_ARM */
#endif
#endif //__USB_CONF__H__
#endif // _USB_CONF_H_
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
+3 -3
View File
@@ -26,8 +26,8 @@
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USBD_CONF__H__
#define __USBD_CONF__H__
#ifndef _USBD_CONF_H_
#define _USBD_CONF_H_
/* Includes ------------------------------------------------------------------*/
#include "../horus/usb_conf.h"
@@ -64,7 +64,7 @@
#define APP_RX_DATA_SIZE 512 // USB serial port output buffer. TODO: tune this buffer size /* Total size of IN buffer: APP_RX_DATA_SIZE*8/MAX_BAUDARATE*1000 should be > CDC_IN_FRAME_INTERVAL */
#define APP_FOPS VCP_fops
#endif //__USBD_CONF__H__
#endif // _USBD_CONF_H_
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
+3 -3
View File
@@ -27,8 +27,8 @@
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USB_DESC_H
#define __USB_DESC_H
#ifndef _USBD_DESC_H_
#define _USBD_DESC_H_
/* Includes ------------------------------------------------------------------*/
#include "usb_core.h"
@@ -109,7 +109,7 @@ uint8_t * USBD_USR_USRStringDesc (uint8_t speed, uint8_t idx , uint16_t *len
* @}
*/
#endif /* __USBD_DESC_H */
#endif // _USBD_DESC_H_
/**
* @}
+3 -3
View File
@@ -35,8 +35,8 @@
*
*/
#ifndef board_mega2560_h
#define board_mega2560_h
#ifndef _BOARD_MEGA2560_H_
#define _BOARD_MEGA2560_H_
#include "../common_avr/board_avr.h"
@@ -178,4 +178,4 @@ void pwrOff();
#define eepromReadBlock(a, b, c) eeprom_read_block(a, (const void *)b, c)
#endif
#endif
#endif // _BOARD_MEGA2560_H_
+3 -3
View File
@@ -34,8 +34,8 @@
*
*/
#ifndef simpgmspace_h
#define simpgmspace_h
#ifndef _SIMPGMSPACE_H_
#define _SIMPGMSPACE_H_
extern int g_snapshot_idx;
@@ -453,4 +453,4 @@ extern char simuSdDirectory[1024];
#define sd_card_ready() (true)
#define sdMounted() (true)
#endif
#endif // _SIMPGMSPACE_H_
+3 -3
View File
@@ -31,8 +31,8 @@
/* Generated by : AT91 SW Application Group */
/* Generated on : 2009-10-26 */
#ifndef AT91SAM3S_H
#define AT91SAM3S_H
#ifndef _AT91SAM3S2_H_
#define _AT91SAM3S2_H_
/** \addtogroup AT91SAM3S_definitions AT91SAM3S definitions
This file defines all structures and symbols for AT91SAM3S:
@@ -7013,4 +7013,4 @@ typedef struct {
/*@}*/
#endif /* AT91SAM3S_H */
#endif // _AT91SAM3S2_H_
+3 -3
View File
@@ -31,8 +31,8 @@
/* Generated by : AT91 SW Application Group */
/* Generated on : 2009-10-26 */
#ifndef AT91SAM3S_H
#define AT91SAM3S_H
#ifndef _AT91SAM3S4_H_
#define _AT91SAM3S4_H_
/** \addtogroup AT91SAM3S_definitions AT91SAM3S definitions
This file defines all structures and symbols for AT91SAM3S:
@@ -7116,4 +7116,4 @@ typedef struct {
/*@}*/
#endif /* AT91SAM3S_H */
#endif // _AT91SAM3S4_H_
+3 -3
View File
@@ -45,8 +45,8 @@
///
//------------------------------------------------------------------------------
#ifndef MEDIA_H
#define MEDIA_H
#ifndef _MEDIA_H_
#define _MEDIA_H_
//------------------------------------------------------------------------------
// Definitions
@@ -284,5 +284,5 @@ static inline void MED_Handler(Media *media)
extern void MED_HandleAll(Media *medias, unsigned char numMedias);
#endif // _MEDIA_H
#endif // _MEDIA_H_
+3 -3
View File
@@ -34,8 +34,8 @@
*
*/
#ifndef _AUDIO_DRIVER_H_
#define _AUDIO_DRIVER_H_
#ifndef _AUDIO_DRIVER_H_
#define _AUDIO_DRIVER_H_
void audioInit( void ) ;
void audioEnd( void ) ;
@@ -59,4 +59,4 @@ extern const int8_t volumeScale[];
void setVolume(uint8_t volume);
#endif // _AUDIO_DRIVER_H_
#endif // _AUDIO_DRIVER_H_
+3 -3
View File
@@ -36,8 +36,8 @@
// TODO merge this file with board_sky9x.h
#ifndef board_h
#define board_h
#ifndef _BOARD_H_
#define _BOARD_H_
#include <stdint.h>
@@ -650,4 +650,4 @@ struct t_serial_tx
volatile uint16_t ready ;
};
#endif
#endif // _BOARD_H_
+3 -3
View File
@@ -34,8 +34,8 @@
*
*/
#ifndef board_sky9x_h
#define board_sky9x_h
#ifndef _BOARD_SKY9X_H_
#define _BOARD_SKY9X_H_
#include <stdio.h>
#include "board.h"
@@ -308,4 +308,4 @@ void telemetryTransmitBuffer(uint8_t * buffer, uint32_t size);
void serial2TelemetryInit(unsigned int protocol);
bool telemetrySecondPortReceive(uint8_t & data);
#endif
#endif // _BOARD_SKY9X_H_
+3 -3
View File
@@ -39,8 +39,8 @@
/// -# For misc, see "AT91SAM3S4 - Misc".
//------------------------------------------------------------------------------
#ifndef CHIP_H
#define CHIP_H
#ifndef _CHIP_H_
#define _CHIP_H_
//------------------------------------------------------------------------------
// Headers
@@ -126,5 +126,5 @@
//Misc
#endif //#ifndef CHIP_H
#endif // _CHIP_H_
+3 -3
View File
@@ -21,8 +21,8 @@
*
******************************************************************************/
#ifndef __CM3_CORE_H__
#define __CM3_CORE_H__
#ifndef _CORE_CM3_H_
#define _CORE_CM3_H_
/** @addtogroup CMSIS_CM3_core_LintCinfiguration CMSIS CM3 Core Lint Configuration
*
@@ -1813,6 +1813,6 @@ static __INLINE int ITM_CheckChar (void) {
/*@}*/ /* end of group CMSIS_CM3_core_definitions */
#endif /* __CM3_CORE_H__ */
#endif // _CORE_CM3_H_
/*lint -restore */
+3 -3
View File
@@ -8,8 +8,8 @@
* *
******************************************************************************
*/
#ifndef _ASPI_H_
#define _ASPI_H_
#ifndef _ASPI_H_
#define _ASPI_H_
#if defined(__cplusplus) && !defined(SIMU)
extern "C" {
@@ -39,5 +39,5 @@ void AspiData(u8 Para_data);
}
#endif
#endif
#endif // _ASPI_H_
+3 -3
View File
@@ -34,8 +34,8 @@
*
*/
#ifndef _BOARD_TARANIS_H_
#define _BOARD_TARANIS_H_
#ifndef _BOARD_TARANIS_H_
#define _BOARD_TARANIS_H_
#include "stddef.h"
@@ -400,4 +400,4 @@ void usbJoystickUpdate(void);
extern uint8_t currentTrainerMode;
void checkTrainerSettings(void);
#endif
#endif // _BOARD_TARANIS_H_
+3 -3
View File
@@ -1,5 +1,5 @@
#ifndef _HAL_
#define _HAL_
#ifndef _HAL_H_
#define _HAL_H_
// Keys
#define KEYS_GPIO_REG_MENU GPIOD->IDR
@@ -567,4 +567,4 @@
#define TIMER_2MHz_APB1Periph RCC_APB1Periph_TIM7
#define TIMER_2MHz_TIMER TIM7
#endif
#endif // _HAL_H_
+3 -3
View File
@@ -26,8 +26,8 @@
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USB_CONF__H__
#define __USB_CONF__H__
#ifndef _USB_CONF_H_
#define _USB_CONF_H_
#if defined(REV9E)
#include "STM32F4xx_DSP_StdPeriph_Lib_V1.4.0/Libraries/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h"
@@ -169,7 +169,7 @@
#endif /* __CC_ARM */
#endif
#endif //__USB_CONF__H__
#endif // _USB_CONF_H_
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
+3 -3
View File
@@ -26,8 +26,8 @@
*/
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USBD_CONF__H__
#define __USBD_CONF__H__
#ifndef _USBD_CONF_H_
#define _USBD_CONF_H_
/* Includes ------------------------------------------------------------------*/
#include "usb_conf.h"
@@ -64,7 +64,7 @@
#define APP_RX_DATA_SIZE 512 // USB serial port output buffer. TODO: tune this buffer size /* Total size of IN buffer: APP_RX_DATA_SIZE*8/MAX_BAUDARATE*1000 should be > CDC_IN_FRAME_INTERVAL */
#define APP_FOPS VCP_fops
#endif //__USBD_CONF__H__
#endif // _USBD_CONF_H_
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
+3 -3
View File
@@ -27,8 +27,8 @@
/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __USB_DESC_H
#define __USB_DESC_H
#ifndef _USBD_DESC_H_
#define _USBD_DESC_H_
/* Includes ------------------------------------------------------------------*/
#include "usb_core.h"
@@ -109,7 +109,7 @@ uint8_t * USBD_USR_USRStringDesc (uint8_t speed, uint8_t idx , uint16_t *len
* @}
*/
#endif /* __USBD_DESC_H */
#endif // _USBD_DESC_H_
/**
* @}