Skip to content

Commit f7dc7e9

Browse files
bulislaw0xc0170
authored andcommitted
CMSIS/RTX: Fix using FALSE/TRUE with preprocesor
(cherry picked from commit dd21ea0)
1 parent 94d9406 commit f7dc7e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rtos/source/TARGET_CORTEX/rtx5/RTX/Source/rtx_core_cm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535
typedef bool bool_t;
3636

3737
#ifndef FALSE
38-
#define FALSE ((bool_t)0)
38+
#define FALSE (0)
3939
#endif
4040

4141
#ifndef TRUE
42-
#define TRUE ((bool_t)1)
42+
#define TRUE (1)
4343
#endif
4444

4545
#ifdef RTE_CMSIS_RTOS2_RTX5_ARMV8M_NS

0 commit comments

Comments
 (0)