diff options
| author | hathach <[email protected]> | 2018-03-30 16:57:18 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-30 16:57:18 +0700 |
| commit | d13160c4ae80e919267c22bdc6b3f31564b5ef98 (patch) | |
| tree | cc697356cb4fd5b4e10b702120ba327d6facc750 /tinyusb/osal/osal_freeRTOS.h | |
| parent | 1bcd0aa3971bde27b7ba67b65bf6c4e9594af134 (diff) | |
clean up usbd
Diffstat (limited to 'tinyusb/osal/osal_freeRTOS.h')
| -rw-r--r-- | tinyusb/osal/osal_freeRTOS.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tinyusb/osal/osal_freeRTOS.h b/tinyusb/osal/osal_freeRTOS.h index 211072331..f80981313 100644 --- a/tinyusb/osal/osal_freeRTOS.h +++ b/tinyusb/osal/osal_freeRTOS.h @@ -87,7 +87,7 @@ static inline void osal_task_delay(uint32_t msec) //--------------------------------------------------------------------+ // QUEUE API //--------------------------------------------------------------------+ -typedef xQueueHandle osal_queue_t; +typedef QueueHandle_t osal_queue_t; static inline osal_queue_t osal_queue_create(uint32_t depth, uint32_t item_size) { @@ -107,13 +107,14 @@ static inline bool osal_queue_send(osal_queue_t const queue_hdl, void const * da static inline void osal_queue_flush(osal_queue_t const queue_hdl) { + // TODO move to thread context // xQueueReset(queue_hdl); } //--------------------------------------------------------------------+ // Semaphore API //--------------------------------------------------------------------+ -typedef xSemaphoreHandle osal_semaphore_t; +typedef SemaphoreHandle_t osal_semaphore_t; static inline osal_semaphore_t osal_semaphore_create(uint32_t max, uint32_t init) { @@ -141,7 +142,7 @@ static inline void osal_semaphore_reset(osal_semaphore_t const sem_hdl) //--------------------------------------------------------------------+ // MUTEX API (priority inheritance) //--------------------------------------------------------------------+ -typedef xSemaphoreHandle osal_mutex_t; +typedef SemaphoreHandle_t osal_mutex_t; #define osal_mutex_create(x) xSemaphoreCreateMutex() |
