diff options
Diffstat (limited to 'tinyusb/osal')
| -rw-r--r-- | tinyusb/osal/osal_none.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h index 6b0148949..d7302d2cf 100644 --- a/tinyusb/osal/osal_none.h +++ b/tinyusb/osal/osal_none.h @@ -89,7 +89,7 @@ static inline bool osal_task_create(osal_func_t code, const char* name, uint32_t default:\
TASK_RESTART;\
}}\
- return /*TUSB_ERROR_NONE*/;
+ return;
#define osal_task_delay(msec) \
@@ -114,7 +114,11 @@ static inline bool osal_task_create(osal_func_t code, const char* name, uint32_t }while(0)
#define OSAL_SUBTASK_BEGIN OSAL_TASK_LOOP_BEGIN
-#define OSAL_SUBTASK_END OSAL_TASK_LOOP_END
+#define OSAL_SUBTASK_END \
+ default:\
+ TASK_RESTART;\
+ }}\
+ return TUSB_ERROR_NONE;
//------------- Sub Task Assert -------------//
#define SUBTASK_EXIT(error) \
|
