This is an automated email from the ASF dual-hosted git repository.

kasjer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 592b6f7ac47a829d6761180ce2c91d8c566fd8fd
Author: Wiktor Kwiatkowski <[email protected]>
AuthorDate: Fri May 8 12:58:24 2026 +0200

    bsp/nucleo-f439zi: Add PWM support
    
    This adds PWM device configurations. It defines structures for
    PWM_0, PWM_1, and PWM_2 mapping them to the hardware timers.
---
 hw/bsp/nucleo-f439zi/src/hal_bsp.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/hw/bsp/nucleo-f439zi/src/hal_bsp.c 
b/hw/bsp/nucleo-f439zi/src/hal_bsp.c
index 16e791dbb..f88ae0896 100644
--- a/hw/bsp/nucleo-f439zi/src/hal_bsp.c
+++ b/hw/bsp/nucleo-f439zi/src/hal_bsp.c
@@ -38,6 +38,18 @@
 #include <pwm_stm32/pwm_stm32.h>
 #endif
 
+#if MYNEWT_VAL(PWM_0)
+struct stm32_pwm_conf os_bsp_pwm0_cfg = { .tim = TIM3, .irq = TIM3_IRQn };
+#endif
+
+#if MYNEWT_VAL(PWM_1)
+struct stm32_pwm_conf os_bsp_pwm1_cfg = { .tim = TIM4, .irq = TIM4_IRQn };
+#endif
+
+#if MYNEWT_VAL(PWM_2)
+struct stm32_pwm_conf os_bsp_pwm2_cfg = { .tim = TIM2, .irq = TIM2_IRQn };
+#endif
+
 const uint32_t stm32_flash_sectors[] = {
     /* Bank 1 */
     0x08000000,     /* 16kB */

Reply via email to