nrf: sequencepwm dont wait for tasks_stop afterall
This commit is contained in:
parent
3a166db280
commit
4d61f4aa0d
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user