mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
LP-72 Fix for f2aa171 that broke revonano build - stm32f411 has no TIM8
This commit is contained in:
parent
0695e6acb2
commit
05d6d983ae
@ -140,10 +140,12 @@ int32_t PIOS_TIM_InitClock(const struct pios_tim_clock_cfg *cfg)
|
||||
NVIC_InitTypeDef init = cfg->irq.init;
|
||||
init.NVIC_IRQChannel = TIM1_UP_TIM10_IRQn;
|
||||
NVIC_Init(&init);
|
||||
#if !defined (STM32F401xx) && !defined (STM32F411xE)
|
||||
} else if (cfg->timer == TIM8) {
|
||||
NVIC_InitTypeDef init = cfg->irq.init;
|
||||
init.NVIC_IRQChannel = TIM8_UP_TIM13_IRQn;
|
||||
NVIC_Init(&init);
|
||||
#endif
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user