From 045f4bda35e7dda92356f5b89cc17be27b5e725b Mon Sep 17 00:00:00 2001 From: jflyper Date: Sat, 8 Jul 2017 22:31:32 +0900 Subject: [PATCH] All timers are fed with systemCoreClock on F411xE --- src/main/drivers/timer_stm32f4xx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/drivers/timer_stm32f4xx.c b/src/main/drivers/timer_stm32f4xx.c index 93786cd392..657f8910d6 100644 --- a/src/main/drivers/timer_stm32f4xx.c +++ b/src/main/drivers/timer_stm32f4xx.c @@ -94,6 +94,10 @@ uint8_t timerClockDivisor(TIM_TypeDef *tim) uint32_t timerClock(TIM_TypeDef *tim) { +#if defined (STM32F411xE) + UNUSED(tim); + return SystemCoreClock; +#else #if defined (STM32F40_41xxx) if (tim == TIM8) return SystemCoreClock; #endif @@ -102,4 +106,5 @@ uint32_t timerClock(TIM_TypeDef *tim) } else { return SystemCoreClock / 2; } +#endif }