summaryrefslogtreecommitdiff
path: root/ports/stm32/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/timer.c')
-rw-r--r--ports/stm32/timer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ports/stm32/timer.c b/ports/stm32/timer.c
index 5319ae4ec..5f2e213a0 100644
--- a/ports/stm32/timer.c
+++ b/ports/stm32/timer.c
@@ -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