From 73d9e07726c27c203687173395c887f3a86d39fe Mon Sep 17 00:00:00 2001 From: Ray Morris Date: Sat, 2 May 2026 19:45:29 -0500 Subject: [PATCH] BLUEBERRYF405: add PWM beeper timer entry for PB9 TIM11/CH1 is the correct timer mapping for PB9 on STM32F405. Without this DEF_TIM entry, beeperPwmInit() silently fails because timerGetByTag(PB9, TIM_USE_BEEPER) returns NULL, leaving the beeper non-functional when beeper_pwm_mode is enabled. Fixes beeper_pwm_mode regression on this target. Same fix was previously applied to BLUEBERRYH743 (commit a66b346c). --- src/main/target/BLUEBERRYF405/target.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/target/BLUEBERRYF405/target.c b/src/main/target/BLUEBERRYF405/target.c index b712d9f0974..8151b81e77e 100644 --- a/src/main/target/BLUEBERRYF405/target.c +++ b/src/main/target/BLUEBERRYF405/target.c @@ -40,6 +40,7 @@ timerHardware_t timerHardware[] = { DEF_TIM(TIM4, CH1, PB6, TIM_USE_OUTPUT_AUTO, 0, 0), // S11 D(1,0,2) DEF_TIM(TIM3, CH4, PB1, TIM_USE_LED, 0, 0), // 2812LED D(1,2,5) + DEF_TIM(TIM11, CH1, PB9, TIM_USE_BEEPER, 0, 0), // BEEPER PWM DEF_TIM(TIM5, CH3, PA2, TIM_USE_ANY, 0, 0), // softserial1_TX (PA2 shared with UART2_TX) };