summaryrefslogtreecommitdiff
path: root/boards
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-17 17:23:32 +0700
committerhathach <[email protected]>2014-03-17 17:23:32 +0700
commit23aa7070df9b461954d232c25de023cc5228e2e2 (patch)
treee9d6460e14fde8f522966f5ee2d797c85372d107 /boards
parenteaf2e888ab3025b01bf5b8e5b548337dd5bc63ff (diff)
refrator, replace osal_tick_get / osal_tick_tock by tusb_tick_get
Diffstat (limited to 'boards')
-rw-r--r--boards/board.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/boards/board.c b/boards/board.c
index aae65ca25..90afd59b8 100644
--- a/boards/board.c
+++ b/boards/board.c
@@ -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