refine OSAL_TASK_LOOP_BEGIN & OSAL_TASK_LOOP_END
- add TASK_ASSERT & TASK_ASSERT_STATUS add more code for enumerate task add control requests & its type def add API for HCD - hcd_pipe_addr0_open - hcd_pipe_control_open - hcd_pipe_control_xfer - hcd_pipe_open - hcd_port_speed
This commit is contained in:
@@ -82,9 +82,12 @@ typedef uint32_t osal_task_t;
|
||||
#define OSAL_TASK_DEF(name, code, stack_depth, prio) \
|
||||
osal_task_t name
|
||||
|
||||
#define OSAL_TASK_LOOP
|
||||
#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])
|
||||
|
||||
|
||||
tusb_error_t osal_task_create(osal_task_t *task);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user