Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

without_interrupts

Function without_interrupts 

Source
pub fn without_interrupts<R>(f: impl FnOnce() -> R) -> R
Expand description

Run f with CPU interrupts masked, then restore the previous state.

For a read-modify-write of a register an interrupt handler also writes (the DMA enable register, DPCR). Keep f short: VBlank waits until it returns.