EICU. Fixed incorrect frequency calculation.

Timers 9, 10, 11 connected to APB2 but constant in driver
initialization code was taken for APB1.
This commit is contained in:
barthess 2015-06-02 15:53:58 +03:00
parent 82973c099e
commit 06640e31ce
1 changed files with 2 additions and 2 deletions

View File

@ -949,7 +949,7 @@ void eicu_lld_start(EICUDriver *eicup) {
rccResetTIM10(); rccResetTIM10();
nvicEnableVector(STM32_TIM10_NUMBER, STM32_EICU_TIM10_IRQ_PRIORITY); nvicEnableVector(STM32_TIM10_NUMBER, STM32_EICU_TIM10_IRQ_PRIORITY);
eicup->channels = 1; eicup->channels = 1;
eicup->clock = STM32_TIMCLK1; eicup->clock = STM32_TIMCLK2;
} }
#endif #endif
#if STM32_EICU_USE_TIM11 #if STM32_EICU_USE_TIM11
@ -958,7 +958,7 @@ void eicu_lld_start(EICUDriver *eicup) {
rccResetTIM11(); rccResetTIM11();
nvicEnableVector(STM32_TIM11_NUMBER, STM32_EICU_TIM11_IRQ_PRIORITY); nvicEnableVector(STM32_TIM11_NUMBER, STM32_EICU_TIM11_IRQ_PRIORITY);
eicup->channels = 1; eicup->channels = 1;
eicup->clock = STM32_TIMCLK1; eicup->clock = STM32_TIMCLK2;
} }
#endif #endif
#if STM32_EICU_USE_TIM13 #if STM32_EICU_USE_TIM13