summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuuki NAGAO <wf.yn386@gmail.com>2025-09-21 11:51:09 +0900
committerDamien George <damien@micropython.org>2025-09-23 14:49:10 +1000
commit86323519835114a9761cd65f073a4bdaafcfec1c (patch)
tree9439e825052889c4005fe5851cc7c16f206293f0
parentddf1a383ca110fa6787ea71ff92e3e110378bf2e (diff)
stm32/timer: Fix Timer(4) issue for STM32G0.
The definition of TIM_ENTRY of TIM4 is incorrect. Signed-off-by: Yuuki NAGAO <wf.yn386@gmail.com>
-rw-r--r--ports/stm32/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm32/timer.c b/ports/stm32/timer.c
index 8aa0b3a2d..cb196210b 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