pub fn without_interrupts<R>(f: impl FnOnce() -> R) -> RExpand 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.