#include <aversive/irq_lock.h>
Go to the source code of this file.
here are defined the three macros :
IRQ_LOCK(flags); this saves interrupt state IRQ_UNLOCK(flags); this restores interrupt state
code example follows:
uint8_t flags; IRQ_LOCK(flags); // code to be protected against interrupts ... IRQ_UNLOCK(flags); // needs to be associated with an unlock
Definition in file irq_lock_macros.h.