Function avr_device::interrupt::disable

source ·
pub fn disable()
Expand description

Disable the global interrupt flag.

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.