Skip to content
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

include/nuttx/timers/pwm: Add user provided argument in struct pwm_info_s #8277

Merged
merged 1 commit into from
Jan 28, 2023

Conversation

xiaoxiang781216
Copy link
Contributor

@xiaoxiang781216 xiaoxiang781216 commented Jan 27, 2023

Summary

Here is a case how to use arg:

If application need do the ADC conversion as the same frequency and phase of PWM, he can pass a semaphore as arg and then PWM driver will post the semaphore in he start point of every period.

Impact

New field for IOCTL

Testing

Pass CI

@acassis
Copy link
Contributor

acassis commented Jan 27, 2023

Please update Documentation/components/drivers/character/pwm.rst

@acassis
Copy link
Contributor

acassis commented Jan 27, 2023

Also please add in the Summary the motivation to add this user argument

@xiaoxiang781216
Copy link
Contributor Author

Please update Documentation/components/drivers/character/pwm.rst

But pwm.rst doesn't describe any IOCTL:(.

Also please add in the Summary the motivation to add this user argument

Added.

…fo_s

Here is a case how to use arg:
If application need do the ADC conversion as the same frequency and phase
of PWM, he can pass a semaphore as arg and then PWM driver will post the
semaphore in he start point of every period.

Signed-off-by: zhangchengqi <zhangchengqi@xiaomi.com>
@pkarashchenko pkarashchenko merged commit 76bdfcc into apache:master Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants