diff options
Diffstat (limited to 'common/mbed/timer.c')
| -rw-r--r-- | common/mbed/timer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/mbed/timer.c b/common/mbed/timer.c index a64a77239..c357ceb78 100644 --- a/common/mbed/timer.c +++ b/common/mbed/timer.c | |||
| @@ -11,6 +11,7 @@ void SysTick_Handler(void) { | |||
| 11 | 11 | ||
| 12 | void timer_init(void) | 12 | void timer_init(void) |
| 13 | { | 13 | { |
| 14 | timer_count = 0; | ||
| 14 | SysTick_Config(SystemCoreClock / 1000); /* 1ms tick */ | 15 | SysTick_Config(SystemCoreClock / 1000); /* 1ms tick */ |
| 15 | } | 16 | } |
| 16 | 17 | ||
