Function avr_device::interrupt::restore

source ·
pub unsafe fn restore(irq_flag: IrqFlag)
Expand description

Restore the global interrupt flag to its previous state before crate::interrupt::disable_save.

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.

Safety