Merge pull request #5540 from zhuoshuguo/fix_cpu_header_include_guards

CPU:Fix header include guards
This commit is contained in:
Joakim Nohlgård 2016-06-22 11:58:02 +02:00 committed by GitHub
commit 9a0f3a9e40
28 changed files with 84 additions and 83 deletions

View File

@ -8,7 +8,8 @@
* directory for more details. * directory for more details.
*/ */
#ifndef __CLANG_COMPAT_H #ifndef CLANG_COMPAT_H
#define CLANG_COMPAT_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -25,4 +26,4 @@ extern "C" {
} }
#endif #endif
#endif #endif /* CLANG_COMPAT_H */

View File

@ -16,8 +16,8 @@
* @author Hauke Petersen <hauke.peterse@fu-berlin.de> * @author Hauke Petersen <hauke.peterse@fu-berlin.de>
*/ */
#ifndef __CPU_CONF_H #ifndef CPU_CONF_H
#define __CPU_CONF_H #define CPU_CONF_H
#include "cpu_conf_common.h" #include "cpu_conf_common.h"
#include "nrf51.h" #include "nrf51.h"
@ -39,5 +39,5 @@ extern "C" {
} }
#endif #endif
#endif /* __CPU_CONF_H */ #endif /* CPU_CONF_H */
/** @} */ /** @} */

View File

@ -27,8 +27,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
#ifndef __NRF51_BITS_H #ifndef NRF51_BITS_H
#define __NRF51_BITS_H #define NRF51_BITS_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -7077,4 +7077,4 @@
#endif #endif
/*lint --flb "Leave library region" */ /*lint --flb "Leave library region" */
#endif #endif /* NRF51_BITS_H */

View File

@ -27,8 +27,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
#ifndef __NRF52_BITS_H #ifndef NRF52_BITS_H
#define __NRF52_BITS_H #define NRF52_BITS_H
/*lint ++flb "Enter library region" */ /*lint ++flb "Enter library region" */
@ -12142,4 +12142,4 @@ extern "C" {
#endif #endif
/*lint --flb "Leave library region" */ /*lint --flb "Leave library region" */
#endif #endif /* NRF52_BITS_H */

View File

@ -18,8 +18,8 @@
* @author Hauke Petersen <hauke.petersen@fu-berlin.de> * @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/ */
#ifndef __CPU_CONF_H #ifndef CPU_CONF_H
#define __CPU_CONF_H #define CPU_CONF_H
#include "cpu_conf_common.h" #include "cpu_conf_common.h"
#include "sam3x8e.h" #include "sam3x8e.h"
@ -41,5 +41,5 @@ extern "C" {
} }
#endif #endif
#endif /* __CPU_CONF_H */ #endif /* CPU_CONF_H */
/** @} */ /** @} */

View File

