From 66296f673b05f3e34a85f85f30a23a98a863b3e3 Mon Sep 17 00:00:00 2001 From: Jakob Date: Wed, 11 Jun 2025 11:34:37 +0200 Subject: Enable autoreload_preload for complementary PWM --- embassy-stm32/src/timer/complementary_pwm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/embassy-stm32/src/timer/complementary_pwm.rs b/embassy-stm32/src/timer/complementary_pwm.rs index 8eec6c0c7..7807bb1bf 100644 --- a/embassy-stm32/src/timer/complementary_pwm.rs +++ b/embassy-stm32/src/timer/complementary_pwm.rs @@ -88,6 +88,7 @@ impl<'d, T: AdvancedInstance4Channel> ComplementaryPwm<'d, T> { this.inner.set_output_compare_mode(channel, OutputCompareMode::PwmMode1); this.inner.set_output_compare_preload(channel, true); }); + this.inner.set_autoreload_preload(true); this } -- cgit