This commit is contained in:
Justin Beaurivage 2024-01-31 14:20:06 -05:00
parent d364447a34
commit cc12eb9680

View file

@ -810,7 +810,10 @@ impl<'d, T: Instance, U: TimerInstance> UarteRxWithIdle<'d, T, U> {
r.events_endrx.reset();
r.events_error.reset();
r.intenset.write(|w| {w.endrx().set(); w.error().set()});
r.intenset.write(|w| {
w.endrx().set();
w.error().set()
});
compiler_fence(Ordering::SeqCst);
@ -864,7 +867,10 @@ impl<'d, T: Instance, U: TimerInstance> UarteRxWithIdle<'d, T, U> {
r.events_endrx.reset();
r.events_error.reset();
r.intenclr.write(|w| {w.endrx().clear(); w.error().clear()});
r.intenclr.write(|w| {
w.endrx().clear();
w.error().clear()
});
compiler_fence(Ordering::SeqCst);