refine ASSERT_DEFINE to allow special error_handler for os task
add device_addr0 for enumeration task start to add osal port for freeRTOS
This commit is contained in:
@@ -84,10 +84,12 @@ typedef uint32_t osal_task_t;
|
||||
|
||||
#define OSAL_TASK_LOOP_BEGIN
|
||||
#define OSAL_TASK_LOOP_END
|
||||
|
||||
|
||||
#define TASK_ASSERT_STATUS(sts) \
|
||||
ASSERT_DEFINE(tusb_error_t status = (tusb_error_t)(sts),\
|
||||
TUSB_ERROR_NONE == status, (void) 0, "%s", TUSB_ErrorStr[status])
|
||||
|
||||
#define TASK_ASSERT(condition) ASSERT(condition, (void) 0)
|
||||
|
||||
tusb_error_t osal_task_create(osal_task_t *task);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user