-
Notifications
You must be signed in to change notification settings - Fork 71
Add initial PWM support #167
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
Conversation
Thank you for the pull request, @maximeborges! I'll try to find the time to review it soon. I hope that will be next week, but no promises. Please note that I'm stepping down as a maintainer and haven't found a replacement yet. If you're interested in getting involved, please check out issue #165. |
This seems to be working only on the first channel of each timer for some reason... |
Sorry, I haven't gotten to those pull requests yet. I'm hoping for next week. |
I'm currently cleaning up a demo project using another version based on the H7 version, which support advanced features that I needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again, @maximeborges. I couldn't find the time for a proper review, but I managed to take a look, and this looks good.
The CI build fails though, due to formatting (running cargo fmt
should fix that, as long as rustfmt is installed) and because this broke examples/stm32f7disco-screen/screen.rs
.
Once CI is green, I'd be happy to merge.
2e33975
to
4fab197
Compare
- Update timer.rs with features from `stm32f4xx-hal` - Remove chip feature for examples - Use H7 HAL as a base for `pwm.rs`
4fab197
to
1dbcad4
Compare
Thank you for the changes, @maximeborges. There's still a CI failure, unfortunately. This time a problem with the F722. |
The last commit awaits merge of stm32-rs/stm32-rs#700 |
Replaced by #179 |
The main purpose of this PR is to get some initial support for PWM.
It also integrates some features for timers from the
stm32f4xx-hal
repo.This will break existing implementation, but get us an much cleaner interface for instantiating and using timers.