mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-29 10:20:57 +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_END
|
||||
|
||||
#define SUBTASK_EXIT(error) return error;
|
||||
|
||||
//------------- Sub Task -------------//
|
||||
#define OSAL_SUBTASK_INVOKED_AND_WAIT(subtask, status) \
|
||||
status = subtask
|
||||
|
Loading…
x
Reference in New Issue
Block a user