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

drivers: add support of pwm capture driver #6525

Merged
merged 3 commits into from
Jun 28, 2022

Conversation

zouboan
Copy link
Contributor

@zouboan zouboan commented Jun 26, 2022

Summary

  1. add lower half support of capture for stm32_capture, because there's no external interface for device driver in stm32_capture.c;
  2. add support of pwm input capture driver in drivers/timers;
  3. add setup of pwm capture device on stm32f4discovery board, for pwm input capture test;

Impact

stm32 timers and capture

Testing

Tested on custom board based on stm32f405 and stm32f4discovery board, the duty and frequence measurement result is correct.

@acassis
Copy link
Contributor

acassis commented Jun 27, 2022

Very nice @zouboan !!! Are you planing to add an app/ example to use /dev/capture0 ? Is it able to read PWM pulse used to control servo motors? I'm thinking about connecting a PWM signal from a RC receiver (i.e. I have a FrSky TFR6) and show the joystick position on NuttX

@zouboan
Copy link
Contributor Author

zouboan commented Jun 27, 2022 via email

@xiaoxiang781216 xiaoxiang781216 merged commit 00e8e4f into apache:master Jun 28, 2022
@zouboan zouboan deleted the fft-2 branch August 20, 2022 12:20
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.

3 participants