Rtos code cntains bug possible incompatability with I2C
Fork of mbed-rtos by
Diff: rtx/TARGET_CORTEX_M/rt_CMSIS.c
- Revision:
- 114:031a41d65add
- Parent:
- 112:53ace74b190c
- Child:
- 118:4c105b8d7cae
diff -r d9366c711a75 -r 031a41d65add rtx/TARGET_CORTEX_M/rt_CMSIS.c --- a/rtx/TARGET_CORTEX_M/rt_CMSIS.c Thu May 05 22:00:15 2016 +0100 +++ b/rtx/TARGET_CORTEX_M/rt_CMSIS.c Fri May 06 19:15:13 2016 +0100 @@ -48,6 +48,10 @@ #error "Missing __CORTEX_Mx definition" #endif +// This affects cmsis_os only, as it's not used anywhere else. This was left by kernel team +// to suppress the warning in rt_tid2ptcb about incompatible pointer assignment. +#define os_thread_cb OS_TCB + #include "rt_TypeDef.h" #include "RTX_Config.h" #include "rt_System.h" @@ -62,8 +66,6 @@ #include "rt_Memory.h" #include "rt_HAL_CM.h" -#define os_thread_cb OS_TCB - #include "cmsis_os.h" #if (osFeature_Signals != 16)