From 5aa11291a362cfeb949dfe91397e8bbda46dc436 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 19 Mar 2012 20:28:33 +0000 Subject: Fixed bug 3508758. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4052 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/platforms/STM32/icu_lld.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'os/hal/platforms/STM32') diff --git a/os/hal/platforms/STM32/icu_lld.c b/os/hal/platforms/STM32/icu_lld.c index 849241c2b..d5511ec01 100644 --- a/os/hal/platforms/STM32/icu_lld.c +++ b/os/hal/platforms/STM32/icu_lld.c @@ -282,7 +282,7 @@ void icu_lld_init(void) { #if STM32_ICU_USE_TIM8 /* Driver initialization.*/ icuObjectInit(&ICUD8); - ICUD5.tim = STM32_TIM8; + ICUD8.tim = STM32_TIM8; #endif } @@ -350,8 +350,8 @@ void icu_lld_start(ICUDriver *icup) { #endif #if STM32_ICU_USE_TIM8 if (&ICUD8 == icup) { - rccEnableTIM5(FALSE); - rccResetTIM5(); + rccEnableTIM8(FALSE); + rccResetTIM8(); nvicEnableVector(TIM8_CC_IRQn, CORTEX_PRIORITY_MASK(STM32_ICU_TIM8_IRQ_PRIORITY)); icup->clock = STM32_TIMCLK2; -- cgit v1.2.3