summaryrefslogtreecommitdiff
path: root/chip/stm32/hwtimer.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/stm32/hwtimer.c')
-rw-r--r--chip/stm32/hwtimer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/hwtimer.c b/chip/stm32/hwtimer.c
index ae5cbb5e60..d24f07e5e0 100644
--- a/chip/stm32/hwtimer.c
+++ b/chip/stm32/hwtimer.c
@@ -123,8 +123,8 @@ int __hw_clock_source_init(uint32_t start_t)
STM32_TIM_PSC(4) = CLOCKSOURCE_DIVIDER - 1;
/* Reload the pre-scaler */
- STM32_TIM_EGR(3) = 0x0000;
- STM32_TIM_EGR(4) = 0x0000;
+ STM32_TIM_EGR(3) = 0x0001;
+ STM32_TIM_EGR(4) = 0x0001;
/* setup the overflow interrupt on TIM3 */
STM32_TIM_DIER(3) = 0x0001;