stm32/timer: Support TIM1 on WB MCUs.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2020-06-25 16:10:00 +10:00
parent eb9850ef6c
commit c5af3217d9
2 changed files with 2 additions and 2 deletions

View File

@ -602,7 +602,7 @@ void TIM1_UP_TIM10_IRQHandler(void) {
IRQ_EXIT(TIM1_UP_TIM10_IRQn); IRQ_EXIT(TIM1_UP_TIM10_IRQn);
} }
#if defined(STM32L4) #if defined(STM32L4) || defined(STM32WB)
void TIM1_UP_TIM16_IRQHandler(void) { void TIM1_UP_TIM16_IRQHandler(void) {
IRQ_ENTER(TIM1_UP_TIM16_IRQn); IRQ_ENTER(TIM1_UP_TIM16_IRQn);
timer_irq_handler(1); timer_irq_handler(1);

View File

@ -805,7 +805,7 @@ STATIC const uint32_t tim_instance_table[MICROPY_HW_MAX_TIMER] = {
TIM_ENTRY(1, TIM1_UP_TIM10_IRQn), TIM_ENTRY(1, TIM1_UP_TIM10_IRQn),
#elif defined(STM32H7) #elif defined(STM32H7)
TIM_ENTRY(1, TIM1_UP_IRQn), TIM_ENTRY(1, TIM1_UP_IRQn),
#elif defined(STM32L4) #elif defined(STM32L4) || defined(STM32WB)
TIM_ENTRY(1, TIM1_UP_TIM16_IRQn), TIM_ENTRY(1, TIM1_UP_TIM16_IRQn),
#endif #endif
#endif #endif