aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/common/abstractions/cmsis_os/cmsis_os.h6
-rw-r--r--os/common/abstractions/nasa_osal/include/osapi-os-custom.h6
-rw-r--r--os/common/oslib/include/chbsem.h6
-rw-r--r--os/common/oslib/include/chheap.h6
-rw-r--r--os/common/oslib/include/chmboxes.h6
-rw-r--r--os/common/oslib/include/chmemcore.h6
-rw-r--r--os/common/oslib/include/chmempools.h6
-rw-r--r--os/common/ports/ARM/chcore.h6
-rw-r--r--os/common/ports/ARM/chcore_timer.h6
-rw-r--r--os/common/ports/ARM/compilers/GCC/chtypes.h6
-rw-r--r--os/common/ports/ARMCMx/chcore.h6
-rw-r--r--os/common/ports/ARMCMx/chcore_timer.h6
-rw-r--r--os/common/ports/ARMCMx/chcore_v6m.h6
-rw-r--r--os/common/ports/ARMCMx/chcore_v7m.h6
-rw-r--r--os/common/ports/ARMCMx/compilers/GCC/chtypes.h6
-rw-r--r--os/common/ports/ARMCMx/compilers/IAR/chtypes.h6
-rw-r--r--os/common/ports/ARMCMx/compilers/RVCT/chtypes.h6
-rw-r--r--os/common/ports/ARMCMx/mpu.h6
-rw-r--r--os/common/ports/AVR/chcore.h6
-rw-r--r--os/common/ports/AVR/chcore_timer.h6
-rw-r--r--os/common/ports/AVR/compilers/GCC/chtypes.h6
-rw-r--r--os/common/ports/SIMIA32/chcore.h6
-rw-r--r--os/common/ports/SIMIA32/compilers/GCC/chtypes.h6
-rw-r--r--os/common/ports/e200/chcore.h6
-rw-r--r--os/common/ports/e200/compilers/CW/chtypes.h6
-rw-r--r--os/common/ports/e200/compilers/GCC/chtypes.h6
-rw-r--r--os/common/ports/templates/chcore.h6
-rw-r--r--os/common/ports/templates/chtypes.h6
-rw-r--r--os/hal/include/hal.h6
-rw-r--r--os/hal/include/hal_adc.h6
-rw-r--r--os/hal/include/hal_buffers.h6
-rw-r--r--os/hal/include/hal_can.h6
-rw-r--r--os/hal/include/hal_channels.h6
-rw-r--r--os/hal/include/hal_dac.h6
-rw-r--r--os/hal/include/hal_ext.h6
-rw-r--r--os/hal/include/hal_files.h6
-rw-r--r--os/hal/include/hal_gpt.h6
-rw-r--r--os/hal/include/hal_i2c.h6
-rw-r--r--os/hal/include/hal_i2s.h6
-rw-r--r--os/hal/include/hal_icu.h6
-rw-r--r--os/hal/include/hal_ioblock.h6
-rw-r--r--os/hal/include/hal_mac.h6
-rw-r--r--os/hal/include/hal_mmc_spi.h6
-rw-r--r--os/hal/include/hal_mmcsd.h6
-rw-r--r--os/hal/include/hal_pal.h6
-rw-r--r--os/hal/include/hal_pwm.h6
-rw-r--r--os/hal/include/hal_queues.h6
-rw-r--r--os/hal/include/hal_rtc.h6
-rw-r--r--os/hal/include/hal_sdc.h6
-rw-r--r--os/hal/include/hal_serial.h6
-rw-r--r--os/hal/include/hal_serial_usb.h6
-rw-r--r--os/hal/include/hal_spi.h6
-rw-r--r--os/hal/include/hal_st.h6
-rw-r--r--os/hal/include/hal_streams.h6
-rw-r--r--os/hal/include/hal_uart.h6
-rw-r--r--os/hal/include/hal_usb.h6
-rw-r--r--os/hal/include/hal_wdg.h6
-rw-r--r--os/hal/include/mii.h6
-rw-r--r--os/hal/include/usb_cdc.h6
-rw-r--r--os/hal/templates/halconf.h6
-rw-r--r--os/hal/templates/mcuconf.h6
-rw-r--r--os/nil/include/ch.h6
-rw-r--r--os/nil/templates/chconf.h6
-rw-r--r--os/rt/include/ch.h6
-rw-r--r--os/rt/include/chalign.h6
-rw-r--r--os/rt/include/chcond.h6
-rw-r--r--os/rt/include/chcustomer.h6
-rw-r--r--os/rt/include/chdebug.h6
-rw-r--r--os/rt/include/chdynamic.h6
-rw-r--r--os/rt/include/chevents.h6
-rw-r--r--os/rt/include/chlicense.h6
-rw-r--r--os/rt/include/chmsg.h6
-rw-r--r--os/rt/include/chmtx.h6
-rw-r--r--os/rt/include/chregistry.h6
-rw-r--r--os/rt/include/chschd.h6
-rw-r--r--os/rt/include/chsem.h6
-rw-r--r--os/rt/include/chstats.h6
-rw-r--r--os/rt/include/chsys.h6
-rw-r--r--os/rt/include/chsystypes.h6
-rw-r--r--os/rt/include/chthreads.h6
-rw-r--r--os/rt/include/chtm.h6
-rw-r--r--os/rt/include/chvt.h6
-rw-r--r--os/rt/templates/chconf.h6
-rw-r--r--os/rt/templates/meta/module.h6
84 files changed, 252 insertions, 252 deletions
diff --git a/os/common/abstractions/cmsis_os/cmsis_os.h b/os/common/abstractions/cmsis_os/cmsis_os.h
index 2f5781ef5..fff13f19b 100644
--- a/os/common/abstractions/cmsis_os/cmsis_os.h
+++ b/os/common/abstractions/cmsis_os/cmsis_os.h
@@ -28,8 +28,8 @@
* @{
*/
-#ifndef _CMSIS_OS_H_
-#define _CMSIS_OS_H_
+#ifndef CMSIS_OS_H
+#define CMSIS_OS_H
#include "ch.h"
@@ -517,6 +517,6 @@ static inline osStatus osDelay(uint32_t millisec) {
return osOK;
}
-#endif /* _CMSIS_OS_H_ */
+#endif /* CMSIS_OS_H */
/** @} */
diff --git a/os/common/abstractions/nasa_osal/include/osapi-os-custom.h b/os/common/abstractions/nasa_osal/include/osapi-os-custom.h
index 34b63322e..4b9213118 100644
--- a/os/common/abstractions/nasa_osal/include/osapi-os-custom.h
+++ b/os/common/abstractions/nasa_osal/include/osapi-os-custom.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _OSAPI_CUSTOM_H_
-#define _OSAPI_CUSTOM_H_
+#ifndef OSAPI_CUSTOM_H
+#define OSAPI_CUSTOM_H
/*===========================================================================*/
/* Module constants. */
@@ -63,6 +63,6 @@ extern "C" {
/* Module inline functions. */
/*===========================================================================*/
-#endif /* _OSAPI_CUSTOM_H_ */
+#endif /* OSAPI_CUSTOM_H */
/** @} */
diff --git a/os/common/oslib/include/chbsem.h b/os/common/oslib/include/chbsem.h
index f4c5cdd68..ed4a6f806 100644
--- a/os/common/oslib/include/chbsem.h
+++ b/os/common/oslib/include/chbsem.h
@@ -46,8 +46,8 @@
* @{
*/
-#ifndef _CHBSEM_H_
-#define _CHBSEM_H_
+#ifndef CHBSEM_H
+#define CHBSEM_H
#if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
@@ -306,6 +306,6 @@ static inline bool chBSemGetStateI(binary_semaphore_t *bsp) {
#endif /* CH_CFG_USE_SEMAPHORES == TRUE */
-#endif /* _CHBSEM_H_ */
+#endif /* CHBSEM_H */
/** @} */
diff --git a/os/common/oslib/include/chheap.h b/os/common/oslib/include/chheap.h
index 9a90d0488..9a0bc083e 100644
--- a/os/common/oslib/include/chheap.h
+++ b/os/common/oslib/include/chheap.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHHEAP_H_
-#define _CHHEAP_H_
+#ifndef CHHEAP_H
+#define CHHEAP_H
#if (CH_CFG_USE_HEAP == TRUE) || defined(__DOXYGEN__)
@@ -166,6 +166,6 @@ static inline size_t chHeapGetSize(const void *p) {
#endif /* CH_CFG_USE_HEAP == TRUE */
-#endif /* _CHHEAP_H_ */
+#endif /* CHHEAP_H */
/** @} */
diff --git a/os/common/oslib/include/chmboxes.h b/os/common/oslib/include/chmboxes.h
index 5d6d17e28..cc1d743df 100644
--- a/os/common/oslib/include/chmboxes.h
+++ b/os/common/oslib/include/chmboxes.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHMBOXES_H_
-#define _CHMBOXES_H_
+#ifndef CHMBOXES_H
+#define CHMBOXES_H
#if (CH_CFG_USE_MAILBOXES == TRUE) || defined(__DOXYGEN__)
@@ -202,6 +202,6 @@ static inline msg_t chMBPeekI(mailbox_t *mbp) {
#endif /* CH_CFG_USE_MAILBOXES == TRUE */
-#endif /* _CHMBOXES_H_ */
+#endif /* CHMBOXES_H */
/** @} */
diff --git a/os/common/oslib/include/chmemcore.h b/os/common/oslib/include/chmemcore.h
index e9da764bb..014af50d6 100644
--- a/os/common/oslib/include/chmemcore.h
+++ b/os/common/oslib/include/chmemcore.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHMEMCORE_H_
-#define _CHMEMCORE_H_
+#ifndef CHMEMCORE_H
+#define CHMEMCORE_H
#if (CH_CFG_USE_MEMCORE == TRUE) || defined(__DOXYGEN__)
@@ -125,6 +125,6 @@ static inline void *chCoreAlloc(size_t size) {
#endif /* CH_CFG_USE_MEMCORE == TRUE */
-#endif /* _CHMEMCORE_H_ */
+#endif /* CHMEMCORE_H */
/** @} */
diff --git a/os/common/oslib/include/chmempools.h b/os/common/oslib/include/chmempools.h
index 71f53a67d..f6db5d808 100644
--- a/os/common/oslib/include/chmempools.h
+++ b/os/common/oslib/include/chmempools.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHMEMPOOLS_H_
-#define _CHMEMPOOLS_H_
+#ifndef CHMEMPOOLS_H
+#define CHMEMPOOLS_H
#if (CH_CFG_USE_MEMPOOLS == TRUE) || defined(__DOXYGEN__)
@@ -252,6 +252,6 @@ static inline void chGuardedPoolAddI(guarded_memory_pool_t *gmp, void *objp) {
#endif /* CH_CFG_USE_MEMPOOLS == TRUE */
-#endif /* _CHMEMPOOLS_H_ */
+#endif /* CHMEMPOOLS_H */
/** @} */
diff --git a/os/common/ports/ARM/chcore.h b/os/common/ports/ARM/chcore.h
index da1ccf7a4..532fb0d11 100644
--- a/os/common/ports/ARM/chcore.h
+++ b/os/common/ports/ARM/chcore.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCORE_H_
-#define _CHCORE_H_
+#ifndef CHCORE_H
+#define CHCORE_H
/*===========================================================================*/
/* Module constants. */
@@ -559,6 +559,6 @@ static inline void port_wait_for_interrupt(void) {
#endif /* !defined(_FROM_ASM_) */
-#endif /* _CHCORE_H_ */
+#endif /* CHCORE_H */
/** @} */
diff --git a/os/common/ports/ARM/chcore_timer.h b/os/common/ports/ARM/chcore_timer.h
index 3da4bb01e..8a0d264ba 100644
--- a/os/common/ports/ARM/chcore_timer.h
+++ b/os/common/ports/ARM/chcore_timer.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCORE_TIMER_H_
-#define _CHCORE_TIMER_H_
+#ifndef CHCORE_TIMER_H
+#define CHCORE_TIMER_H
/* This is the only header in the HAL designed to be include-able alone.*/
#include "hal_st.h"
@@ -119,6 +119,6 @@ static inline systime_t port_timer_get_alarm(void) {
return stGetAlarm();
}
-#endif /* _CHCORE_TIMER_H_ */
+#endif /* CHCORE_TIMER_H */
/** @} */
diff --git a/os/common/ports/ARM/compilers/GCC/chtypes.h b/os/common/ports/ARM/compilers/GCC/chtypes.h
index f4d13d133..c3290d8cc 100644
--- a/os/common/ports/ARM/compilers/GCC/chtypes.h
+++ b/os/common/ports/ARM/compilers/GCC/chtypes.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHTYPES_H_
-#define _CHTYPES_H_
+#ifndef CHTYPES_H
+#define CHTYPES_H
#include <stddef.h>
#include <stdint.h>
@@ -93,6 +93,6 @@ typedef uint32_t ucnt_t; /**< Generic unsigned counter. */
*/
#define PACKED_VAR __attribute__((packed))
-#endif /* _CHTYPES_H_ */
+#endif /* CHTYPES_H */
/** @} */
diff --git a/os/common/ports/ARMCMx/chcore.h b/os/common/ports/ARMCMx/chcore.h
index 3b876cad0..0669824dd 100644
--- a/os/common/ports/ARMCMx/chcore.h
+++ b/os/common/ports/ARMCMx/chcore.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCORE_H_
-#define _CHCORE_H_
+#ifndef CHCORE_H
+#define CHCORE_H
/*===========================================================================*/
/* Module constants. */
@@ -210,6 +210,6 @@ struct port_context {
#endif /* !defined(_FROM_ASM_) */
-#endif /* _CHCORE_H_ */
+#endif /* CHCORE_H */
/** @} */
diff --git a/os/common/ports/ARMCMx/chcore_timer.h b/os/common/ports/ARMCMx/chcore_timer.h
index eec7dcf79..32eca37b6 100644
--- a/os/common/ports/ARMCMx/chcore_timer.h
+++ b/os/common/ports/ARMCMx/chcore_timer.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCORE_TIMER_H_
-#define _CHCORE_TIMER_H_
+#ifndef CHCORE_TIMER_H
+#define CHCORE_TIMER_H
/* This is the only header in the HAL designed to be include-able alone.*/
#include "hal_st.h"
@@ -119,6 +119,6 @@ static inline systime_t port_timer_get_alarm(void) {
return stGetAlarm();
}
-#endif /* _CHCORE_TIMER_H_ */
+#endif /* CHCORE_TIMER_H */
/** @} */
diff --git a/os/common/ports/ARMCMx/chcore_v6m.h b/os/common/ports/ARMCMx/chcore_v6m.h
index dbda15e61..0afeeabe9 100644
--- a/os/common/ports/ARMCMx/chcore_v6m.h
+++ b/os/common/ports/ARMCMx/chcore_v6m.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCORE_V6M_H_
-#define _CHCORE_V6M_H_
+#ifndef CHCORE_V6M_H
+#define CHCORE_V6M_H
/*===========================================================================*/
/* Module constants. */
@@ -435,6 +435,6 @@ static inline void port_wait_for_interrupt(void) {
#endif /* _FROM_ASM_ */
-#endif /* _CHCORE_V6M_H_ */
+#endif /* CHCORE_V6M_H */
/** @} */
diff --git a/os/common/ports/ARMCMx/chcore_v7m.h b/os/common/ports/ARMCMx/chcore_v7m.h
index 5fc00820f..5dbbed8bd 100644
--- a/os/common/ports/ARMCMx/chcore_v7m.h
+++ b/os/common/ports/ARMCMx/chcore_v7m.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCORE_V7M_H_
-#define _CHCORE_V7M_H_
+#ifndef CHCORE_V7M_H
+#define CHCORE_V7M_H
/*===========================================================================*/
/* Module constants. */
@@ -693,6 +693,6 @@ static inline rtcnt_t port_rt_get_counter_value(void) {
#endif /* !defined(_FROM_ASM_) */
-#endif /* _CHCORE_V7M_H_ */
+#endif /* CHCORE_V7M_H */
/** @} */
diff --git a/os/common/ports/ARMCMx/compilers/GCC/chtypes.h b/os/common/ports/ARMCMx/compilers/GCC/chtypes.h
index 5e27b8620..8c03899d7 100644
--- a/os/common/ports/ARMCMx/compilers/GCC/chtypes.h
+++ b/os/common/ports/ARMCMx/compilers/GCC/chtypes.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHTYPES_H_
-#define _CHTYPES_H_
+#ifndef CHTYPES_H
+#define CHTYPES_H
#include <stddef.h>
#include <stdint.h>
@@ -98,6 +98,6 @@ typedef uint32_t ucnt_t; /**< Generic unsigned counter. */
*/
#define ALIGNED_VAR(n) __attribute__((aligned(n)))
-#endif /* _CHTYPES_H_ */
+#endif /* CHTYPES_H */
/** @} */
diff --git a/os/common/ports/ARMCMx/compilers/IAR/chtypes.h b/os/common/ports/ARMCMx/compilers/IAR/chtypes.h
index 1bd58185f..152a64fe0 100644
--- a/os/common/ports/ARMCMx/compilers/IAR/chtypes.h
+++ b/os/common/ports/ARMCMx/compilers/IAR/chtypes.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHTYPES_H_
-#define _CHTYPES_H_
+#ifndef CHTYPES_H
+#define CHTYPES_H
#include <stddef.h>
#include <stdint.h>
@@ -93,6 +93,6 @@ typedef uint32_t ucnt_t; /**< Generic unsigned counter. */
*/
#define PACKED_VAR __packed
-#endif /* _CHTYPES_H_ */
+#endif /* CHTYPES_H */
/** @} */
diff --git a/os/common/ports/ARMCMx/compilers/RVCT/chtypes.h b/os/common/ports/ARMCMx/compilers/RVCT/chtypes.h
index abc559668..398472dfe 100644
--- a/os/common/ports/ARMCMx/compilers/RVCT/chtypes.h
+++ b/os/common/ports/ARMCMx/compilers/RVCT/chtypes.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHTYPES_H_
-#define _CHTYPES_H_
+#ifndef CHTYPES_H
+#define CHTYPES_H
#include <stddef.h>
#include <stdint.h>
@@ -93,6 +93,6 @@ typedef uint32_t ucnt_t; /**< Generic unsigned counter. */
*/
#define PACKED_VAR __packed
-#endif /* _CHTYPES_H_ */
+#endif /* CHTYPES_H */
/** @} */
diff --git a/os/common/ports/ARMCMx/mpu.h b/os/common/ports/ARMCMx/mpu.h
index 0f98e8a8a..6de5c5c50 100644
--- a/os/common/ports/ARMCMx/mpu.h
+++ b/os/common/ports/ARMCMx/mpu.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _MPU_H_
-#define _MPU_H_
+#ifndef MPU_H
+#define MPU_H
/*===========================================================================*/
/* Driver constants. */
@@ -203,6 +203,6 @@ extern "C" {
}
#endif
-#endif /* _MPU_H_ */
+#endif /* MPU_H */
/** @} */
diff --git a/os/common/ports/AVR/chcore.h b/os/common/ports/AVR/chcore.h
index 175c00e19..823b38d8c 100644
--- a/os/common/ports/AVR/chcore.h
+++ b/os/common/ports/AVR/chcore.h
@@ -27,8 +27,8 @@
* @{
*/
-#ifndef _CHCORE_H_
-#define _CHCORE_H_
+#ifndef CHCORE_H
+#define CHCORE_H
/*===========================================================================*/
/* Module constants. */
@@ -525,6 +525,6 @@ static inline rtcnt_t port_rt_get_counter_value(void) {
#endif /* !defined(_FROM_ASM_) */
-#endif /* _CHCORE_H_ */
+#endif /* CHCORE_H */
/** @} */
diff --git a/os/common/ports/AVR/chcore_timer.h b/os/common/ports/AVR/chcore_timer.h
index 3d99af347..f1aaf1c73 100644
--- a/os/common/ports/AVR/chcore_timer.h
+++ b/os/common/ports/AVR/chcore_timer.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCORE_TIMER_H_
-#define _CHCORE_TIMER_H_
+#ifndef CHCORE_TIMER_H
+#define CHCORE_TIMER_H
/* This is the only header in the HAL designed to be include-able alone.*/
#include "hal_st.h"
@@ -119,6 +119,6 @@ static inline systime_t port_timer_get_alarm(void) {
return stGetAlarm();
}
-#endif /* _CHCORE_TIMER_H_ */
+#endif /* CHCORE_TIMER_H */
/** @} */
diff --git a/os/common/ports/AVR/compilers/GCC/chtypes.h b/os/common/ports/AVR/compilers/GCC/chtypes.h
index 20aae8ce1..8222a3f8e 100644
--- a/os/common/ports/AVR/compilers/GCC/chtypes.h
+++ b/os/common/ports/AVR/compilers/GCC/chtypes.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHTYPES_H_
-#define _CHTYPES_H_
+#ifndef CHTYPES_H
+#define CHTYPES_H
#include <stddef.h>
#include <stdint.h>
@@ -98,6 +98,6 @@ typedef uint8_t ucnt_t; /**< Generic unsigned counter. */
*/
#define ALIGNED_VAR(n) __attribute__((aligned(n)))
-#endif /* _CHTYPES_H_ */
+#endif /* CHTYPES_H */
/** @} */
diff --git a/os/common/ports/SIMIA32/chcore.h b/os/common/ports/SIMIA32/chcore.h
index 99301cd0e..b7db58e4b 100644
--- a/os/common/ports/SIMIA32/chcore.h
+++ b/os/common/ports/SIMIA32/chcore.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCORE_H_
-#define _CHCORE_H_
+#ifndef CHCORE_H
+#define CHCORE_H
/*===========================================================================*/
/* Module constants. */
@@ -377,6 +377,6 @@ static inline void port_wait_for_interrupt(void) {
_sim_check_for_interrupts();
}
-#endif /* _CHCORE_H_ */
+#endif /* CHCORE_H */
/** @} */
diff --git a/os/common/ports/SIMIA32/compilers/GCC/chtypes.h b/os/common/ports/SIMIA32/compilers/GCC/chtypes.h
index de5b0edfa..147db448d 100644
--- a/os/common/ports/SIMIA32/compilers/GCC/chtypes.h
+++ b/os/common/ports/SIMIA32/compilers/GCC/chtypes.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHTYPES_H_
-#define _CHTYPES_H_
+#ifndef CHTYPES_H
+#define CHTYPES_H
#include <stddef.h>
#include <stdint.h>
@@ -105,6 +105,6 @@ typedef uint32_t ucnt_t; /**< Generic unsigned counter. */
*/
#define PACKED_VAR __attribute__((packed))
-#endif /* _CHTYPES_H_ */
+#endif /* CHTYPES_H */
/** @} */
diff --git a/os/common/ports/e200/chcore.h b/os/common/ports/e200/chcore.h
index c86f7648a..d031f1c28 100644
--- a/os/common/ports/e200/chcore.h
+++ b/os/common/ports/e200/chcore.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCORE_H_
-#define _CHCORE_H_
+#ifndef CHCORE_H
+#define CHCORE_H
#include "intc.h"
@@ -626,6 +626,6 @@ static inline rtcnt_t port_rt_get_counter_value(void) {
#endif /* !defined(_FROM_ASM_) */
-#endif /* _CHCORE_H_ */
+#endif /* CHCORE_H */
/** @} */
diff --git a/os/common/ports/e200/compilers/CW/chtypes.h b/os/common/ports/e200/compilers/CW/chtypes.h
index 78b000424..4976da817 100644
--- a/os/common/ports/e200/compilers/CW/chtypes.h
+++ b/os/common/ports/e200/compilers/CW/chtypes.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHTYPES_H_
-#define _CHTYPES_H_
+#ifndef CHTYPES_H
+#define CHTYPES_H
#include <stddef.h>
#include <stdint.h>
@@ -88,6 +88,6 @@ typedef uint32_t ucnt_t; /**< Generic unsigned counter. */
*/
#define PORT_THD_FUNCTION(tname, arg) void tname(void *arg)
-#endif /* _CHTYPES_H_ */
+#endif /* CHTYPES_H */
/** @} */
diff --git a/os/common/ports/e200/compilers/GCC/chtypes.h b/os/common/ports/e200/compilers/GCC/chtypes.h
index 119c532e2..6ee1962b1 100644
--- a/os/common/ports/e200/compilers/GCC/chtypes.h
+++ b/os/common/ports/e200/compilers/GCC/chtypes.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHTYPES_H_
-#define _CHTYPES_H_
+#ifndef CHTYPES_H
+#define CHTYPES_H
#include <stddef.h>
#include <stdint.h>
@@ -88,6 +88,6 @@ typedef uint32_t ucnt_t; /**< Generic unsigned counter. */
*/
#define PORT_THD_FUNCTION(tname, arg) void tname(void *arg)
-#endif /* _CHTYPES_H_ */
+#endif /* CHTYPES_H */
/** @} */
diff --git a/os/common/ports/templates/chcore.h b/os/common/ports/templates/chcore.h
index ebefe487d..4b92a3a23 100644
--- a/os/common/ports/templates/chcore.h
+++ b/os/common/ports/templates/chcore.h
@@ -27,8 +27,8 @@
* @{
*/
-#ifndef _CHCORE_H_
-#define _CHCORE_H_
+#ifndef CHCORE_H
+#define CHCORE_H
/*===========================================================================*/
/* Module constants. */
@@ -447,6 +447,6 @@ static inline rtcnt_t port_rt_get_counter_value(void) {
#endif /* !defined(_FROM_ASM_) */
-#endif /* _CHCORE_H_ */
+#endif /* CHCORE_H */
/** @} */
diff --git a/os/common/ports/templates/chtypes.h b/os/common/ports/templates/chtypes.h
index c916f6c63..fa63f8898 100644
--- a/os/common/ports/templates/chtypes.h
+++ b/os/common/ports/templates/chtypes.h
@@ -29,8 +29,8 @@
* @{
*/
-#ifndef _CHTYPES_H_
-#define _CHTYPES_H_
+#ifndef CHTYPES_H
+#define CHTYPES_H
#include <stddef.h>
#include <stdint.h>
@@ -102,6 +102,6 @@ typedef uint32_t ucnt_t; /**< Generic unsigned counter. */
*/
#define ALIGNED_VAR(n) __attribute__((aligned(n)))
-#endif /* _CHTYPES_H_ */
+#endif /* CHTYPES_H */
/** @} */
diff --git a/os/hal/include/hal.h b/os/hal/include/hal.h
index ba7c2c591..876bd2b8a 100644
--- a/os/hal/include/hal.h
+++ b/os/hal/include/hal.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _HAL_H_
-#define _HAL_H_
+#ifndef HAL_H
+#define HAL_H
#include "osal.h"
#include "board.h"
@@ -156,6 +156,6 @@ extern "C" {
}
#endif
-#endif /* _HAL_H_ */
+#endif /* HAL_H */
/** @} */
diff --git a/os/hal/include/hal_adc.h b/os/hal/include/hal_adc.h
index 142ddfda7..5042d3338 100644
--- a/os/hal/include/hal_adc.h
+++ b/os/hal/include/hal_adc.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _ADC_H_
-#define _ADC_H_
+#ifndef HAL_ADC_H
+#define HAL_ADC_H
#if (HAL_USE_ADC == TRUE) || defined(__DOXYGEN__)
@@ -273,6 +273,6 @@ extern "C" {
#endif /* HAL_USE_ADC == TRUE */
-#endif /* _ADC_H_ */
+#endif /* HAL_ADC_H */
/** @} */
diff --git a/os/hal/include/hal_buffers.h b/os/hal/include/hal_buffers.h
index a7bc3a1db..21835b260 100644
--- a/os/hal/include/hal_buffers.h
+++ b/os/hal/include/hal_buffers.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _HAL_BUFFERS_H_
-#define _HAL_BUFFERS_H_
+#ifndef HAL_BUFFERS_H
+#define HAL_BUFFERS_H
/*===========================================================================*/
/* Driver constants. */
@@ -270,6 +270,6 @@ extern "C" {
}
#endif
-#endif /* _HAL_BUFFERS_H_ */
+#endif /* HAL_BUFFERS_H */
/** @} */
diff --git a/os/hal/include/hal_can.h b/os/hal/include/hal_can.h
index 9947b9960..83c647522 100644
--- a/os/hal/include/hal_can.h
+++ b/os/hal/include/hal_can.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _CAN_H_
-#define _CAN_H_
+#ifndef HAL_CAN_H
+#define HAL_CAN_H
#if (HAL_USE_CAN == TRUE) || defined(__DOXYGEN__)
@@ -151,6 +151,6 @@ extern "C" {
#endif /* HAL_USE_CAN == TRUE */
-#endif /* _CAN_H_ */
+#endif /* HAL_CAN_H */
/** @} */
diff --git a/os/hal/include/hal_channels.h b/os/hal/include/hal_channels.h
index 480634b34..ab1ac314a 100644
--- a/os/hal/include/hal_channels.h
+++ b/os/hal/include/hal_channels.h
@@ -33,8 +33,8 @@
* @{
*/
-#ifndef _HAL_CHANNELS_H_
-#define _HAL_CHANNELS_H_
+#ifndef HAL_CHANNELS_H
+#define HAL_CHANNELS_H
/**
* @brief @p BaseChannel specific methods.
@@ -282,6 +282,6 @@ typedef struct {
}
/** @} */
-#endif /* _HAL_CHANNELS_H_ */
+#endif /* HAL_CHANNELS_H */
/** @} */
diff --git a/os/hal/include/hal_dac.h b/os/hal/include/hal_dac.h
index 19325b61d..cc76c9708 100644
--- a/os/hal/include/hal_dac.h
+++ b/os/hal/include/hal_dac.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _DAC_H_
-#define _DAC_H_
+#ifndef HAL_DAC_H
+#define HAL_DAC_H
#if (HAL_USE_DAC == TRUE) || defined(__DOXYGEN__)
@@ -262,6 +262,6 @@ extern "C" {
#endif /* HAL_USE_DAC == TRUE */
-#endif /* _DAC_H_ */
+#endif /* HAL_DAC_H */
/** @} */
diff --git a/os/hal/include/hal_ext.h b/os/hal/include/hal_ext.h
index 282178e79..64721b8ae 100644
--- a/os/hal/include/hal_ext.h
+++ b/os/hal/include/hal_ext.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _EXT_H_
-#define _EXT_H_
+#ifndef HAL_EXT_H
+#define HAL_EXT_H
#if (HAL_USE_EXT == TRUE) || defined(__DOXYGEN__)
@@ -145,6 +145,6 @@ extern "C" {
#endif /* HAL_USE_EXT == TRUE */
-#endif /* _EXT_H_ */
+#endif /* HAL_EXT_H */
/** @} */
diff --git a/os/hal/include/hal_files.h b/os/hal/include/hal_files.h
index ea8ec487d..344023070 100644
--- a/os/hal/include/hal_files.h
+++ b/os/hal/include/hal_files.h
@@ -32,8 +32,8 @@
* @{
*/
-#ifndef _HAL_FILES_H_
-#define _HAL_FILES_H_
+#ifndef HAL_FILES_H
+#define HAL_FILES_H
/**
* @name Files return codes
@@ -233,6 +233,6 @@ typedef struct {
#define fileStreamSeek(ip, offset) ((ip)->vmt->lseek(ip, offset))
/** @} */
-#endif /* _HAL_FILES_H_ */
+#endif /* HAL_FILES_H */
/** @} */
diff --git a/os/hal/include/hal_gpt.h b/os/hal/include/hal_gpt.h
index 38e906bd3..72294b2df 100644
--- a/os/hal/include/hal_gpt.h
+++ b/os/hal/include/hal_gpt.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _GPT_H_
-#define _GPT_H_
+#ifndef HAL_GPT_H
+#define HAL_GPT_H
#if (HAL_USE_GPT == TRUE) || defined(__DOXYGEN__)
@@ -136,6 +136,6 @@ extern "C" {
#endif /* HAL_USE_GPT == TRUE */
-#endif /* _GPT_H_ */
+#endif /* HAL_GPT_H */
/** @} */
diff --git a/os/hal/include/hal_i2c.h b/os/hal/include/hal_i2c.h
index fb8cabad7..59d79b2dd 100644
--- a/os/hal/include/hal_i2c.h
+++ b/os/hal/include/hal_i2c.h
@@ -26,8 +26,8 @@
* @{
*/
-#ifndef _I2C_H_
-#define _I2C_H_
+#ifndef HAL_I2C_H
+#define HAL_I2C_H
#if (HAL_USE_I2C == TRUE) || defined(__DOXYGEN__)
@@ -161,6 +161,6 @@ extern "C" {
#endif /* HAL_USE_I2C == TRUE */
-#endif /* _I2C_H_ */
+#endif /* HAL_I2C_H */
/** @} */
diff --git a/os/hal/include/hal_i2s.h b/os/hal/include/hal_i2s.h
index a759b8455..8c452337d 100644
--- a/os/hal/include/hal_i2s.h
+++ b/os/hal/include/hal_i2s.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _I2S_H_
-#define _I2S_H_
+#ifndef HAL_I2S_H
+#define HAL_I2S_H
#if (HAL_USE_I2S == TRUE) || defined(__DOXYGEN__)
@@ -162,6 +162,6 @@ extern "C" {
#endif /* HAL_USE_I2S == TRUE */
-#endif /* _I2S_H_ */
+#endif /* HAL_I2S_H */
/** @} */
diff --git a/os/hal/include/hal_icu.h b/os/hal/include/hal_icu.h
index 262b646fd..6443a3025 100644
--- a/os/hal/include/hal_icu.h
+++ b/os/hal/include/hal_icu.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _ICU_H_
-#define _ICU_H_
+#ifndef HAL_ICU_H
+#define HAL_ICU_H
#if (HAL_USE_ICU == TRUE) || defined(__DOXYGEN__)
@@ -233,6 +233,6 @@ extern "C" {
#endif /* HAL_USE_ICU == TRUE */
-#endif /* _ICU_H_ */
+#endif /* HAL_ICU_H */
/** @} */
diff --git a/os/hal/include/hal_ioblock.h b/os/hal/include/hal_ioblock.h
index b16062a2c..e942cf1c9 100644
--- a/os/hal/include/hal_ioblock.h
+++ b/os/hal/include/hal_ioblock.h
@@ -31,8 +31,8 @@
* @{
*/
-#ifndef _HAL_IOBLOCK_H_
-#define _HAL_IOBLOCK_H_
+#ifndef HAL_IOBLOCK_H
+#define HAL_IOBLOCK_H
/**
* @brief Driver state machine possible states.
@@ -260,6 +260,6 @@ typedef struct {
/** @} */
-#endif /* _HAL_IOBLOCK_H_ */
+#endif /* HAL_IOBLOCK_H */
/** @} */
diff --git a/os/hal/include/hal_mac.h b/os/hal/include/hal_mac.h
index b5c49d01c..f87270ceb 100644
--- a/os/hal/include/hal_mac.h
+++ b/os/hal/include/hal_mac.h
@@ -21,8 +21,8 @@
* @{
*/
-#ifndef _MAC_H_
-#define _MAC_H_
+#ifndef HAL_MAC_H
+#define HAL_MAC_H
#if (HAL_USE_MAC == TRUE) || defined(__DOXYGEN__)
@@ -199,6 +199,6 @@ extern "C" {
#endif /* HAL_USE_MAC == TRUE */
-#endif /* _MAC_H_ */
+#endif /* HAL_MAC_H */
/** @} */
diff --git a/os/hal/include/hal_mmc_spi.h b/os/hal/include/hal_mmc_spi.h
index 7c9a60cae..b3510fdf9 100644
--- a/os/hal/include/hal_mmc_spi.h
+++ b/os/hal/include/hal_mmc_spi.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _MMC_SPI_H_
-#define _MMC_SPI_H_
+#ifndef HAL_MMC_SPI_H
+#define HAL_MMC_SPI_H
#if (HAL_USE_MMC_SPI == TRUE) || defined(__DOXYGEN__)
@@ -190,6 +190,6 @@ extern "C" {
#endif /* HAL_USE_MMC_SPI == TRUE */
-#endif /* _MMC_SPI_H_ */
+#endif /* HAL_MMC_SPI_H */
/** @} */
diff --git a/os/hal/include/hal_mmcsd.h b/os/hal/include/hal_mmcsd.h
index 321e306de..f2e7d88d5 100644
--- a/os/hal/include/hal_mmcsd.h
+++ b/os/hal/include/hal_mmcsd.h
@@ -24,8 +24,8 @@
* @{
*/
-#ifndef _HAL_MMCSD_H_
-#define _HAL_MMCSD_H_
+#ifndef HAL_MMCSD_H
+#define HAL_MMCSD_H
#if (HAL_USE_MMC_SPI == TRUE) || (HAL_USE_SDC == TRUE) || defined(__DOXYGEN__)
@@ -493,6 +493,6 @@ extern "C" {
#endif /* HAL_USE_MMC_SPI == TRUE || HAL_USE_MMC_SDC == TRUE */
-#endif /* _HAL_MMCSD_H_ */
+#endif /* HAL_MMCSD_H */
/** @} */
diff --git a/os/hal/include/hal_pal.h b/os/hal/include/hal_pal.h
index df22f3e94..93b843533 100644
--- a/os/hal/include/hal_pal.h
+++ b/os/hal/include/hal_pal.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _PAL_H_
-#define _PAL_H_
+#ifndef HAL_PAL_H
+#define HAL_PAL_H
#if (HAL_USE_PAL == TRUE) || defined(__DOXYGEN__)
@@ -635,7 +635,7 @@ extern "C" {
}
#endif
-#endif /* _PAL_H_ */
+#endif /* HAL_PAL_H */
#endif /* HAL_USE_PAL == TRUE */
diff --git a/os/hal/include/hal_pwm.h b/os/hal/include/hal_pwm.h
index 5704b40bc..b82aac580 100644
--- a/os/hal/include/hal_pwm.h
+++ b/os/hal/include/hal_pwm.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _PWM_H_
-#define _PWM_H_
+#ifndef HAL_PWM_H
+#define HAL_PWM_H
#if (HAL_USE_PWM == TRUE) || defined(__DOXYGEN__)
@@ -303,6 +303,6 @@ extern "C" {
#endif /* HAL_USE_PWM == TRUE */
-#endif /* _PWM_H_ */
+#endif /* HAL_PWM_H */
/** @} */
diff --git a/os/hal/include/hal_queues.h b/os/hal/include/hal_queues.h
index ecb340feb..1f2777e76 100644
--- a/os/hal/include/hal_queues.h
+++ b/os/hal/include/hal_queues.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _HAL_QUEUES_H_
-#define _HAL_QUEUES_H_
+#ifndef HAL_QUEUES_H
+#define HAL_QUEUES_H
/**
* @name Queue functions returned status value
@@ -293,6 +293,6 @@ extern "C" {
}
#endif
-#endif /* _HAL_QUEUES_H_ */
+#endif /* HAL_QUEUES_H */
/** @} */
diff --git a/os/hal/include/hal_rtc.h b/os/hal/include/hal_rtc.h
index e4c32ba64..128509581 100644
--- a/os/hal/include/hal_rtc.h
+++ b/os/hal/include/hal_rtc.h
@@ -26,8 +26,8 @@
* @{
*/
-#ifndef _RTC_H_
-#define _RTC_H_
+#ifndef HAL_RTC_H
+#define HAL_RTC_H
#if (HAL_USE_RTC == TRUE) || defined(__DOXYGEN__)
@@ -139,6 +139,6 @@ extern "C" {
#endif
#endif /* HAL_USE_RTC == TRUE */
-#endif /* _RTC_H_ */
+#endif /* HAL_RTC_H */
/** @} */
diff --git a/os/hal/include/hal_sdc.h b/os/hal/include/hal_sdc.h
index 954688658..7ca3586fd 100644
--- a/os/hal/include/hal_sdc.h
+++ b/os/hal/include/hal_sdc.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _SDC_H_
-#define _SDC_H_
+#ifndef HAL_SDC_H
+#define HAL_SDC_H
#if (HAL_USE_SDC == TRUE) || defined(__DOXYGEN__)
@@ -190,6 +190,6 @@ extern "C" {
#endif /* HAL_USE_SDC == TRUE */
-#endif /* _SDC_H_ */
+#endif /* HAL_SDC_H */
/** @} */
diff --git a/os/hal/include/hal_serial.h b/os/hal/include/hal_serial.h
index 814d54569..e6fd32ba5 100644
--- a/os/hal/include/hal_serial.h
+++ b/os/hal/include/hal_serial.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _SERIAL_H_
-#define _SERIAL_H_
+#ifndef HAL_SERIAL_H
+#define HAL_SERIAL_H
#if (HAL_USE_SERIAL == TRUE) || defined(__DOXYGEN__)
@@ -281,6 +281,6 @@ extern "C" {
#endif /* HAL_USE_SERIAL == TRUE */
-#endif /* _SERIAL_H_ */
+#endif /* HAL_SERIAL_H */
/** @} */
diff --git a/os/hal/include/hal_serial_usb.h b/os/hal/include/hal_serial_usb.h
index d4a1a1b57..6f2cf9722 100644
--- a/os/hal/include/hal_serial_usb.h
+++ b/os/hal/include/hal_serial_usb.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _SERIAL_USB_H_
-#define _SERIAL_USB_H_
+#ifndef HAL_SERIAL_USB_H
+#define HAL_SERIAL_USB_H
#if (HAL_USE_SERIAL_USB == TRUE) || defined(__DOXYGEN__)
@@ -190,6 +190,6 @@ extern "C" {
#endif /* HAL_USE_SERIAL_USB == TRUE */
-#endif /* _SERIAL_USB_H_ */
+#endif /* HAL_SERIAL_USB_H */
/** @} */
diff --git a/os/hal/include/hal_spi.h b/os/hal/include/hal_spi.h
index 45dd0880b..ffffe59c1 100644
--- a/os/hal/include/hal_spi.h
+++ b/os/hal/include/hal_spi.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _SPI_H_
-#define _SPI_H_
+#ifndef HAL_SPI_H
+#define HAL_SPI_H
#if (HAL_USE_SPI == TRUE) || defined(__DOXYGEN__)
@@ -286,6 +286,6 @@ extern "C" {
#endif /* HAL_USE_SPI == TRUE */
-#endif /* _SPI_H_ */
+#endif /* HAL_SPI_H */
/** @} */
diff --git a/os/hal/include/hal_st.h b/os/hal/include/hal_st.h
index 3bd50e854..ce6bd5f77 100644
--- a/os/hal/include/hal_st.h
+++ b/os/hal/include/hal_st.h
@@ -24,8 +24,8 @@
* @{
*/
-#ifndef _ST_H_
-#define _ST_H_
+#ifndef HAL_ST_H
+#define HAL_ST_H
/*===========================================================================*/
/* Driver constants. */
@@ -92,6 +92,6 @@ extern "C" {
}
#endif
-#endif /* _ST_H_ */
+#endif /* HAL_ST_H */
/** @} */
diff --git a/os/hal/include/hal_streams.h b/os/hal/include/hal_streams.h
index 2956f7632..709429f99 100644
--- a/os/hal/include/hal_streams.h
+++ b/os/hal/include/hal_streams.h
@@ -32,8 +32,8 @@
* @{
*/
-#ifndef _HAL_STREAMS_H_
-#define _HAL_STREAMS_H_
+#ifndef HAL_STREAMS_H
+#define HAL_STREAMS_H
/**
* @name Streams return codes
@@ -147,6 +147,6 @@ typedef struct {
#define streamGet(ip) ((ip)->vmt->get(ip))
/** @} */
-#endif /* _HAL_STREAMS_H_ */
+#endif /* HAL_STREAMS_H */
/** @} */
diff --git a/os/hal/include/hal_uart.h b/os/hal/include/hal_uart.h
index a0a8eecdf..7982e1e5d 100644
--- a/os/hal/include/hal_uart.h
+++ b/os/hal/include/hal_uart.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _UART_H_
-#define _UART_H_
+#ifndef HAL_UART_H
+#define HAL_UART_H
#if (HAL_USE_UART == TRUE) || defined(__DOXYGEN__)
@@ -337,6 +337,6 @@ extern "C" {
#endif /* HAL_USE_UART == TRUE */
-#endif /* _UART_H_ */
+#endif /* HAL_UART_H */
/** @} */
diff --git a/os/hal/include/hal_usb.h b/os/hal/include/hal_usb.h
index 15d72cc43..3f7a5ff4a 100644
--- a/os/hal/include/hal_usb.h
+++ b/os/hal/include/hal_usb.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _USB_H_
-#define _USB_H_
+#ifndef HAL_USB_H
+#define HAL_USB_H
#if (HAL_USE_USB == TRUE) || defined(__DOXYGEN__)
@@ -628,6 +628,6 @@ extern "C" {
#endif /* HAL_USE_USB == TRUE */
-#endif /* _USB_H_ */
+#endif /* HAL_USB_H */
/** @} */
diff --git a/os/hal/include/hal_wdg.h b/os/hal/include/hal_wdg.h
index d10b4a73f..d94722ae0 100644
--- a/os/hal/include/hal_wdg.h
+++ b/os/hal/include/hal_wdg.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _WDG_H_
-#define _WDG_H_
+#ifndef HAL_WDG_H
+#define HAL_WDG_H
#if (HAL_USE_WDG == TRUE) || defined(__DOXYGEN__)
@@ -84,6 +84,6 @@ extern "C" {
#endif /* HAL_USE_WDG == TRUE */
-#endif /* _WDG_H_ */
+#endif /* HAL_WDG_H */
/** @} */
diff --git a/os/hal/include/mii.h b/os/hal/include/mii.h
index e039d5be8..facbe2352 100644
--- a/os/hal/include/mii.h
+++ b/os/hal/include/mii.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _MII_H_
-#define _MII_H_
+#ifndef MII_H
+#define MII_H
/**
* @name Generic MII registers
@@ -170,6 +170,6 @@
#define MII_LAN8742A_ID 0x0007C130
/** @} */
-#endif /* _MII_H_ */
+#endif /* MII_H */
/** @} */
diff --git a/os/hal/include/usb_cdc.h b/os/hal/include/usb_cdc.h
index 1a1e9324c..63c0bc5c0 100644
--- a/os/hal/include/usb_cdc.h
+++ b/os/hal/include/usb_cdc.h
@@ -22,8 +22,8 @@
* @{
*/
-#ifndef _USB_CDC_H_
-#define _USB_CDC_H_
+#ifndef USB_CDC_H
+#define USB_CDC_H
/*===========================================================================*/
/* Driver constants. */
@@ -131,6 +131,6 @@ typedef struct {
/* External declarations. */
/*===========================================================================*/
-#endif /* _USB_CDC_H_ */
+#endif /* USB_CDC_H */
/** @} */
diff --git a/os/hal/templates/halconf.h b/os/hal/templates/halconf.h
index a6e5db20b..451dd1282 100644
--- a/os/hal/templates/halconf.h
+++ b/os/hal/templates/halconf.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _HALCONF_H_
-#define _HALCONF_H_
+#ifndef HALCONF_H
+#define HALCONF_H
#include "mcuconf.h"
@@ -424,6 +424,6 @@
#endif
/** @} */
-#endif /* _HALCONF_H_ */
+#endif /* HALCONF_H */
/** @} */
diff --git a/os/hal/templates/mcuconf.h b/os/hal/templates/mcuconf.h
index be4cfdebb..e20bbe6ab 100644
--- a/os/hal/templates/mcuconf.h
+++ b/os/hal/templates/mcuconf.h
@@ -14,8 +14,8 @@
limitations under the License.
*/
-#ifndef _MCUCONF_H_
-#define _MCUCONF_H_
+#ifndef MCUCONF_H
+#define MCUCONF_H
/*
* Platform drivers configuration.
@@ -27,4 +27,4 @@
#define PLATFORM_MCUCONF
-#endif /* _MCUCONF_H_ */
+#endif /* MCUCONF_H */
diff --git a/os/nil/include/ch.h b/os/nil/include/ch.h
index b5fd825bd..dd548ab20 100644
--- a/os/nil/include/ch.h
+++ b/os/nil/include/ch.h
@@ -27,8 +27,8 @@
* @{
*/
-#ifndef _CH_H_
-#define _CH_H_
+#ifndef CH_H
+#define CH_H
#include "chconf.h"
#include "chtypes.h"
@@ -1325,6 +1325,6 @@ extern "C" {
#include "chmempools.h"
#include "chheap.h"
-#endif /* _CH_H_ */
+#endif /* CH_H */
/** @} */
diff --git a/os/nil/templates/chconf.h b/os/nil/templates/chconf.h
index 06518405f..92e72a128 100644
--- a/os/nil/templates/chconf.h
+++ b/os/nil/templates/chconf.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCONF_H_
-#define _CHCONF_H_
+#ifndef CHCONF_H
+#define CHCONF_H
#define _CHIBIOS_NIL_CONF_
@@ -269,6 +269,6 @@
/* Port-specific settings (override port settings defaulted in nilcore.h). */
/*===========================================================================*/
-#endif /* _CHCONF_H_ */
+#endif /* CHCONF_H */
/** @} */
diff --git a/os/rt/include/ch.h b/os/rt/include/ch.h
index f13ba1613..e8407592a 100644
--- a/os/rt/include/ch.h
+++ b/os/rt/include/ch.h
@@ -28,8 +28,8 @@
* @{
*/
-#ifndef _CH_H_
-#define _CH_H_
+#ifndef CH_H
+#define CH_H
/**
* @brief ChibiOS/RT identification macro.
@@ -104,6 +104,6 @@
#error "missing or wrong configuration file"
#endif
-#endif /* _CH_H_ */
+#endif /* CH_H */
/** @} */
diff --git a/os/rt/include/chalign.h b/os/rt/include/chalign.h
index cca127ffc..9662b3b2f 100644
--- a/os/rt/include/chalign.h
+++ b/os/rt/include/chalign.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHALIGN_H_
-#define _CHALIGN_H_
+#ifndef CHALIGN_H
+#define CHALIGN_H
/*===========================================================================*/
/* Module constants. */
@@ -109,6 +109,6 @@ extern "C" {
/* Module inline functions. */
/*===========================================================================*/
-#endif /* _CHALIGN_H_ */
+#endif /* CHALIGN_H */
/** @} */
diff --git a/os/rt/include/chcond.h b/os/rt/include/chcond.h
index f9b4186e6..bf1e02cd5 100644
--- a/os/rt/include/chcond.h
+++ b/os/rt/include/chcond.h
@@ -28,8 +28,8 @@
* @{
*/
-#ifndef _CHCOND_H_
-#define _CHCOND_H_
+#ifndef CHCOND_H
+#define CHCOND_H
#if (CH_CFG_USE_CONDVARS == TRUE) || defined(__DOXYGEN__)
@@ -111,6 +111,6 @@ extern "C" {
#endif /* CH_CFG_USE_CONDVARS == TRUE */
-#endif /* _CHCOND_H_ */
+#endif /* CHCOND_H */
/** @} */
diff --git a/os/rt/include/chcustomer.h b/os/rt/include/chcustomer.h
index 9e8a1ae2f..5ac2b08e9 100644
--- a/os/rt/include/chcustomer.h
+++ b/os/rt/include/chcustomer.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCUSTOMER_H_
-#define _CHCUSTOMER_H_
+#ifndef CHCUSTOMER_H
+#define CHCUSTOMER_H
/*===========================================================================*/
/* Module constants. */
@@ -66,6 +66,6 @@
/* Module inline functions. */
/*===========================================================================*/
-#endif /* _CHCUSTOMER_H_ */
+#endif /* CHCUSTOMER_H */
/** @} */
diff --git a/os/rt/include/chdebug.h b/os/rt/include/chdebug.h
index 3ce3ddea1..f1a4230f4 100644
--- a/os/rt/include/chdebug.h
+++ b/os/rt/include/chdebug.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHDEBUG_H_
-#define _CHDEBUG_H_
+#ifndef CHDEBUG_H
+#define CHDEBUG_H
/*===========================================================================*/
/* Module constants. */
@@ -361,6 +361,6 @@ extern "C" {
/* Module inline functions. */
/*===========================================================================*/
-#endif /* _CHDEBUG_H_ */
+#endif /* CHDEBUG_H */
/** @} */
diff --git a/os/rt/include/chdynamic.h b/os/rt/include/chdynamic.h
index d9627e4aa..2e34b7890 100644
--- a/os/rt/include/chdynamic.h
+++ b/os/rt/include/chdynamic.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHDYNAMIC_H_
-#define _CHDYNAMIC_H_
+#ifndef CHDYNAMIC_H
+#define CHDYNAMIC_H
#if (CH_CFG_USE_DYNAMIC == TRUE) || defined(__DOXYGEN__)
@@ -94,6 +94,6 @@ extern "C" {
#endif /* CH_CFG_USE_DYNAMIC == TRUE */
-#endif /* _CHDYNAMIC_H_ */
+#endif /* CHDYNAMIC_H */
/** @} */
diff --git a/os/rt/include/chevents.h b/os/rt/include/chevents.h
index 1c4fb9f6d..db5c3ded5 100644
--- a/os/rt/include/chevents.h
+++ b/os/rt/include/chevents.h
@@ -28,8 +28,8 @@
* @{
*/
-#ifndef _CHEVENTS_H_
-#define _CHEVENTS_H_
+#ifndef CHEVENTS_H
+#define CHEVENTS_H
#if (CH_CFG_USE_EVENTS == TRUE) || defined(__DOXYGEN__)
@@ -271,6 +271,6 @@ static inline eventmask_t chEvtGetEventsX(void) {
#endif /* CH_CFG_USE_EVENTS == TRUE */
-#endif /* _CHEVENTS_H_ */
+#endif /* CHEVENTS_H */
/** @} */
diff --git a/os/rt/include/chlicense.h b/os/rt/include/chlicense.h
index 3d722f51e..8d51ab3cf 100644
--- a/os/rt/include/chlicense.h
+++ b/os/rt/include/chlicense.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHLICENSE_H_
-#define _CHLICENSE_H_
+#ifndef CHLICENSE_H
+#define CHLICENSE_H
/*===========================================================================*/
/* Module constants. */
@@ -237,6 +237,6 @@
/* Module inline functions. */
/*===========================================================================*/
-#endif /* _CHLICENSE_H_ */
+#endif /* CHLICENSE_H */
/** @} */
diff --git a/os/rt/include/chmsg.h b/os/rt/include/chmsg.h
index 03de99694..696b9b1d9 100644
--- a/os/rt/include/chmsg.h
+++ b/os/rt/include/chmsg.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHMSG_H_
-#define _CHMSG_H_
+#ifndef CHMSG_H
+#define CHMSG_H
#if (CH_CFG_USE_MESSAGES == TRUE) || defined(__DOXYGEN__)
@@ -119,6 +119,6 @@ static inline void chMsgReleaseS(thread_t *tp, msg_t msg) {
#endif /* CH_CFG_USE_MESSAGES == TRUE */
-#endif /* _CHMSG_H_ */
+#endif /* CHMSG_H */
/** @} */
diff --git a/os/rt/include/chmtx.h b/os/rt/include/chmtx.h
index 33eaa7251..c44930869 100644
--- a/os/rt/include/chmtx.h
+++ b/os/rt/include/chmtx.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHMTX_H_
-#define _CHMTX_H_
+#ifndef CHMTX_H
+#define CHMTX_H
#if (CH_CFG_USE_MUTEXES == TRUE) || defined(__DOXYGEN__)
@@ -149,6 +149,6 @@ static inline mutex_t *chMtxGetNextMutexS(void) {
#endif /* CH_CFG_USE_MUTEXES == TRUE */
-#endif /* _CHMTX_H_ */
+#endif /* CHMTX_H */
/** @} */
diff --git a/os/rt/include/chregistry.h b/os/rt/include/chregistry.h
index ee79f10d5..92400e62e 100644
--- a/os/rt/include/chregistry.h
+++ b/os/rt/include/chregistry.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHREGISTRY_H_
-#define _CHREGISTRY_H_
+#ifndef CHREGISTRY_H
+#define CHREGISTRY_H
#if (CH_CFG_USE_REGISTRY == TRUE) || defined(__DOXYGEN__)
@@ -180,6 +180,6 @@ static inline void chRegSetThreadNameX(thread_t *tp, const char *name) {
#endif
}
-#endif /* _CHREGISTRY_H_ */
+#endif /* CHREGISTRY_H */
/** @} */
diff --git a/os/rt/include/chschd.h b/os/rt/include/chschd.h
index ec0af1810..e91d9a460 100644
--- a/os/rt/include/chschd.h
+++ b/os/rt/include/chschd.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHSCHD_H_
-#define _CHSCHD_H_
+#ifndef CHSCHD_H
+#define CHSCHD_H
/*===========================================================================*/
/* Module constants. */
@@ -774,6 +774,6 @@ static inline void chSchPreemption(void) {
#endif /* CH_CFG_TIME_QUANTUM == 0 */
}
-#endif /* _CHSCHD_H_ */
+#endif /* CHSCHD_H */
/** @} */
diff --git a/os/rt/include/chsem.h b/os/rt/include/chsem.h
index 681ea90d4..ef2848b16 100644
--- a/os/rt/include/chsem.h
+++ b/os/rt/include/chsem.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHSEM_H_
-#define _CHSEM_H_
+#ifndef CHSEM_H
+#define CHSEM_H
#if (CH_CFG_USE_SEMAPHORES == TRUE) || defined(__DOXYGEN__)
@@ -155,6 +155,6 @@ static inline cnt_t chSemGetCounterI(semaphore_t *sp) {
#endif /* CH_CFG_USE_SEMAPHORES == TRUE */
-#endif /* _CHSEM_H_ */
+#endif /* CHSEM_H */
/** @} */
diff --git a/os/rt/include/chstats.h b/os/rt/include/chstats.h
index f03a445d1..d270d739f 100644
--- a/os/rt/include/chstats.h
+++ b/os/rt/include/chstats.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHSTATS_H_
-#define _CHSTATS_H_
+#ifndef CHSTATS_H
+#define CHSTATS_H
#if (CH_DBG_STATISTICS == TRUE) || defined(__DOXYGEN__)
@@ -100,6 +100,6 @@ extern "C" {
#endif /* CH_DBG_STATISTICS == FALSE */
-#endif /* _CHSTATS_H_ */
+#endif /* CHSTATS_H */
/** @} */
diff --git a/os/rt/include/chsys.h b/os/rt/include/chsys.h
index 5797f0e69..5e90f0a35 100644
--- a/os/rt/include/chsys.h
+++ b/os/rt/include/chsys.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHSYS_H_
-#define _CHSYS_H_
+#ifndef CHSYS_H
+#define CHSYS_H
/*lint -sem(chSysHalt, r_no)*/
@@ -481,6 +481,6 @@ static inline thread_t *chSysGetIdleThreadX(void) {
}
#endif /* CH_CFG_NO_IDLE_THREAD == FALSE */
-#endif /* _CHSYS_H_ */
+#endif /* CHSYS_H */
/** @} */
diff --git a/os/rt/include/chsystypes.h b/os/rt/include/chsystypes.h
index cc8cdab3d..50d963f95 100644
--- a/os/rt/include/chsystypes.h
+++ b/os/rt/include/chsystypes.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHSYSTYPES_H_
-#define _CHSYSTYPES_H_
+#ifndef CHSYSTYPES_H
+#define CHSYSTYPES_H
/*===========================================================================*/
/* Module constants. */
@@ -131,6 +131,6 @@ extern "C" {
/* Module inline functions. */
/*===========================================================================*/
-#endif /* _CHSYSTYPES_H_ */
+#endif /* CHSYSTYPES_H */
/** @} */
diff --git a/os/rt/include/chthreads.h b/os/rt/include/chthreads.h
index 4447298a4..a6342ce66 100644
--- a/os/rt/include/chthreads.h
+++ b/os/rt/include/chthreads.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHTHREADS_H_
-#define _CHTHREADS_H_
+#ifndef CHTHREADS_H
+#define CHTHREADS_H
/*lint -sem(chThdExit, r_no) -sem(chThdExitS, r_no)*/
@@ -383,6 +383,6 @@ static inline void chThdDoDequeueNextI(threads_queue_t *tqp, msg_t msg) {
(void) chSchReadyI(tp);
}
-#endif /* _CHTHREADS_H_ */
+#endif /* CHTHREADS_H */
/** @} */
diff --git a/os/rt/include/chtm.h b/os/rt/include/chtm.h
index 13a480a29..8c80ff17c 100644
--- a/os/rt/include/chtm.h
+++ b/os/rt/include/chtm.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHTM_H_
-#define _CHTM_H_
+#ifndef CHTM_H
+#define CHTM_H
#if (CH_CFG_USE_TM == TRUE) || defined(__DOXYGEN__)
@@ -104,6 +104,6 @@ extern "C" {
#endif /* CH_CFG_USE_TM == TRUE */
-#endif /* _CHTM_H_ */
+#endif /* CHTM_H */
/** @} */
diff --git a/os/rt/include/chvt.h b/os/rt/include/chvt.h
index 0ff4e56ce..c1fa32e13 100644
--- a/os/rt/include/chvt.h
+++ b/os/rt/include/chvt.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHVT_H_
-#define _CHVT_H_
+#ifndef CHVT_H
+#define CHVT_H
/*===========================================================================*/
/* Module constants. */
@@ -586,6 +586,6 @@ static inline void chVTDoTickI(void) {
#endif /* CH_CFG_ST_TIMEDELTA > 0 */
}
-#endif /* _CHVT_H_ */
+#endif /* CHVT_H */
/** @} */
diff --git a/os/rt/templates/chconf.h b/os/rt/templates/chconf.h
index dca0f30be..a2f49b8bd 100644
--- a/os/rt/templates/chconf.h
+++ b/os/rt/templates/chconf.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHCONF_H_
-#define _CHCONF_H_
+#ifndef CHCONF_H
+#define CHCONF_H
#define _CHIBIOS_RT_CONF_
@@ -516,6 +516,6 @@
/* Port-specific settings (override port settings defaulted in chcore.h). */
/*===========================================================================*/
-#endif /* _CHCONF_H_ */
+#endif /* CHCONF_H */
/** @} */
diff --git a/os/rt/templates/meta/module.h b/os/rt/templates/meta/module.h
index 0150d5c09..3626f09b9 100644
--- a/os/rt/templates/meta/module.h
+++ b/os/rt/templates/meta/module.h
@@ -25,8 +25,8 @@
* @{
*/
-#ifndef _CHXXX_H_
-#define _CHXXX_H_
+#ifndef CHXXX_H
+#define CHXXX_H
#include "ch.h"
@@ -71,6 +71,6 @@ extern "C" {
#endif /* CH_CFG_USE_XXX */
-#endif /* _CHXXX_H_ */
+#endif /* CHXXX_H */
/** @} */