Generate sev in sio.fifo.write()

This commit is contained in:
9names 2021-12-03 22:48:24 +11:00
parent 92f7c68d57
commit 6ab9cd7ed3

View file

@ -109,6 +109,9 @@ impl SioFifo {
pub fn write(&mut self, value: u32) {
let sio = unsafe { &(*pac::SIO::ptr()) };
sio.fifo_wr.write(|w| unsafe { w.bits(value) });
// Fire off an event to the other core.
// This is required as the other core may be `wfe` (waiting for event)
cortex_m::asm::sev();
}
/// Read from the inter-core FIFO.