Skip to content

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

Closed
wants to merge 2 commits into from
Closed

Conversation

maximeborges
Copy link
Member

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.

@hannobraun
Copy link
Contributor

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.

@maximeborges
Copy link
Member Author

This seems to be working only on the first channel of each timer for some reason...

@hannobraun
Copy link
Contributor

Sorry, I haven't gotten to those pull requests yet. I'm hoping for next week.

@maximeborges
Copy link
Member Author

I'm currently cleaning up a demo project using another version based on the H7 version, which support advanced features that I needed.

Copy link
Contributor

@hannobraun hannobraun left a 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.

- Update timer.rs with features from `stm32f4xx-hal`
- Remove chip feature for examples
- Use H7 HAL as a base for `pwm.rs`
@hannobraun
Copy link
Contributor

Thank you for the changes, @maximeborges. There's still a CI failure, unfortunately. This time a problem with the F722.

@maximeborges
Copy link
Member Author

The last commit awaits merge of stm32-rs/stm32-rs#700

@maximeborges
Copy link
Member Author

Replaced by #179

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.

2 participants