@ -15,8 +15,8 @@
* @author Thomas Eichinger <thomas.eichinger@fu-berlin.de> * @author Thomas Eichinger <thomas.eichinger@fu-berlin.de>
*/ */
#ifndef __CPU_CONF_H #ifndef CPU_CONF_H
#define __CPU_CONF_H #define CPU_CONF_H
#include "cpu_conf_common.h" #include "cpu_conf_common.h"
@ -39,5 +39,5 @@ extern "C" {
} }
#endif #endif
#endif /* __CPU_CONF_H */ #endif /* CPU_CONF_H */
/** @} */ /** @} */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __CORTEX_M4_DEF_H__ #ifndef CORTEX_M4_DEF_H_
#define __CORTEX_M4_DEF_H__ #define CORTEX_M4_DEF_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -10062,4 +10062,4 @@ extern "C" {
} }
#endif #endif
#endif // __LM4F120H5QR_H__ #endif /* CORTEX_M4_DEF_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_ADC_H__ #ifndef HW_ADC_H_
#define __HW_ADC_H__ #define HW_ADC_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -1357,4 +1357,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_ADC_H__ #endif /* HW_ADC_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_GPIO_H__ #ifndef HW_GPIO_H_
#define __HW_GPIO_H__ #define HW_GPIO_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -197,4 +197,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_GPIO_H__ #endif /* HW_GPIO_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_HIBERNATE_H__ #ifndef HW_HIBERNATE_H_
#define __HW_HIBERNATE_H__ #define HW_HIBERNATE_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -291,4 +291,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_HIBERNATE_H__ #endif /* HW_HIBERNATE_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_I2C_H__ #ifndef HW_I2C_H_
#define __HW_I2C_H__ #define HW_I2C_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -494,4 +494,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_I2C_H__ #endif /* HW_I2C_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_INTS_H__ #ifndef HW_INTS_H_
#define __HW_INTS_H__ #define HW_INTS_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -222,4 +222,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_INTS_H__ #endif /* HW_INTS_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_MEMMAP_H__ #ifndef HW_MEMMAP_H_
#define __HW_MEMMAP_H__ #define HW_MEMMAP_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -169,4 +169,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_MEMMAP_H__ #endif /* HW_MEMMAP_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_NVIC_H__ #ifndef HW_NVIC_H_
#define __HW_NVIC_H__ #define HW_NVIC_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -1722,4 +1722,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_NVIC_H__ #endif /* HW_NVIC_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_PWM_H__ #ifndef HW_PWM_H_
#define __HW_PWM_H__ #define HW_PWM_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -2025,4 +2025,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_PWM_H__ #endif /* HW_PWM_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_SSI_H__ #ifndef HW_SSI_H_
#define __HW_SSI_H__ #define HW_SSI_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -249,4 +249,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_SSI_H__ #endif /* HW_SSI_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_SYSCTL_H__ #ifndef HW_SYSCTL_H_
#define __HW_SYSCTL_H__ #define HW_SYSCTL_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -3681,4 +3681,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_SYSCTL_H__ #endif /* HW_SYSCTL_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_SYSEXC_H__ #ifndef HW_SYSEXC_H_
#define __HW_SYSEXC_H__ #define HW_SYSEXC_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -136,4 +136,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_SYSEXC_H__ #endif /* HW_SYSEXC_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_TIMER_H__ #ifndef HW_TIMER_H_
#define __HW_TIMER_H__ #define HW_TIMER_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -764,4 +764,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_TIMER_H__ #endif /* HW_TIMER_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_TYPES_H__ #ifndef HW_TYPES_H_
#define __HW_TYPES_H__ #define HW_TYPES_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -223,4 +223,4 @@ typedef unsigned char tBoolean;
} }
#endif #endif
#endif // __HW_TYPES_H__ #endif /* HW_TYPES_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_UART_H__ #ifndef HW_UART_H_
#define __HW_UART_H__ #define HW_UART_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -527,4 +527,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_UART_H__ #endif /* HW_UART_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HW_WATCHDOG_H__ #ifndef HW_WATCHDOG_H_
#define __HW_WATCHDOG_H__ #define HW_WATCHDOG_H_
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
@ -196,4 +196,4 @@ extern "C" {
} }
#endif #endif
#endif // __HW_WATCHDOG_H__ #endif /* HW_WATCHDOG_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __ADC_H__ #ifndef ADC_H_
#define __ADC_H__ #define ADC_H_
//***************************************************************************** //*****************************************************************************
// //
@ -308,4 +308,4 @@ extern unsigned long ADCPhaseDelayGet(unsigned long ulBase);
} }
#endif #endif
#endif // __ADC_H__ #endif /* ADC_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __COMP_H__ #ifndef COMP_H_
#define __COMP_H__ #define COMP_H_
//***************************************************************************** //*****************************************************************************
// //
@ -142,4 +142,4 @@ extern void ComparatorIntClear(unsigned long ulBase, unsigned long ulComp);
} }
#endif #endif
#endif // __COMP_H__ #endif /* COMP_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __CPU_H__ #ifndef STELLARIS_CPU_H_
#define __CPU_H__ #define STELLARIS_CPU_H_
//***************************************************************************** //*****************************************************************************
// //
@ -72,4 +72,4 @@ extern void CPUbasepriSet(unsigned long ulNewBasepri);
} }
#endif #endif
#endif // __CPU_H__ #endif /* STELLARIS_CPU_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __FPU_H__ #ifndef FPU_H_
#define __FPU_H__ #define FPU_H_
//***************************************************************************** //*****************************************************************************
// //
@ -109,4 +109,4 @@ extern void FPURoundingModeSet(unsigned long ulMode);
} }
#endif #endif
#endif // __FPU_H__ #endif /* FPU_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __GPIO_H__ #ifndef GPIO_H_
#define __GPIO_H__ #define GPIO_H_
//***************************************************************************** //*****************************************************************************
// //
@ -196,4 +196,4 @@ extern void GPIOADCTriggerDisable(unsigned long ulPort, unsigned char ucPins);
} }
#endif #endif
#endif // __GPIO_H__ #endif /* GPIO_H_ */

View File

@ -37,8 +37,8 @@
// //
//***************************************************************************** //*****************************************************************************
#ifndef __HIBERNATE_H__ #ifndef HIBERNATE_H_
#define __HIBERNATE_H__ #define HIBERNATE_H_
//***************************************************************************** //*****************************************************************************
// //
@ -164,4 +164,4 @@ extern unsigned long HibernateBatCheckDone(void);
} }
#endif #endif
#endif // __HIBERNATE_H__ #endif /* HIBERNATE_H_ */