summaryrefslogtreecommitdiffstatshomepage
path: root/ports/stm32/timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/stm32/timer.c')
-rw-r--r--ports/stm32/timer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ports/stm32/timer.c b/ports/stm32/timer.c
index 6006a3f666..491221ec2a 100644
--- a/ports/stm32/timer.c
+++ b/ports/stm32/timer.c
@@ -820,8 +820,12 @@ STATIC const uint32_t tim_instance_table[MICROPY_HW_MAX_TIMER] = {
TIM_ENTRY(5, TIM5_IRQn),
#endif
#if defined(TIM6)
+ #if defined(STM32F412Zx)
+ TIM_ENTRY(6, TIM6_IRQn),
+ #else
TIM_ENTRY(6, TIM6_DAC_IRQn),
#endif
+ #endif
#if defined(TIM7)
TIM_ENTRY(7, TIM7_IRQn),
#endif