aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-stm32')
-rw-r--r--embassy-stm32/src/timer/complementary_pwm.rs16
1 files changed, 1 insertions, 15 deletions
diff --git a/embassy-stm32/src/timer/complementary_pwm.rs b/embassy-stm32/src/timer/complementary_pwm.rs
index 1f049cb32..b291fc155 100644
--- a/embassy-stm32/src/timer/complementary_pwm.rs
+++ b/embassy-stm32/src/timer/complementary_pwm.rs
@@ -92,11 +92,7 @@ impl<'d, T: AdvancedInstance4Channel> ComplementaryPwm<'d, T> {
92 } 92 }
93 93
94 /// Sets the idle output state for the given channels. 94 /// Sets the idle output state for the given channels.
95 pub fn set_output_idle_state( 95 pub fn set_output_idle_state(&mut self, channels: &[Channel], polarity: IdlePolarity) {
96 &mut self,
97 channels: &[Channel],
98 polarity: IdlePolarity,
99 ) {
100 let ois_active = matches!(polarity, IdlePolarity::OisActive); 96 let ois_active = matches!(polarity, IdlePolarity::OisActive);
101 for &channel in channels { 97 for &channel in channels {
102 self.inner.set_ois(channel, ois_active); 98 self.inner.set_ois(channel, ois_active);
@@ -139,16 +135,6 @@ impl<'d, T: AdvancedInstance4Channel> ComplementaryPwm<'d, T> {
139 self.inner.get_moe() 135 self.inner.get_moe()
140 } 136 }
141 137
142 /// Set Master Slave Mode 2
143 pub fn set_mms2(&mut self, mms2: Mms2) {
144 self.inner.set_mms2_selection(mms2);
145 }
146
147 /// Set Repetition Counter
148 pub fn set_repetition_counter(&mut self, val: u16) {
149 self.inner.set_repetition_counter(val);
150 }
151
152 /// Enable the given channel. 138 /// Enable the given channel.
153 pub fn enable(&mut self, channel: Channel) { 139 pub fn enable(&mut self, channel: Channel) {
154 self.inner.enable_channel(channel, true); 140 self.inner.enable_channel(channel, true);