diff options
-rw-r--r-- | os/hal/ports/STM32/LLD/TIMv1/icu_lld.c | 2 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c b/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c index 18d7ca7d5..5ad019052 100644 --- a/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c +++ b/os/hal/ports/STM32/LLD/TIMv1/icu_lld.c @@ -459,7 +459,7 @@ void icu_lld_start(ICUDriver *icup) { rccEnableTIM9(FALSE);
rccResetTIM9();
nvicEnableVector(STM32_TIM9_NUMBER, STM32_ICU_TIM9_IRQ_PRIORITY);
- icup->clock = STM32_TIMCLK1;
+ icup->clock = STM32_TIMCLK2;
}
#endif
}
diff --git a/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c b/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c index 7fc9b980d..81caf52e0 100644 --- a/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c +++ b/os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c @@ -465,7 +465,7 @@ void pwm_lld_start(PWMDriver *pwmp) { rccEnableTIM9(FALSE);
rccResetTIM9();
nvicEnableVector(STM32_TIM9_NUMBER, STM32_PWM_TIM9_IRQ_PRIORITY);
- pwmp->clock = STM32_TIMCLK1;
+ pwmp->clock = STM32_TIMCLK2;
}
#endif
|