summaryrefslogtreecommitdiff
path: root/tinyusb/osal/osal.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/osal/osal.h')
-rw-r--r--tinyusb/osal/osal.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h
index d2287b3a5..d23cb518c 100644
--- a/tinyusb/osal/osal.h
+++ b/tinyusb/osal/osal.h
@@ -68,16 +68,20 @@
#if TUSB_CFG_OS == TUSB_OS_NONE
#include "osal_none.h"
-#elif TUSB_CFG_OS == TUSB_OS_FREERTOS
- #include "osal_freeRTOS.h"
-#elif TUSB_CFG_OS == TUSB_OS_CMSIS_RTX
- #include "osal_cmsis_rtx.h"
#else
- #error TUSB_CFG_OS is not defined or OS is not supported yet
+ #define OSAL_VAR
+ #if TUSB_CFG_OS == TUSB_OS_FREERTOS
+ #include "osal_freeRTOS.h"
+ #elif TUSB_CFG_OS == TUSB_OS_CMSIS_RTX
+ #include "osal_cmsis_rtx.h"
+ #else
+ #error TUSB_CFG_OS is not defined or OS is not supported yet
+ #endif
#endif
#else // OSAL API for cmock
+#define OSAL_VAR
#include "osal_common.h"
//------------- Tick -------------//