refrator, replace osal_tick_get / osal_tick_tock by tusb_tick_get

This commit is contained in:
hathach
2014-03-17 17:23:32 +07:00
parent eaf2e888ab
commit 23aa7070df
7 changed files with 137 additions and 121 deletions

View File

@@ -101,19 +101,10 @@
//--------------------------------------------------------------------+
tusb_error_t tusb_init(void);
// TODO merge with tick_tock
#if TUSB_CFG_OS == TUSB_OS_NONE
void tusb_task_runner(void);
#endif
#if TUSB_CFG_OS == TUSB_OS_NONE && !defined(_TEST_)
static inline void tusb_tick_tock(void) ATTR_ALWAYS_INLINE;
static inline void tusb_tick_tock(void)
{
osal_tick_tock();
}
#endif
#ifdef __cplusplus
}
#endif