aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhuntc <[email protected]>2022-02-04 19:14:24 +1100
committerhuntc <[email protected]>2022-02-04 19:14:24 +1100
commit3b2beddc7a5397864d12c66f4b562a2391d3c57c (patch)
tree161f7f90d2e9e7c78bfcac21a1a60acee1c499a9
parent965a5f2c3fba365519bed1c2a955145783d6a05b (diff)
Forgot to expose the stop method
-rw-r--r--embassy-nrf/src/pwm.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs
index c0d73bdc5..895292bc8 100644
--- a/embassy-nrf/src/pwm.rs
+++ b/embassy-nrf/src/pwm.rs
@@ -342,6 +342,14 @@ impl<'d, 's, T: Instance> SingleSequencer<'d, 's, T> {
342 }; 342 };
343 self.sequencer.start(start_seq, times) 343 self.sequencer.start(start_seq, times)
344 } 344 }
345
346 /// Stop playback. Disables the peripheral. Does NOT clear the last duty
347 /// cycle from the pin. Returns any sequences previously provided to
348 /// `start` so that they may be further mutated.
349 #[inline(always)]
350 pub fn stop(&self) {
351 self.sequencer.stop();
352 }
345} 353}
346 354
347/// A composition of sequences that can be started and stopped. 355/// A composition of sequences that can be started and stopped.