A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix

This commit is contained in:
Adam Dunkels 2013-11-24 16:57:08 +01:00
parent 42cae1c6c9
commit bb2dcaa057
572 changed files with 1708 additions and 1708 deletions

View file

@ -4,8 +4,8 @@
* <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
*/
#ifndef __FIB_BOOTLOADER_H__
#define __FIB_BOOTLOADER_H__
#ifndef FIB_BOOTLOADER_H_
#define FIB_BOOTLOADER_H_
//------------------------------------------------------------------------------
// Reset signatures.
@ -53,4 +53,4 @@ FibStatus fibFlashWrite(uint32_t address, uint8_t *data,
FibStatus fibFlashErase(FibEraseType eraseType, uint32_t address);
#endif //__FIB_BOOTLOADER_H__
#endif //FIB_BOOTLOADER_H_

View file

@ -1,5 +1,5 @@
#ifndef __ASM_H__
#define __ASM_H__
#ifndef ASM_H_
#define ASM_H_
#ifdef __IAR_SYSTEMS_ASM__
@ -54,4 +54,4 @@
#endif // __GNUC__
#endif // __ASM_H__
#endif // ASM_H_

View file

@ -15,8 +15,8 @@
*@{
*/
#ifndef __GNU_H__
#define __GNU_H__
#ifndef GNU_H_
#define GNU_H_
#include <stdint.h>
@ -536,7 +536,7 @@ int abs(int I);
#include "hal/micro/generic/compiler/platform-common.h"
#undef PLATCOMMONOKTOINCLUDE
#endif // __GNU_H__
#endif // GNU_H_
/** @} END addtogroup */

View file

@ -16,8 +16,8 @@
*@{
*/
#ifndef __IAR_H__
#define __IAR_H__
#ifndef IAR_H_
#define IAR_H_
#ifndef __ICCARM__
#error Improper PLATFORM_HEADER
@ -529,7 +529,7 @@ int abs(int I);
#include "hal/micro/generic/compiler/platform-common.h"
#undef PLATCOMMONOKTOINCLUDE
#endif // __IAR_H__
#endif // IAR_H_
/** @} END addtogroup */

View file

@ -19,8 +19,8 @@
*@{
*/
#ifndef __FLASH_H__
#define __FLASH_H__
#ifndef FLASH_H_
#define FLASH_H_
#include "memmap.h"
@ -120,7 +120,7 @@ StStatus halInternalCibOptionByteWrite(uint8_t byte, uint8_t data);
#endif //DOXYGEN_SHOULD_SKIP_THIS
#endif //__FLASH_H__
#endif //FLASH_H_
/** @} END addtogroup */

View file

@ -3,10 +3,10 @@
*
* <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
*/
#ifndef __MEMMAP_FAT_H__
#define __MEMMAP_FAT_H__
#ifndef MEMMAP_FAT_H_
#define MEMMAP_FAT_H_
#ifndef __MEMMAP_TABLES_H__
#ifndef MEMMAP_TABLES_H_
// if we weren't included via memmap-tables.h, define a dummy type for the BAT
typedef void HalBootloaderAddressTableType;
#endif
@ -48,4 +48,4 @@ extern const HalFixedAddressTableType halFixedAddressTable;
#define FAT_MAJOR_VERSION_MASK (0xFF00)
#endif //__MEMMAP_FAT_H__
#endif //MEMMAP_FAT_H_

View file

@ -3,8 +3,8 @@
*
* <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
*/
#ifndef __MEMMAP_H__
#define __MEMMAP_H__
#ifndef MEMMAP_H_
#define MEMMAP_H_
// Include the chip specific definitions
#ifndef LOADER
@ -62,5 +62,5 @@ typedef struct {
// Hal only references the FAT
#include "memmap-fat.h"
#endif //__MEMMMAP_H__
#endif //MEMMMAP_H_

View file

@ -4,8 +4,8 @@
* <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
*/
#ifndef __MFG_TOKEN_H__
#define __MFG_TOKEN_H__
#ifndef MFG_TOKEN_H_
#define MFG_TOKEN_H_
// The manufacturing tokens live in the Info Blocks, while all other tokens
@ -160,4 +160,4 @@ void halInternalSetMfgTokenData(uint16_t token, void *data, uint8_t len);
#endif //DOXYGEN_SHOULD_SKIP_THIS
#endif //__MFG_TOKEN_H__
#endif //MFG_TOKEN_H_

View file

@ -11,8 +11,8 @@
*@{
*/
#ifndef __STM32W108XX_MICRO_COMMON_H__
#define __STM32W108XX_MICRO_COMMON_H__
#ifndef STM32W108XX_MICRO_COMMON_H_
#define STM32W108XX_MICRO_COMMON_H_
#ifndef DOXYGEN_SHOULD_SKIP_THIS
#ifndef __STSTATUS_TYPE__
@ -285,7 +285,7 @@ void halCommonSeedRandom(uint32_t seed);
*/
uint16_t halCommonGetRandom(void);
#endif //__STM32W108XX_MICRO_COMMON_H__
#endif //STM32W108XX_MICRO_COMMON_H_
/**@} // END micro group
*/

View file

@ -4,9 +4,9 @@
*/
#ifndef __MPU_H__
#define __MPU_H__
#ifndef MPU_H_
#define MPU_H_
#define BYPASS_MPU(blah) blah
#endif//__MPU_H__
#endif//MPU_H_

View file

@ -29,8 +29,8 @@
*@{
*/
#ifndef __NVM_DEF_H__
#define __NVM_DEF_H__
#ifndef NVM_DEF_H_
#define NVM_DEF_H_
//The bottom 64 bytes of NVM storage is allocated to radio calibration
//values. These 64 bytes *must* exist for the radio to function.
@ -49,5 +49,5 @@
/** @} END addtogroup */
#endif // __NVM_DEF_H__
#endif // NVM_DEF_H_

View file

@ -170,8 +170,8 @@
*/
#ifndef __NVM_H__
#define __NVM_H__
#ifndef NVM_H_
#define NVM_H_
//Pull in the MFB_ definitions.
#include "hal/micro/cortexm3/memmap.h"
@ -275,5 +275,5 @@ StStatus halCommonWriteToNvm(const void *data, uint32_t offset, uint16_t length)
/** @} END addtogroup */
#endif // __NVM_H__
#endif // NVM_H_

View file

@ -7,8 +7,8 @@
*
* <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
*/
#ifndef _BOARD_H_
#define _BOARD_H_
#ifndef BOARD_H_
#define BOARD_H_
/** @addtogroup board
* @brief ST board abstraction layer
@ -253,7 +253,7 @@ void halBoardPowerUp(void);
*/
void halBoardPowerDown(void);
#endif /* _BOARD_H_ */
#endif /*BOARD_H_ */
/** @} // END addtogroup
*/

View file

@ -4,12 +4,12 @@
* <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
*/
#ifndef __MEMMAP_H__
#ifndef MEMMAP_H_
#error This header should not be included directly, use hal/micro/cortexm3/memmap.h
#endif
#ifndef __STM32W108_MEMMAP_H__
#define __STM32W108_MEMMAP_H__
#ifndef STM32W108_MEMMAP_H_
#define STM32W108_MEMMAP_H_
#define RAM_BOTTOM (0x20000000u)
#define RAM_SIZE_B (0x2000)
@ -54,4 +54,4 @@
#define PAGE_TO_PROG_ADDR(x) ((((uint32_t)(x)) << 10)|MFB_BOTTOM)
#endif //__STM32W108_MEMMAP_H__
#endif //STM32W108_MEMMAP_H_

View file

@ -1,5 +1,5 @@
#ifndef __REGS_H__
#define __REGS_H__ 1
#ifndef REGS_H_
#define REGS_H_ 1
#define ReadRegister(a) a
@ -11541,4 +11541,4 @@
#define DATA_VENDOR_SIZE (DATA_VENDOR_END - DATA_VENDOR_BASE + 1)
#endif /*__REGS_H__*/
#endif /*REGS_H_*/

View file

@ -5,8 +5,8 @@
* <!--(C) COPYRIGHT 2010 STMicroelectronics. All rights reserved. -->
*/
#ifndef __UART_MIN_H__
#define __UART_MIN_H__
#ifndef UART_MIN_H_
#define UART_MIN_H_
#ifdef __ICCARM__
#include <yfuns.h>
#endif
@ -69,4 +69,4 @@ int __io_getchar(void);
void __io_flush( void );
#endif //__UART_MIN_H__
#endif //UART_MIN_H_