nrf: sequencepwm dont wait for tasks_stop afterall

This commit is contained in:
Jacob Rosenthal 2021-11-13 17:31:02 -07:00
parent 3a166db280
commit 4d61f4aa0d

View file

@ -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());
}
}