aversive_10-03-12/modules/base/utils/irq_lock_macros.h File Reference

Interface of the utils module. More...

#include <aversive/irq_lock.h>

Go to the source code of this file.


Detailed Description

Interface of the utils module.

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.


Generated on Fri Mar 12 06:32:05 2010 for AVR by  doxygen 1.5.6