stm32-rs / stm32f7xx-hal

A Rust embedded-hal HAL for all MCUs in the STM32 F7 family
Apache License 2.0
114 stars 65 forks source link

Add initial PWM support #167

Closed maximeborges closed 2 years ago

maximeborges commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

hannobraun commented 2 years ago

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

maximeborges commented 2 years ago

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

hannobraun commented 2 years ago

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

maximeborges commented 2 years ago

The last commit awaits merge of https://github.com/stm32-rs/stm32-rs/pull/700

maximeborges commented 2 years ago

Replaced by #179