change OSAL_TASK_FUNCTION to adapt with cmsis rtx

This commit is contained in:
hathach
2014-03-19 16:50:49 +07:00
parent e8138df6a3
commit 61657f6751
35 changed files with 200 additions and 195 deletions

View File

@@ -52,6 +52,10 @@
#include "common/common.h"
#ifdef __CC_ARM
#pragma diag_suppress 66 // Suppress Keil warnings #66-D: enumeration value is out of "int" range
#endif
enum
{
OSAL_TIMEOUT_NOTIMEOUT = 0, // for use within ISR, return immediately
@@ -59,6 +63,10 @@ enum
OSAL_TIMEOUT_WAIT_FOREVER = 0xFFFFFFFF
};
#ifdef __CC_ARM
#pragma diag_default 66 // return Keil 66 to normal severity
#endif
static inline uint32_t osal_tick_from_msec(uint32_t msec) ATTR_CONST ATTR_ALWAYS_INLINE;
static inline uint32_t osal_tick_from_msec(uint32_t msec)
{