summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2020-06-25 16:10:00 +1000
committerDamien George <damien@micropython.org>2020-06-25 16:32:48 +1000
commitc5af3217d985f517287c6b85bda16c5b7f9fa677 (patch)
treeb17a0f5a8751098ac393a8dbe6ef0a4b74b1f19d
parenteb9850ef6cbb1d5a05d18a1e050f7a78b106c502 (diff)
stm32/timer: Support TIM1 on WB MCUs.
Signed-off-by: Damien George <damien@micropython.org>
-rw-r--r--ports/stm32/stm32_it.c2
-rw-r--r--ports/stm32/timer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/stm32_it.c b/ports/stm32/stm32_it.c
index b84f4adfa..8e96da177 100644
--- a/ports/stm32/stm32_it.c
+++ b/ports/stm32/stm32_it.c
@@ -602,7 +602,7 @@ void TIM1_UP_TIM10_IRQHandler(void) {
IRQ_EXIT(TIM1_UP_TIM10_IRQn);
}
-#if defined(STM32L4)
+#if defined(STM32L4) || defined(STM32WB)
void TIM1_UP_TIM16_IRQHandler(void) {
IRQ_ENTER(TIM1_UP_TIM16_IRQn);
timer_irq_handler(1);
diff --git a/ports/stm32/timer.c b/ports/stm32/timer.c
index 491221ec2..c6f3d21f8 100644
--- a/ports/stm32/timer.c
+++ b/ports/stm32/timer.c
@@ -805,7 +805,7 @@ STATIC const uint32_t tim_instance_table[MICROPY_HW_MAX_TIMER] = {
TIM_ENTRY(1, TIM1_UP_TIM10_IRQn),
#elif defined(STM32H7)
TIM_ENTRY(1, TIM1_UP_IRQn),
- #elif defined(STM32L4)
+ #elif defined(STM32L4) || defined(STM32WB)
TIM_ENTRY(1, TIM1_UP_TIM16_IRQn),
#endif
#endif