Clear all interrupts

This commit is contained in:
Erik Bånvik 2024-02-29 02:02:01 +01:00
parent 35febae570
commit f0753998bc

View file

@ -42,9 +42,8 @@ impl<T: Instance> interrupt::typelevel::Handler<T::Interrupt> for InterruptHandl
unsafe fn on_interrupt() {
let r = T::regs();
let s = T::state();
let events = Event::from_radio_masked(r);
// clear active interrupts
r.intenclr.write(|w| w.bits(events.bits()));
// clear all interrupts
r.intenclr.write(|w| w.bits(0xffff_ffff));
s.event_waker.wake();
}
}