!drivers/pwm: remove PWM_MULTICHAN option#18864
Conversation
|
CI run with nuttx-apps branch is here: https://github.com/raiden00pl/manual-nuttx-ci/actions/runs/25676150035 |
|
@raiden00pl please fix: |
michallenc
left a comment
There was a problem hiding this comment.
so far LGTM, I can test on SAMv7 later today.
4c46b05 to
95fef1f
Compare
michallenc
left a comment
There was a problem hiding this comment.
Tested on SAMv7, all looks good.
BREAKING CHANGE: remove PWM_MULTICHAN option PWM_MULTICHAN option is redundant, we can just set CONFIG_PWM_NCHANNELS > 1. At default CONFIG_PWM_NCHANNELS is set to 1, so the default behavior is preserved. Access to single channel API is now `info->channels[0].XXX` instead of `info->XXX` This is the first step to simplify PWM implementation and make it more portable. Signed-off-by: raiden00pl <raiden00@railab.me>
|
CI for this PR and apps part (https://github.com/raiden00pl/manual-nuttx-ci/actions/runs/25676150035) pass: https://github.com/raiden00pl/manual-nuttx-ci/actions/runs/25676150035 If we merge this before release 13.0, I can try to separate common PWM driver from pulse count PWM, as discussed here: #12381 (comment) |
|
So this is one of those PRs that needs apps + kernel merge at once? Looks good to me! |
cederom
left a comment
There was a problem hiding this comment.
Thank you @raiden00pl :-)
Summary
BREAKING CHANGE: remove PWM_MULTICHAN option
PWM_MULTICHAN option is redundant, we can just set CONFIG_PWM_NCHANNELS > 1. This is the first step to simplify PWM implementation and make it more portable.
apps part apache/nuttx-apps#3475
Impact
simplify API, no functional changes. old
CONFIG_PWM_MULTICHAN=nis now achieved withCONFIG_PWM_NCHANNELS = 1Testing
CI