mirror of https://github.com/ARMmbed/mbed-os.git
RTX - pull cmsis_os into rt_Timer
This causing a warning in the rt_cmsis.c, as they use preprocessor to redefine a type. A fix is to move the macro above, as it should not change anything else. This should be removed, and use a cast, however I am not fully familiar why they do this macro trick.pull/1720/head
parent
def841979a
commit
9aee702b11
|
@ -48,6 +48,10 @@
|
||||||
#error "Missing __CORTEX_Mx definition"
|
#error "Missing __CORTEX_Mx definition"
|
||||||
#endif
|
#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 "rt_TypeDef.h"
|
||||||
#include "RTX_Config.h"
|
#include "RTX_Config.h"
|
||||||
#include "rt_System.h"
|
#include "rt_System.h"
|
||||||
|
@ -62,8 +66,6 @@
|
||||||
#include "rt_Memory.h"
|
#include "rt_Memory.h"
|
||||||
#include "rt_HAL_CM.h"
|
#include "rt_HAL_CM.h"
|
||||||
|
|
||||||
#define os_thread_cb OS_TCB
|
|
||||||
|
|
||||||
#include "cmsis_os.h"
|
#include "cmsis_os.h"
|
||||||
|
|
||||||
#if (osFeature_Signals != 16)
|
#if (osFeature_Signals != 16)
|
||||||
|
|
|
@ -36,6 +36,7 @@
|
||||||
#include "RTX_Config.h"
|
#include "RTX_Config.h"
|
||||||
#include "rt_Timer.h"
|
#include "rt_Timer.h"
|
||||||
#include "rt_MemBox.h"
|
#include "rt_MemBox.h"
|
||||||
|
#include "cmsis_os.h"
|
||||||
|
|
||||||
#ifndef __CMSIS_RTOS
|
#ifndef __CMSIS_RTOS
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue