Skip to content

Conversation

@mstasiaknordic
Copy link
Contributor

@mstasiaknordic mstasiaknordic commented Nov 27, 2024

Added clock control api for global hsfll used in fast PWM120 driver.

@mstasiaknordic mstasiaknordic force-pushed the pwm_global_hsfll branch 3 times, most recently from e94eb66 to 1e59406 Compare December 4, 2024 08:08
@mstasiaknordic mstasiaknordic marked this pull request as ready for review December 11, 2024 09:56
@zephyrbot zephyrbot added platform: nRF Nordic nRFx area: PWM Pulse Width Modulation labels Dec 11, 2024
@mstasiaknordic
Copy link
Contributor Author

@bjarki-andreasen You can have a look

Copy link
Contributor

@bjarki-andreasen bjarki-andreasen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

nordic-krch
nordic-krch previously approved these changes Jan 13, 2025
masz-nordic
masz-nordic previously approved these changes Jan 17, 2025
nika-nordic
nika-nordic previously approved these changes Jan 17, 2025
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: with config->clk_dev && !data->clock_requested you could avoid clock_requested being checked for instances that don't need to request clock anyway

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checking of config->clk_dev is redundant here.
Same piece of code for stopping the PWM and releasing the clock is used in pwm_suspend(). How about using a helper function for this to avoid duplication?

Added clock control api for global hsfll used in fast PWM120 driver.

Signed-off-by: Michał Stasiak <[email protected]>
@kartben kartben merged commit 2c89ed5 into zephyrproject-rtos:main Jan 17, 2025
24 checks passed
@mstasiaknordic mstasiaknordic deleted the pwm_global_hsfll branch March 20, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Base OS Base OS Library (lib/os) area: Clock Control area: PWM Pulse Width Modulation platform: nRF Nordic nRFx

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants