From 57811cbd17d5f52666e11f2b2de52263d8b99b62 Mon Sep 17 00:00:00 2001 From: Martin Luessi Date: Mon, 22 Jan 2018 15:14:41 -0800 Subject: [PATCH] Fix F446 timer clocks --- src/main/drivers/timer_stm32f4xx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/drivers/timer_stm32f4xx.c b/src/main/drivers/timer_stm32f4xx.c index 0ee8ab676..4301b4a41 100644 --- a/src/main/drivers/timer_stm32f4xx.c +++ b/src/main/drivers/timer_stm32f4xx.c @@ -82,10 +82,10 @@ const timerDef_t timerDefinitions[HARDWARE_TIMER_DEFINITION_COUNT] = { uint32_t timerClock(TIM_TypeDef *tim) { -#if defined (STM32F411xE) || defined (STM32F446xx) +#if defined (STM32F411xE) UNUSED(tim); return SystemCoreClock; -#elif defined (STM32F40_41xxx) +#elif defined (STM32F40_41xxx) || defined (STM32F446xx) if (tim == TIM8 || tim == TIM1 || tim == TIM9 || tim == TIM10 || tim == TIM11) { return SystemCoreClock; } else {