summaryrefslogtreecommitdiff
path: root/tinyusb/osal/osal_common.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-19 16:50:49 +0700
committerhathach <[email protected]>2014-03-19 16:50:49 +0700
commit61657f6751ce96dd2b0c260729061ac0eb2adab4 (patch)
treeca36ec255a8e7a1e38393cca2e2151bf6112011f /tinyusb/osal/osal_common.h
parente8138df6a3ffab99fa75ced7d03534d65a2aadaf (diff)
change OSAL_TASK_FUNCTION to adapt with cmsis rtx
Diffstat (limited to 'tinyusb/osal/osal_common.h')
-rw-r--r--tinyusb/osal/osal_common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tinyusb/osal/osal_common.h b/tinyusb/osal/osal_common.h
index 3f1bfe08e..4c551126c 100644
--- a/tinyusb/osal/osal_common.h
+++ b/tinyusb/osal/osal_common.h
@@ -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)
{