aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/TIMv1/st_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/STM32/TIMv1/st_lld.c')
-rw-r--r--os/hal/platforms/STM32/TIMv1/st_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/platforms/STM32/TIMv1/st_lld.c b/os/hal/platforms/STM32/TIMv1/st_lld.c
index 45367878a..240328ff5 100644
--- a/os/hal/platforms/STM32/TIMv1/st_lld.c
+++ b/os/hal/platforms/STM32/TIMv1/st_lld.c
@@ -129,7 +129,7 @@ void st_lld_init(void) {
rccEnableTIM2(FALSE);
/* Initializing the counter in free running mode.*/
- STM32_TIM2->PSC = STM32_TIMCLK2 / OSAL_SYSTICK_FREQUENCY - 1;
+ STM32_TIM2->PSC = STM32_TIMCLK1 / OSAL_SYSTICK_FREQUENCY - 1;
STM32_TIM2->ARR = 0xFFFFFFFF;
STM32_TIM2->CCMR1 = 0;
STM32_TIM2->CCR[0] = 0;