Skip to content

How would one configure a PWM using this crate? #43

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

Closed
acburigo opened this issue Nov 3, 2020 · 4 comments
Closed

How would one configure a PWM using this crate? #43

acburigo opened this issue Nov 3, 2020 · 4 comments

Comments

@acburigo
Copy link

acburigo commented Nov 3, 2020

Is there an easy way to configure a PWM using this crate? If not, does anyone know a good crate for doing so?

@fpagliughi
Copy link
Contributor

No, this crate does not expose the Linux PWM interface, if that's what you're looking for.

@acburigo
Copy link
Author

acburigo commented Nov 6, 2020

Is this a limitation of this crate or a limitation of "GPIO Character Device"? I've seen some crates using "sysfs" for configuring PWM pins (for example, rppal and sysfs-pwm). Should I start using sysfs for doing that?

@fpagliughi
Copy link
Contributor

The GPIO chardev system is separate from the PWM interface, so it's a matter of which crate is targeting which Linux API. The sysfs-pwm sounds like what you may be looking for, but it appears to have a single release from five years ago, so I suspect it could use some testing and probably an update.

@posborne
Copy link
Member

I'm going to close this, I am the original author of this crate and sysfs-pwm which has moved ownership to the wg, but it does definitely need a fresh review and a release.

See rust-embedded/rust-sysfs-pwm#12

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

No branches or pull requests

3 participants