aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Rosenthal <[email protected]>2021-11-10 18:52:29 -0700
committerJacob Rosenthal <[email protected]>2021-11-10 18:52:32 -0700
commit4c2d0ac211af20aac3e2e0fbef1b540f92247ccb (patch)
tree14aaa9bad378585be45928e41e7834505f776ffb
parentc6736abf5e0f59c0bd96cf6f57c1f23c50fc54cd (diff)
doccomments
-rw-r--r--embassy-nrf/src/pwm.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs
index a53956c6e..5f31b772b 100644
--- a/embassy-nrf/src/pwm.rs
+++ b/embassy-nrf/src/pwm.rs
@@ -260,9 +260,9 @@ pub struct SequenceConfig {
260 pub prescaler: Prescaler, 260 pub prescaler: Prescaler,
261 /// How a sequence is read from RAM and is spread to the compare register 261 /// How a sequence is read from RAM and is spread to the compare register
262 pub sequence_load: SequenceLoad, 262 pub sequence_load: SequenceLoad,
263 /// Number of Times PWM periods to delay between each sequence sample 263 /// Number of PWM periods to delay between each sequence sample
264 pub refresh: u32, 264 pub refresh: u32,
265 /// Number of Times PWM periods after the sequence ends before starting the next sequence 265 /// Number of PWM periods after the sequence ends before starting the next sequence
266 pub end_delay: u32, 266 pub end_delay: u32,
267} 267}
268 268
@@ -329,7 +329,7 @@ pub enum CounterMode {
329impl<'d, T: Instance> SimplePwm<'d, T> { 329impl<'d, T: Instance> SimplePwm<'d, T> {
330 /// Creates the interface to a PWM instance. 330 /// Creates the interface to a PWM instance.
331 /// 331 ///
332 /// Defaults the freq to 1Mhz, max_duty 1000, duty 0, and pins low. 332 /// Defaults the freq to 1Mhz, max_duty 1000, duty 0, up mode, and pins low.
333 /// Must be started by calling `set_duty` 333 /// Must be started by calling `set_duty`
334 /// 334 ///
335 /// # Safety 335 /// # Safety