Fix F446 timer clocks
This commit is contained in:
parent
d09a5ef1a7
commit
57811cbd17
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue