From 4d61f4aa0dcdaf330e7b9c3df407be03dd8181d4 Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Sat, 13 Nov 2021 17:31:02 -0700 Subject: [PATCH] nrf: sequencepwm dont wait for tasks_stop afterall --- embassy-nrf/src/pwm.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/embassy-nrf/src/pwm.rs b/embassy-nrf/src/pwm.rs index 48a826e9..7f08866e 100644 --- a/embassy-nrf/src/pwm.rs +++ b/embassy-nrf/src/pwm.rs @@ -317,13 +317,9 @@ impl<'d, T: Instance> SequencePwm<'d, T> { compiler_fence(Ordering::SeqCst); - r.events_stopped.reset(); - // tasks_stop() doesn't exist in all svds so write its bit instead r.tasks_stop.write(|w| unsafe { w.bits(0x01) }); - while r.events_stopped.read().bits() == 0 {} - r.enable.write(|w| w.enable().disabled()); } }