-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
drivers: pwm: pwm_stm32.c: enable ARR preload #29619
Conversation
Enable ARR preload so that period or pulse updates are taken into account synchronously with update event (at the end of a ongoing period) And thus avoid undetermined intermediate pulse. Signed-off-by: Alexandre Bourdiol <[email protected]>
Seems like a duplicate of #29470 (or at least related) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this makes updates strictly synchronous to the update event.
As there was an already open PR trying to address the same observed issue, I think it would have been better to discuss the synchronous solution there to avoid 2 parallel PRs.
I confirm I can't reproduce the #29446 bug with this patch. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Yes, but to start the discussion, I wanted to shared my proposal so I needed to open a new PR. |
drivers: pwm: pwm_stm32.c: enable ARR preload
Enable ARR preload so that period or pulse updates are taken
into account synchronously with update event
(at the end of a ongoing period)
And thus avoid undetermined intermediate pulse.
Fixes #29446
Tested on Nucleo_f401re