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

Add support for using TIM2 as a PWM output #165

Open JanekGraff opened 1 year ago

JanekGraff commented 1 year ago

This adds support for the PWM output of TIM2 on supported devices. It is simply a matter of providing the corresponding implementations for the correct Pins and a pwm_4_channels implementation for TIM2.

JanekGraff commented 1 year ago

Sorry for the typos, this has been fixed with fd36360 and is building correctly now. Also this has been tested and is working on a STM32F042G6