Module avr_device::interrupt[][src]

Expand description

Chip-Generic Interrupt Utilities

For the most part, crate::interrupt::free is what you want:

atmega32u4::interrupt::free(|cs| {
    // Interrupts are disabled here
})

Structs

Critical section token

A “mutex” based on critical sections

Traits

Interrupt number

Functions

Disables all interrupts

Enables all the interrupts

Execute closure f in an interrupt-free context.