stm32-rs / stm32f0xx-hal

A Rust `embedded-hal` implementation for all MCUs in the STM32 F0 family
BSD Zero Clause License
134 stars 59 forks source link

Continue Improvements to PWM Interface #167

Open AdinAck opened 1 year ago

AdinAck commented 1 year ago

Motivation

Now that the interface to create complementary PWM channels is exposed, it should include controlling the dead time as well.

Change(s) Description

Testing

It works.

Limitations

The implementation I've made for now does not include any of the fancy multiplier capabilities the BDTR register provides. This only allows the dead time to be from 0-7 clock cycles.

Future

therealprof commented 1 year ago

Would you please rebase the PR to get rid of the merge (and maybe some of the intermediate sausage making)?

AdinAck commented 11 months ago

170 will fix this PR.