Ensure the compiler doesn't reorder things before calling the sampler
This commit is contained in:
@ -316,6 +316,8 @@ impl<'d, const N: usize> Saadc<'d, N> {
|
||||
WAKER.register(cx.waker());
|
||||
|
||||
if r.events_end.read().bits() != 0 {
|
||||
compiler_fence(Ordering::SeqCst);
|
||||
|
||||
r.events_end.reset();
|
||||
r.intenset.write(|w| w.end().set());
|
||||
|
||||
|
Reference in New Issue
Block a user