mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 14:44:32 +00:00
stm32/simple_pwm: add set_output_compare_mode
This commit is contained in:
parent
77e60ecff8
commit
db776c9623
@ -151,6 +151,11 @@ impl<'d, T: CaptureCompare16bitInstance> SimplePwm<'d, T> {
|
|||||||
self.inner.set_output_polarity(channel, polarity);
|
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
|
/// Generate a sequence of PWM waveform
|
||||||
///
|
///
|
||||||
/// Note:
|
/// Note:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user