refractor usbd, first step to make get configuration as sub task

This commit is contained in:
hathach
2013-11-15 13:26:12 +07:00
parent fc68439b74
commit 05c439e45a
5 changed files with 46 additions and 50 deletions

View File

@@ -105,12 +105,12 @@ static inline uint32_t osal_tick_get(void)
ATTR_UNUSED static uint32_t timeout = 0;\
static uint16_t state = 0;\
switch(state) {\
case 0:\
case 0:{\
#define OSAL_TASK_LOOP_END \
default:\
TASK_RESTART;\
}\
}}\
return TUSB_ERROR_NONE;