diff options
| author | hathach <[email protected]> | 2013-01-22 18:09:58 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-01-22 18:09:58 +0700 |
| commit | 3ffda2033a55093a1b1667ed22f523a9a8a6a3d4 (patch) | |
| tree | 5630457978c47300bc200f7bb8660b6dbc1d61b8 /tinyusb/osal | |
| parent | 38ce3f7534ec9e3e0b10b8923d7d17e437463e86 (diff) | |
clear 19.1
Diffstat (limited to 'tinyusb/osal')
| -rw-r--r-- | tinyusb/osal/osal.h | 12 | ||||
| -rw-r--r-- | tinyusb/osal/osal_none.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index 60a3896db..07a65f5b2 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -62,6 +62,12 @@ #define TUSB_OS_FREERTOS 3 #define TUSB_OS_UCOS 4 +#if TUSB_CFG_OS == TUSB_OS_NONE + #include "osal_none.h" +#else + #error TUSB_CFG_OS is not defined or OS is not supported yet +#endif + typedef uint32_t osal_status_t; // TODO OSAL port typedef uint32_t osal_timeout_t; // TODO OSAL port @@ -78,12 +84,6 @@ typedef uint32_t osal_queue_id_t; tusb_error_t osal_queue_put(osal_queue_id_t qid, uint32_t data, osal_timeout_t msec); tusb_error_t osal_queue_get(osal_queue_id_t qid, uint32_t *data, osal_timeout_t msec); -#if TUSB_CFG_OS == TUSB_OS_NONE - #include "osal_none.h" -#else - #error TUSB_CFG_OS is not defined or OS is not supported yet -#endif - #ifdef __cplusplus } #endif diff --git a/tinyusb/osal/osal_none.c b/tinyusb/osal/osal_none.c index 309cc5ea4..4e18a80ee 100644 --- a/tinyusb/osal/osal_none.c +++ b/tinyusb/osal/osal_none.c @@ -35,7 +35,7 @@ * This file is part of the tiny usb stack. */ -#include "osal.h" +#include "osal_none.h" #if TUSB_CFG_OS == TUSB_OS_NONE |
