Module atmega32u4::interrupt [−][src]
Interrupts
For the most part, [interrupt::free] is what you want:
atmega32u4::interrupt::free(|cs| { // Interrupts are disabled here })
Structs
CriticalSection |
Critical section token |
Mutex |
A "mutex" based on critical sections |
Traits
Nr |
Interrupt number |
Functions
disable |
Disables all interrupts |
enable |
Enables all the interrupts |
free |
Execute closure |