diff options
| author | hathach <[email protected]> | 2018-02-28 14:59:38 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-02-28 14:59:38 +0700 |
| commit | 65a076f1981ae123568c66ec06d90b26707dac9e (patch) | |
| tree | c6caa5488da2d1adacc6cbcdf8e71d08ac1427d9 /tinyusb/osal | |
| parent | 9bf083d44929564141d5c092d63cc2053358f794 (diff) | |
more clean up
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) \
|
