nrf: sequencepwm dont wait for tasks_stop afterall
This commit is contained in:
parent
3a166db280
commit
4d61f4aa0d
1 changed files with 0 additions and 4 deletions
|
@ -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 a new issue