aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorbarthess <barthess@yandex.ru>2015-06-02 15:53:58 +0300
committerbarthess <barthess@yandex.ru>2015-06-02 15:53:58 +0300
commit06640e31ced8a273633937cbafa7b3b85c92406a (patch)
tree15520b8e5e276c05af5d9f8a1371691150c1349f /os
parent82973c099e05c7cd9a0529883d7f10201b01943d (diff)
downloadChibiOS-Contrib-06640e31ced8a273633937cbafa7b3b85c92406a.tar.gz
ChibiOS-Contrib-06640e31ced8a273633937cbafa7b3b85c92406a.tar.bz2
ChibiOS-Contrib-06640e31ced8a273633937cbafa7b3b85c92406a.zip
EICU. Fixed incorrect frequency calculation.
Timers 9, 10, 11 connected to APB2 but constant in driver initialization code was taken for APB1.
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/STM32/LLD/TIMv1/eicu_lld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/STM32/LLD/TIMv1/eicu_lld.c b/os/hal/ports/STM32/LLD/TIMv1/eicu_lld.c
index ce654c4..a3e6cbd 100644
--- a/os/hal/ports/STM32/LLD/TIMv1/eicu_lld.c
+++ b/os/hal/ports/STM32/LLD/TIMv1/eicu_lld.c
@@ -949,7 +949,7 @@ void eicu_lld_start(EICUDriver *eicup) {
rccResetTIM10();
nvicEnableVector(STM32_TIM10_NUMBER, STM32_EICU_TIM10_IRQ_PRIORITY);
eicup->channels = 1;
- eicup->clock = STM32_TIMCLK1;
+ eicup->clock = STM32_TIMCLK2;
}
#endif
#if STM32_EICU_USE_TIM11
@@ -958,7 +958,7 @@ void eicu_lld_start(EICUDriver *eicup) {
rccResetTIM11();
nvicEnableVector(STM32_TIM11_NUMBER, STM32_EICU_TIM11_IRQ_PRIORITY);
eicup->channels = 1;
- eicup->clock = STM32_TIMCLK1;
+ eicup->clock = STM32_TIMCLK2;
}
#endif
#if STM32_EICU_USE_TIM13