Function avr_device::interrupt::is_enabled
source · pub fn is_enabled() -> bool
Expand description
Check whether the global interrupt flag is currently enabled (in SREG).
Warning: You shouldn’t use this to hand craft your own memory/interrupt safety mechanisms. This function may be used for things such as deciding whether to do expensive calculations in library code, or similar things.
This function is not an optimization fence. That means memory accesses can be re-ordered by the compiler across this function call.