-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix PWM driver of RZ/A1 #9952
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 driver of RZ/A1 #9952
Conversation
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.
The code looks good to me, but need a bit detail commit message:
ff32b41
E.g. description of the bug and how/what fix this.
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.
Please split the fix, pin addition, and code refactoring into seperate commits.
PR content looks fine.
|
||
// Counter Restart | ||
if ((MTU2TSTR & tmp_tstr_st) == 0) { | ||
MTU2TSTR |= tmp_tstr_st; | ||
} |
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.
By the TIOR register, the output is fixed to Low when the duty is 0%, and fixed to Hi when 100%.
To change the TIOR register, the counter is temporarily stopped.
I splitted the commit. |
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.
🎉
Thank you! The split makes reviewing considerably easier!
I'm sorry. As an additional change, I changed condition statement of writing function. |
@d-kato No worries. You at least let us know about it, which is appreciated. |
@cmonr, I do not want to change the value of the TIOR register frequently. |
CI started |
Test run: SUCCESSSummary: 13 of 13 test jobs passed |
Fix PWM driver of RZ/A1
Description
Fixed a bug that caused noise when the duty was 0% and 100%.
And added pwm pin for GR-LYCHEE.
Pull request type
Reviewers
Release Notes