pub fn disable_save() -> IrqFlag
Expand description

Disable the global interrupt flag and return an opaque representation of the previous flag status.

Hint: Most of the time you probably don’t want to use this function directly. Consider creating a critical section with crate::interrupt::free instead.

This function is an optimization fence. That means memory accesses will not be re-ordered by the compiler across this function call.

Returns an object that contains the status of the global interrupt flag from before the disable_save() call. This object shall later be passed to the crate::interrupt::restore function.