From 86323519835114a9761cd65f073a4bdaafcfec1c Mon Sep 17 00:00:00 2001 From: Yuuki NAGAO Date: Sun, 21 Sep 2025 11:51:09 +0900 Subject: [PATCH] stm32/timer: Fix Timer(4) issue for STM32G0. The definition of TIM_ENTRY of TIM4 is incorrect. Signed-off-by: Yuuki NAGAO --- ports/stm32/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm32/timer.c b/ports/stm32/timer.c index 8aa0b3a2dd..cb196210ba 100644 --- a/ports/stm32/timer.c +++ b/ports/stm32/timer.c @@ -865,7 +865,7 @@ static const uint32_t tim_instance_table[MICROPY_HW_MAX_TIMER] = { #if defined(TIM4) #if defined(STM32G0B1xx) || defined(STM32G0C1xx) - TIM_ENTRY(3, TIM3_TIM4_IRQn), + TIM_ENTRY(4, TIM3_TIM4_IRQn), #else TIM_ENTRY(4, TIM4_IRQn), #endif