Merge pull request #2429 from jr-oss/stm32_simple_pwm_add_set_output_compare_mode

stm32/simple_pwm: add set_output_compare_mode
This commit is contained in:
Dario Nieuwenhuis 2024-01-20 01:33:49 +00:00 committed by GitHub
commit 67159d80bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -151,6 +151,11 @@ impl<'d, T: CaptureCompare16bitInstance> SimplePwm<'d, T> {
self.inner.set_output_polarity(channel, polarity);
}
/// Set the output compare mode for a given channel.
pub fn set_output_compare_mode(&mut self, channel: Channel, mode: OutputCompareMode) {
self.inner.set_output_compare_mode(channel, mode);
}
/// Generate a sequence of PWM waveform
///
/// Note: