Browse Source

stm32/timer: Support TIM1 on WB MCUs.

Signed-off-by: Damien George <damien@micropython.org>
pull/6187/head
Damien George 4 years ago
parent
commit
c5af3217d9
  1. 2
      ports/stm32/stm32_it.c
  2. 2
      ports/stm32/timer.c

2
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);

2
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

Loading…
Cancel
Save