Skip to main content

write_raw

Function write_raw 

Source
pub unsafe fn write_raw(r: u32)
Expand description

Writes the entire PRIMASK register

Note that bits [31:1] are reserved and SBZP (Should-Be-Zero-or-Preserved)

§Safety

This method is unsafe as other unsafe code may rely on interrupts remaining disabled, for example during a critical section, and being able to safely re-enable them would lead to undefined behaviour. Do not call this function in a context where interrupts are expected to remain disabled – for example, in the midst of a critical section or interrupt::free() call.