mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2025-01-11 13:01:30 +11:00
Generate sev in sio.fifo.write()
This commit is contained in:
parent
92f7c68d57
commit
6ab9cd7ed3
|
@ -109,6 +109,9 @@ impl SioFifo {
|
||||||
pub fn write(&mut self, value: u32) {
|
pub fn write(&mut self, value: u32) {
|
||||||
let sio = unsafe { &(*pac::SIO::ptr()) };
|
let sio = unsafe { &(*pac::SIO::ptr()) };
|
||||||
sio.fifo_wr.write(|w| unsafe { w.bits(value) });
|
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.
|
/// Read from the inter-core FIFO.
|
||||||
|
|
Loading…
Reference in a new issue