\section{aversive\_\-10-03-12/modules/base/utils/irq\_\-lock\_\-macros.h File Reference}
\label{irq__lock__macros_8h}\index{aversive\_\-10-03-12/modules/base/utils/irq\_\-lock\_\-macros.h@{aversive\_\-10-03-12/modules/base/utils/irq\_\-lock\_\-macros.h}}
Interface of the utils module. 

{\tt \#include $<$aversive/irq\_\-lock.h$>$}\par


\subsection{Detailed Description}
Interface of the utils module. 

here are defined the three macros :

\doxyref{IRQ\_\-LOCK(flags)}{p.}{irq__lock_8h_56988e8d5a77d00c601fa2ec150da1b4}; this saves interrupt state \doxyref{IRQ\_\-UNLOCK(flags)}{p.}{irq__lock_8h_b7f2a27e5c0e94ff8b5bdc011e062943}; this restores interrupt state

code example follows:

uint8\_\-t flags; \doxyref{IRQ\_\-LOCK(flags)}{p.}{irq__lock_8h_56988e8d5a77d00c601fa2ec150da1b4}; // code to be protected against interrupts ... \doxyref{IRQ\_\-UNLOCK(flags)}{p.}{irq__lock_8h_b7f2a27e5c0e94ff8b5bdc011e062943}; // needs to be associated with an unlock 

Definition in file {\bf irq\_\-lock\_\-macros.h}.