From ce7758eb012ae03a4c43da17680453ef6af4026a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Tue, 22 Apr 2014 08:53:25 +0000 Subject: Fixed bug #486. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6876 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/TIMv1/icu_lld.c | 2 +- os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'os/hal/ports/STM32/LLD/TIMv1') 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 -- cgit v1.2.3