aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-04-22 08:53:25 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-04-22 08:53:25 +0000
commitce7758eb012ae03a4c43da17680453ef6af4026a (patch)
tree0b71e21430ca5c4688a3d16ddecdd9f4da19911b /os
parent2f7fab8fb348668b5a06bb0ed4f133ea0797029e (diff)
downloadChibiOS-ce7758eb012ae03a4c43da17680453ef6af4026a.tar.gz
ChibiOS-ce7758eb012ae03a4c43da17680453ef6af4026a.tar.bz2
ChibiOS-ce7758eb012ae03a4c43da17680453ef6af4026a.zip
Fixed bug #486.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6876 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/ports/STM32/LLD/TIMv1/icu_lld.c2
-rw-r--r--os/hal/ports/STM32/LLD/TIMv1/pwm_lld.c2
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