-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix pwm out resets after suspend #13492
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
Fix pwm out resets after suspend #13492
Conversation
@talorion, thank you for your changes. |
Thanks @talorion . Lot of work done here to update all the targets.
Can you describe how this is fixing it ? I see here adding new methods to PWMOut object.The description should describe the problem this is fixing. This should be rather a new feature (adding new functionality), although it fixes the issue, feature addition is more important here. Please update the above template. The previous suggestion was start/stop option, how does this compare (providing read methods instead to be able to write back?). |
@0xc0170 such a problem is described in #13480 the problem is very dependent on the implementation if just the duty cycle is given. So the simplest solution for me was to add methods to the pwmout_api that read the period in additon to the duty cycle, so it can be saved and set in PwmOut::suspend and PwmOut::resume. |
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
i changed the variable names |
@stevew817 I fixed the order of operations |
The changes in TARGET_Cypress look good to me. |
I started CI, I'll review meanwhile |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
I've set this to "Feature" as it adds new API (to drivers/hal). |
Summary of changes
Fixed a Problem where PwmOut resets settings after suspend.
The problem is described here: #13480
Impact of changes
Fixes: #13480
Migration actions required
Documentation
None
Pull request type
Test results
Reviewers