diff options
Diffstat (limited to 'os/common')
28 files changed, 84 insertions, 84 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 */
/** @} */
|