1
0
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:
Vladimir Zidar 2016-05-24 11:25:17 +02:00 committed by Laurent Lalanne
parent 0695e6acb2
commit 05d6d983ae

View File

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