diff options
| author | hathach <[email protected]> | 2013-06-29 16:20:24 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-06-29 16:20:24 +0700 |
| commit | 9e607f6deec487ae3da5f94547753070687ca2e7 (patch) | |
| tree | db5ceb83bd93db206373e9f419967cf8bbeff633 /tinyusb | |
| parent | 689e36856e514a92958c3f02690132645b5ff766 (diff) | |
add SUBTASK_EXIT in osal.h for TDD project
Diffstat (limited to 'tinyusb')
| -rw-r--r-- | tinyusb/osal/osal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index f40900919..01609cae2 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -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 |
