Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32WB0: add timers support #83692

Merged
merged 6 commits into from
Jan 14, 2025

Conversation

mathieuchopstm
Copy link
Collaborator

Add support for the timer peripherals of STM32WB0 series (both counter and pwm).

Tests passed successfully on Nucleo-WB05KZ, Nucleo-WB07CC and Nucleo-WB09KE:

  • PWM
    • samples/basic/fade_led/
    • samples/basic/blinky_pwm/
    • tests/drivers/pwm/pwm_api/ (drivers.pwm)
  • Counter (excl. WB07)
    • tests/drivers/counter/counter_basic_api/ (drivers.counter.basic_api)

erwango
erwango previously approved these changes Jan 8, 2025
@mathieuchopstm mathieuchopstm added the DNM This PR should not be merged (Do Not Merge) label Jan 9, 2025
@mathieuchopstm
Copy link
Collaborator Author

mathieuchopstm commented Jan 9, 2025

Blocking merge until #83524 is integrated on main to avoid needing a follow-up PR for WB07 only.
(Not pushing updated branch yet to avoid a needless CI run)

@erwango
Copy link
Member

erwango commented Jan 9, 2025

Please update following #83524 merge

Add nodes for all timer peripherals to DTSI of the STM32WB0 series.

Signed-off-by: Mathieu Choplain <[email protected]>
This commit adds support for the STM32WB0 series to
the existing STM32 PWM driver.

Signed-off-by: Mathieu Choplain <[email protected]>
This commit adds support for the STM32WB0 series to
the existing STM32 timer-based counters driver.

Signed-off-by: Mathieu Choplain <[email protected]>
Add the PWM LED to Nucleo-WB09KE board and mark as compatible with PWM.
Also mark counters as supported (but don't enable by default).

Signed-off-by: Mathieu Choplain <[email protected]>
Add the PWM LED to Nucleo-WB05KZ board and mark as compatible with PWM.
Also mark counters as supported (but don't enable by default).

Signed-off-by: Mathieu Choplain <[email protected]>
Add the PWM LED to Nucleo-WB07CC board and mark as compatible with PWM.
Also mark counters as supported (but don't enable by default).

Signed-off-by: Mathieu Choplain <[email protected]>
@mathieuchopstm mathieuchopstm removed the DNM This PR should not be merged (Do Not Merge) label Jan 9, 2025
@mathieuchopstm
Copy link
Collaborator Author

mathieuchopstm commented Jan 9, 2025

Added missing counter nodes for TIM1/TIM2, and support for PWM on Nucleo-WB07.
All tests OK on that board as well (for counter to pass, set st,prescaler = <800>; on TIM1).

@kartben kartben merged commit 5b31aca into zephyrproject-rtos:main Jan 14, 2025
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Counter area: PWM Pulse Width Modulation platform: STM32 ST Micro STM32
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants