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
+6 -2
View File
@@ -38,13 +38,17 @@
#include "board.h"
#if TUSB_CFG_OS == TUSB_OS_NONE // TODO may move to main.c
#if TUSB_CFG_OS == TUSB_OS_NONE
volatile uint32_t system_ticks = 0;
void SysTick_Handler (void)
{
system_ticks++;
tusb_tick_tock(); // TODO temporarily
}
uint32_t tusb_tick_get(void)
{
return system_ticks;
}
#endif