summaryrefslogtreecommitdiff
path: root/ports/stm32/timer.c
diff options
context:
space:
mode:
authorThomas Roberts <tom.p.roberts@gmail.com>2020-05-14 14:56:26 +0100
committerDamien George <damien.p.george@gmail.com>2020-05-15 10:08:30 +1000
commitd7399679ded88a2f8b64f69f487bc52d648ca6fd (patch)
tree0fb9fd0b406f69b963b6bce58865a00ea8405b2d /ports/stm32/timer.c
parent8f3167a96247539b04daedb7fead39804d961454 (diff)
stm32: Add support for F412 MCUs.
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 6006a3f66..491221ec2 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