Function eos_rs::api::sys::disable_all_interrupts
source · pub unsafe fn disable_all_interrupts() -> bool
Expand description
Sets the Interrupt Master Enable (IME) register to 0, which disables all CPU interrupts (even if enabled in the Interrupt Enable (IE) register).
See https://problemkaputt.de/gbatek.htm#dsiomaps.
Returns the old value in the IME register.
Safety
The caller needs to make sure the system is in a state where it is safe to disable interrupts.