Fix F446 timer clocks

This commit is contained in:
Martin Luessi 2018-01-22 15:14:41 -08:00
parent d09a5ef1a7
commit 57811cbd17
1 changed files with 2 additions and 2 deletions

View File

@ -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 {