This is an automated email from the ASF dual-hosted git repository. janc pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 2b7e8fc674a70c4065c7d40944866b570c69ac0b Author: Wiktor Kwiatkowski <[email protected]> AuthorDate: Wed Apr 15 10:44:17 2026 +0200 bsp/nucleo-g0b1re: Fix pwm configuration Mapped PWM_0 to TIM2. This fixes build errors caused by incorrect timer and IRQ settings. --- hw/bsp/nucleo-g0b1re/src/hal_bsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/bsp/nucleo-g0b1re/src/hal_bsp.c b/hw/bsp/nucleo-g0b1re/src/hal_bsp.c index 3ed1b5bdb..3c3443e83 100644 --- a/hw/bsp/nucleo-g0b1re/src/hal_bsp.c +++ b/hw/bsp/nucleo-g0b1re/src/hal_bsp.c @@ -43,14 +43,14 @@ #if MYNEWT_VAL(PWM_0) struct stm32_pwm_conf os_bsp_pwm0_cfg = { - .tim = TIM3, - .irq = TIM3_IRQn, + .tim = TIM2, + .irq = TIM2_IRQn, }; #endif #if MYNEWT_VAL(PWM_1) struct stm32_pwm_conf os_bsp_pwm1_cfg = { .tim = TIM4, - .irq = TIM4_IRQn, + .irq = TIM3_TIM4_IRQn, }; #endif #if MYNEWT_VAL(PWM_2)
