aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-nrf/src/saadc.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/embassy-nrf/src/saadc.rs b/embassy-nrf/src/saadc.rs
index 3acfa50d7..273eff799 100644
--- a/embassy-nrf/src/saadc.rs
+++ b/embassy-nrf/src/saadc.rs
@@ -295,9 +295,12 @@ impl<'d, const N: usize> Saadc<'d, N> {
295 295
296 // Reset and enable the events 296 // Reset and enable the events
297 r.events_end.reset(); 297 r.events_end.reset();
298 r.intenset.write(|w| w.end().set());
299 r.events_started.reset(); 298 r.events_started.reset();
300 r.intenset.write(|w| w.started().set()); 299 r.intenset.write(|w| {
300 w.end().set();
301 w.started().set();
302 w
303 });
301 304
302 // Don't reorder the ADC start event before the previous writes. Hopefully self 305 // Don't reorder the ADC start event before the previous writes. Hopefully self
303 // wouldn't happen anyway. 306 // wouldn't happen anyway.