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
0xc0170 2016-05-06 12:27:25 -05:00
parent def841979a
commit 9aee702b11
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -36,6 +36,7 @@
#include "RTX_Config.h"
#include "rt_Timer.h"
#include "rt_MemBox.h"
#include "cmsis_os.h"
#ifndef __CMSIS_RTOS