diff options
| author | hathach <[email protected]> | 2018-03-01 11:28:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-01 11:28:26 +0700 |
| commit | 329fdc026c4536b218438577c90491bc0b69fff8 (patch) | |
| tree | acd8b9abffcb78231774cc955e0bc544ea68ffa7 /tinyusb/osal/osal_freeRTOS.h | |
| parent | a789fad4b7b23b8324e07ee4b9d08a145f5df0f9 (diff) | |
change osal_task_create signature
Diffstat (limited to 'tinyusb/osal/osal_freeRTOS.h')
| -rw-r--r-- | tinyusb/osal/osal_freeRTOS.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tinyusb/osal/osal_freeRTOS.h b/tinyusb/osal/osal_freeRTOS.h index f79829e58..0e043ded6 100644 --- a/tinyusb/osal/osal_freeRTOS.h +++ b/tinyusb/osal/osal_freeRTOS.h @@ -64,9 +64,14 @@ extern "C" { //--------------------------------------------------------------------+ // TASK API //--------------------------------------------------------------------+ -static inline bool osal_task_create(osal_func_t code, const char* name, uint32_t stack_size, void* param, uint32_t prio, osal_task_t* task_hdl) +typedef void (*osal_func_t)(void *param); +typedef void* osal_task_t; + +static inline osal_task_t osal_task_create(osal_func_t code, const char* name, uint32_t stack_size, void* param, uint32_t prio) { - return xTaskCreate(code, (const signed char*) name, stack_size, param, prio, task_hdl); + osal_task_t task_hdl; + xTaskCreate(code, (const signed char*) name, stack_size, param, prio, &task_hdl); + return task_hdl; } static inline void osal_task_delay(uint32_t msec) |
