Fix PWM for advanced timers

This commit is contained in:
chemicstry
2022-06-23 02:27:39 +03:00
parent 4a6f69e2d9
commit 3cdd8c1aeb
3 changed files with 56 additions and 32 deletions

View File

@ -92,6 +92,8 @@ impl<'d, T: CaptureCompare16bitInstance> SimplePwm<'d, T> {
this.inner.start();
unsafe {
this.inner.enable_outputs(true);
this.inner
.set_output_compare_mode(Channel::Ch1, OutputCompareMode::PwmMode1);
this.inner