mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-18 11:42:25 +00:00
add SUBTASK_EXIT in osal.h for TDD project
This commit is contained in:
parent
689e36856e
commit
9e607f6dee
@ -96,6 +96,8 @@ tusb_error_t osal_task_create(osal_task_t *task);
|
|||||||
#define OSAL_TASK_LOOP_BEGIN
|
#define OSAL_TASK_LOOP_BEGIN
|
||||||
#define OSAL_TASK_LOOP_END
|
#define OSAL_TASK_LOOP_END
|
||||||
|
|
||||||
|
#define SUBTASK_EXIT(error) return error;
|
||||||
|
|
||||||
//------------- Sub Task -------------//
|
//------------- Sub Task -------------//
|
||||||
#define OSAL_SUBTASK_INVOKED_AND_WAIT(subtask, status) \
|
#define OSAL_SUBTASK_INVOKED_AND_WAIT(subtask, status) \
|
||||||
status = subtask
|
status = subtask
|
||||||
|
Loading…
x
Reference in New Issue
Block a user