Function avr_device::interrupt::enable

source ·
pub unsafe fn enable()
Expand description

Enable the global interrupt flag.

Warning: This function enables interrupts, no matter what the enable-state was before crate::interrupt::disable. Especially in library code, where the previous interrupt state may be unknown, this function call shall be avoided. 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