Skip to content

Commit

Permalink
Merge pull request #2429 from jr-oss/stm32_simple_pwm_add_set_output_…
Browse files Browse the repository at this point in the history
…compare_mode

stm32/simple_pwm: add set_output_compare_mode
  • Loading branch information
Dirbaio authored Jan 20, 2024
2 parents 326bff3 + db776c9 commit 67159d8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions embassy-stm32/src/timer/simple_pwm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 67159d8

Please sign in to comment.