-
Notifications
You must be signed in to change notification settings - Fork 182
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
PWM expose 2 channels, take their pins and force their mode. #42
Comments
This looks like it has been fixed by allowing external impls of the However, I feel like it might be more ergonomic to impl all the possible pin/channel combinations, probably via a macro. Is there a reason we haven't done that before? |
Hi @TheZoq2 , Regards, |
Only thé used code Will be on the binary so it shouldn't be a problem. |
I'll try to experiment with this when I get time |
This has been fixed in #147 |
There are a few issues with the current code:
example form timer_input:
I propose having the channels pins using the
Option
and a generic mode:here is a more complete example:
https://github.com/japaric/stm32f103xx-hal/blob/9f132cd3a8a95d0b726f925c239fad6e74b60d76/src/pwm2.rs#L219
The text was updated successfully, but these errors were encountered: