Skip to content

Conversation

@tpambor
Copy link
Contributor

@tpambor tpambor commented Dec 17, 2025

This PR introduces a PWM driver for the STM32 low-power timer (LPTIM) peripheral on STM32 MCUs.

This driver is loosely based on the PWM driver for standard timers on STM32. For maintainability and readability, I split this into a new driver instead of integrating with the existing STM PWM driver, as the supported features differ and LPTIMs use a different low-level API LL_LPTIM_*.

This PR also requires updated pin definitions from #100890.

Fixes #57316.

Update hal_stm32 to include pin definitions for LPTIM peripheral.

Signed-off-by: Tim Pambor <[email protected]>
@zephyrbot zephyrbot added area: LED Label to identify LED subsystem area: Boards/SoCs area: PWM Pulse Width Modulation labels Dec 17, 2025
@github-actions
Copy link

github-actions bot commented Dec 17, 2025

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_stm32 zephyrproject-rtos/hal_stm32@9d05ebd (main) zephyrproject-rtos/hal_stm32#330 zephyrproject-rtos/hal_stm32#330/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

Add a PWM driver for the STM32 low-power timer (LPTIM) peripheral
on STM32 MCUs.

Signed-off-by: Tim Pambor <[email protected]>
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Boards/SoCs area: Devicetree Bindings area: LED Label to identify LED subsystem area: PWM Pulse Width Modulation area: Samples Samples DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-hal_stm32 platform: STM32 ST Micro STM32

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lptim pwm support for stm32

3 participants