aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Rosenthal <[email protected]>2021-11-13 17:31:02 -0700
committerJacob Rosenthal <[email protected]>2021-11-13 17:31:09 -0700
commit4d61f4aa0dcdaf330e7b9c3df407be03dd8181d4 (patch)
tree3712c629ccf63ca64d65a02837a33fd43358755e
parent3a166db2800c2b4a141d955d035bb3120a2ac757 (diff)
nrf: sequencepwm dont wait for tasks_stop afterall
-rw-r--r--embassy-nrf/src/pwm.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs
index 48a826e9e..7f08866ee 100644
--- a/embassy-nrf/src/pwm.rs
+++ b/embassy-nrf/src/pwm.rs
@@ -317,13 +317,9 @@ impl<'d, T: Instance> SequencePwm<'d, T> {
317 317
318 compiler_fence(Ordering::SeqCst); 318 compiler_fence(Ordering::SeqCst);
319 319
320 r.events_stopped.reset();
321
322 // tasks_stop() doesn't exist in all svds so write its bit instead 320 // tasks_stop() doesn't exist in all svds so write its bit instead
323 r.tasks_stop.write(|w| unsafe { w.bits(0x01) }); 321 r.tasks_stop.write(|w| unsafe { w.bits(0x01) });
324 322
325 while r.events_stopped.read().bits() == 0 {}
326
327 r.enable.write(|w| w.enable().disabled()); 323 r.enable.write(|w| w.enable().disabled());
328 } 324 }
329} 325}