Commit a4d28e52 authored by Damien George's avatar Damien George

stm32/timer: Fix use of TIM8 on H5 MCU's.

Signed-off-by: default avatarDamien George <damien@micropython.org>
parent 67b1c81f
......@@ -786,7 +786,7 @@ void TIM8_UP_TIM13_IRQHandler(void) {
IRQ_EXIT(TIM8_UP_TIM13_IRQn);
}
#if defined(STM32G4) || defined(STM32L4)
#if defined(STM32G4) || defined(STM32H5) || defined(STM32L4)
void TIM8_UP_IRQHandler(void) {
IRQ_ENTER(TIM8_UP_IRQn);
timer_irq_handler(8);
......
......@@ -884,10 +884,11 @@ STATIC const uint32_t tim_instance_table[MICROPY_HW_MAX_TIMER] = {
TIM_ENTRY(7, TIM7_IRQn),
#endif
#endif
#if defined(TIM8)
#if defined(STM32F4) || defined(STM32F7) || defined(STM32H7)
TIM_ENTRY(8, TIM8_UP_TIM13_IRQn),
#elif defined(STM32G4) || defined(STM32L4)
#else
TIM_ENTRY(8, TIM8_UP_IRQn),
#endif
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment