more clean up

This commit is contained in:
hathach
2018-02-28 14:59:38 +07:00
parent 9bf083d449
commit 65a076f198
5 changed files with 40 additions and 11 deletions

View File

@@ -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) \