summaryrefslogtreecommitdiffstats
path: root/app/ticker.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/ticker.c')
-rw-r--r--app/ticker.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/ticker.c b/app/ticker.c
index 2016058..bf7cf51 100644
--- a/app/ticker.c
+++ b/app/ticker.c
@@ -25,6 +25,7 @@ sys_tick_handler (void)
ticks++;
led_tick();
+ cdcacm_tick();
slow++;
@@ -54,8 +55,8 @@ ticker_init (void)
{
uint32_t v, w;
- /*10MHz / 10000 -> 1ms */
- systick_set_reload (10000);
+ /*168MHz 1ms */
+ systick_set_reload (168000);
systick_set_clocksource (STK_CSR_CLKSOURCE_AHB);
systick_counter_enable();
/* this done last */