From c5af3217d985f517287c6b85bda16c5b7f9fa677 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 25 Jun 2020 16:10:00 +1000 Subject: [PATCH] stm32/timer: Support TIM1 on WB MCUs. Signed-off-by: Damien George --- ports/stm32/stm32_it.c | 2 +- ports/stm32/timer.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/stm32/stm32_it.c b/ports/stm32/stm32_it.c index b84f4adfae..8e96da177b 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 491221ec2a..c6f3d21f86 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