-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Latest Arduino Core release 1.61
void TIM8_IRQHandler(void)
{
if (timer_handles[TIMER8_INDEX] != NULL) {
HAL_TIM_IRQHandler(timer_handles[TIMER8_INDEX]);
}
#if defined(STM32F1xx) || defined(STM32F2xx) ||defined(STM32F4xx) || defined(STM32F7xx)
if (timer_handles[TIMER13_INDEX] != NULL) {
HAL_TIM_IRQHandler(timer_handles[TIMER13_INDEX]);
}
#endif
}
#endif //TIM8_BASE
TIM8_IRQHandler references to TIMER13_INDEX even though not all checked product lines implement a TIMER13. This causes a compile error when creating an F103xE variant (F103RC in this case). Adding a check for TIMER13_BASE prevents the error:
void TIM8_IRQHandler(void)
{
if (timer_handles[TIMER8_INDEX] != NULL) {
HAL_TIM_IRQHandler(timer_handles[TIMER8_INDEX]);
}
#if defined(STM32F1xx) || defined(STM32F2xx) ||defined(STM32F4xx) || defined(STM32F7xx)
#if defined(TIMER13_BASE)
if (timer_handles[TIMER13_INDEX] != NULL) {
HAL_TIM_IRQHandler(timer_handles[TIMER13_INDEX]);
}
#endif
#endif
}
#endif //TIM8_BASE
Metadata
Metadata
Assignees
Labels
bug 🐛Something isn't workingSomething isn't working