\section{aversive\_\-10-03-12/include/aversive/irq\_\-lock.h File Reference}
\label{irq__lock_8h}\index{aversive\_\-10-03-12/include/aversive/irq\_\-lock.h@{aversive\_\-10-03-12/include/aversive/irq\_\-lock.h}}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf GLOBAL\_\-IRQ\_\-ARE\_\-MASKED}()~(!(bit\_\-is\_\-set(SREG,7)))
\item 
\#define {\bf IRQ\_\-LOCK}(flags)
\item 
\#define {\bf IRQ\_\-UNLOCK}(flags)
\end{CompactItemize}


\subsection{Define Documentation}
\index{irq\_\-lock.h@{irq\_\-lock.h}!GLOBAL\_\-IRQ\_\-ARE\_\-MASKED@{GLOBAL\_\-IRQ\_\-ARE\_\-MASKED}}
\index{GLOBAL\_\-IRQ\_\-ARE\_\-MASKED@{GLOBAL\_\-IRQ\_\-ARE\_\-MASKED}!irq_lock.h@{irq\_\-lock.h}}
\subsubsection[GLOBAL\_\-IRQ\_\-ARE\_\-MASKED]{\setlength{\rightskip}{0pt plus 5cm}\#define GLOBAL\_\-IRQ\_\-ARE\_\-MASKED()~(!(bit\_\-is\_\-set(SREG,7)))}\label{irq__lock_8h_3839727ca9108244971933ebb1275c0a}




Definition at line 52 of file irq\_\-lock.h.

Referenced by uart\_\-send(), and uart\_\-send\_\-9bits().\index{irq\_\-lock.h@{irq\_\-lock.h}!IRQ\_\-LOCK@{IRQ\_\-LOCK}}
\index{IRQ\_\-LOCK@{IRQ\_\-LOCK}!irq_lock.h@{irq\_\-lock.h}}
\subsubsection[IRQ\_\-LOCK]{\setlength{\rightskip}{0pt plus 5cm}\#define IRQ\_\-LOCK(flags)}\label{irq__lock_8h_56988e8d5a77d00c601fa2ec150da1b4}


\textbf{Value:}

\begin{Code}\begin{verbatim}do {         \
  flags = SREG;                      \
  cli();                             \
  } while(0)
\end{verbatim}
\end{Code}


Definition at line 54 of file irq\_\-lock.h.

Referenced by adc\_\-register\_\-event(), AX12\_\-send(), bd\_\-init(), bd\_\-reset(), bd\_\-set\_\-current\_\-thresholds(), bd\_\-set\_\-speed\_\-threshold(), biquad\_\-flush\_\-memories(), biquad\_\-init(), biquad\_\-set\_\-deniminator\_\-coeffs(), biquad\_\-set\_\-divisor\_\-shifts(), biquad\_\-set\_\-numerator\_\-coeffs(), biquad\_\-set\_\-series\_\-son(), brushless\_\-0\_\-get\_\-mesures(), brushless\_\-0\_\-register\_\-periodic\_\-event(), brushless\_\-0\_\-set\_\-parameters(), brushless\_\-0\_\-set\_\-position(), brushless\_\-1\_\-get\_\-mesures(), brushless\_\-1\_\-register\_\-periodic\_\-event(), brushless\_\-1\_\-set\_\-parameters(), brushless\_\-1\_\-set\_\-position(), brushless\_\-speed\_\-update\_\-manage(), cs\_\-get\_\-consign(), cs\_\-get\_\-error(), cs\_\-get\_\-filtered\_\-consign(), cs\_\-get\_\-filtered\_\-feedback(), cs\_\-get\_\-out(), cs\_\-init(), cs\_\-set\_\-consign(), cs\_\-set\_\-consign\_\-filter(), cs\_\-set\_\-correct\_\-filter(), cs\_\-set\_\-feedback\_\-filter(), cs\_\-set\_\-process\_\-in(), cs\_\-set\_\-process\_\-out(), encoders\_\-microb\_\-get\_\-value(), encoders\_\-microb\_\-init(), encoders\_\-microb\_\-manage(), encoders\_\-microb\_\-set\_\-value(), encoders\_\-spi\_\-get\_\-value(), encoders\_\-spi\_\-manage(), encoders\_\-spi\_\-set\_\-value(), error\_\-init(), error\_\-register\_\-debug(), error\_\-register\_\-emerg(), error\_\-register\_\-error(), error\_\-register\_\-notice(), error\_\-register\_\-warning(), i2c\_\-flush(), i2c\_\-get\_\-recv\_\-buffer(), i2c\_\-init(), i2c\_\-recv(), i2c\_\-register\_\-recv\_\-byte\_\-event(), i2c\_\-register\_\-recv\_\-event(), i2c\_\-register\_\-send\_\-event(), i2c\_\-reset(), i2c\_\-send(), i2c\_\-set\_\-recv\_\-size(), initial\_\-8\_\-bit\_\-write(), mf2\_\-client\_\-init(), mf2\_\-client\_\-register\_\-rx\_\-event(), mf2\_\-client\_\-register\_\-tx\_\-event(), mf2\_\-client\_\-send(), mf2\_\-server\_\-register\_\-rx\_\-event(), mf2\_\-server\_\-register\_\-tx\_\-event(), mf2\_\-server\_\-send(), multiservo\_\-add(), multiservo\_\-del(), multiservo\_\-init(), multiservo\_\-set(), pid\_\-get\_\-value\_\-D(), pid\_\-get\_\-value\_\-I(), pid\_\-get\_\-value\_\-in(), pid\_\-get\_\-value\_\-out(), pid\_\-init(), pid\_\-reset(), pid\_\-set\_\-derivate\_\-filter(), pid\_\-set\_\-gains(), pid\_\-set\_\-maximums(), pid\_\-set\_\-out\_\-shift(), position\_\-init(), position\_\-manage(), position\_\-set(), position\_\-set\_\-physical\_\-params(), position\_\-set\_\-related\_\-robot\_\-system(), position\_\-use\_\-ext(), quadramp\_\-derivate\_\-init(), quadramp\_\-derivate\_\-set\_\-1st\_\-order\_\-vars(), quadramp\_\-derivate\_\-set\_\-2nd\_\-order\_\-vars(), quadramp\_\-derivate\_\-set\_\-divisor(), quadramp\_\-derivate\_\-set\_\-gain\_\-anticipation(), quadramp\_\-derivate\_\-set\_\-goal\_\-window(), quadramp\_\-init(), quadramp\_\-set\_\-1st\_\-order\_\-vars(), quadramp\_\-set\_\-2nd\_\-order\_\-vars(), ramp\_\-init(), ramp\_\-set\_\-vars(), rs\_\-get\_\-angle(), rs\_\-get\_\-distance(), rs\_\-get\_\-ext\_\-angle(), rs\_\-get\_\-ext\_\-distance(), rs\_\-get\_\-ext\_\-left(), rs\_\-get\_\-ext\_\-right(), rs\_\-init(), rs\_\-set\_\-angle(), rs\_\-set\_\-distance(), rs\_\-set\_\-flags(), rs\_\-set\_\-left\_\-ext\_\-encoder(), rs\_\-set\_\-left\_\-pwm(), rs\_\-set\_\-right\_\-ext\_\-encoder(), rs\_\-set\_\-right\_\-pwm(), rs\_\-update(), scheduler\_\-add\_\-event(), scheduler\_\-del\_\-event(), SIGNAL(), time\_\-get\_\-s(), time\_\-get\_\-time(), time\_\-get\_\-us(), time\_\-get\_\-us2(), time\_\-increment(), time\_\-reset(), time\_\-set(), timer\_\-init(), trajectory\_\-init(), trajectory\_\-set\_\-cs(), trajectory\_\-set\_\-robot\_\-params(), trajectory\_\-set\_\-speed(), trajectory\_\-set\_\-windows(), uart\_\-9bits\_\-recv\_\-nowait(), uart\_\-getconf(), uart\_\-recv\_\-nowait(), uart\_\-register\_\-rx\_\-event(), uart\_\-register\_\-tx\_\-event(), uart\_\-send\_\-9bits\_\-nowait(), uart\_\-send\_\-nowait(), and uart\_\-setconf().\index{irq\_\-lock.h@{irq\_\-lock.h}!IRQ\_\-UNLOCK@{IRQ\_\-UNLOCK}}
\index{IRQ\_\-UNLOCK@{IRQ\_\-UNLOCK}!irq_lock.h@{irq\_\-lock.h}}
\subsubsection[IRQ\_\-UNLOCK]{\setlength{\rightskip}{0pt plus 5cm}\#define IRQ\_\-UNLOCK(flags)}\label{irq__lock_8h_b7f2a27e5c0e94ff8b5bdc011e062943}


\textbf{Value:}

\begin{Code}\begin{verbatim}do {       \
  SREG = flags;                      \
  } while ( 0 )
\end{verbatim}
\end{Code}


Definition at line 59 of file irq\_\-lock.h.

Referenced by adc\_\-register\_\-event(), AX12\_\-send(), bd\_\-init(), bd\_\-reset(), bd\_\-set\_\-current\_\-thresholds(), bd\_\-set\_\-speed\_\-threshold(), biquad\_\-flush\_\-memories(), biquad\_\-init(), biquad\_\-set\_\-deniminator\_\-coeffs(), biquad\_\-set\_\-divisor\_\-shifts(), biquad\_\-set\_\-numerator\_\-coeffs(), biquad\_\-set\_\-series\_\-son(), brushless\_\-0\_\-get\_\-mesures(), brushless\_\-0\_\-register\_\-periodic\_\-event(), brushless\_\-0\_\-set\_\-parameters(), brushless\_\-0\_\-set\_\-position(), brushless\_\-1\_\-get\_\-mesures(), brushless\_\-1\_\-register\_\-periodic\_\-event(), brushless\_\-1\_\-set\_\-parameters(), brushless\_\-1\_\-set\_\-position(), brushless\_\-speed\_\-update\_\-manage(), cs\_\-get\_\-consign(), cs\_\-get\_\-error(), cs\_\-get\_\-filtered\_\-consign(), cs\_\-get\_\-filtered\_\-feedback(), cs\_\-get\_\-out(), cs\_\-init(), cs\_\-set\_\-consign(), cs\_\-set\_\-consign\_\-filter(), cs\_\-set\_\-correct\_\-filter(), cs\_\-set\_\-feedback\_\-filter(), cs\_\-set\_\-process\_\-in(), cs\_\-set\_\-process\_\-out(), encoders\_\-microb\_\-get\_\-value(), encoders\_\-microb\_\-init(), encoders\_\-microb\_\-manage(), encoders\_\-microb\_\-set\_\-value(), encoders\_\-spi\_\-get\_\-value(), encoders\_\-spi\_\-manage(), encoders\_\-spi\_\-set\_\-value(), error\_\-init(), error\_\-register\_\-debug(), error\_\-register\_\-emerg(), error\_\-register\_\-error(), error\_\-register\_\-notice(), error\_\-register\_\-warning(), i2c\_\-flush(), i2c\_\-get\_\-recv\_\-buffer(), i2c\_\-init(), i2c\_\-recv(), i2c\_\-register\_\-recv\_\-byte\_\-event(), i2c\_\-register\_\-recv\_\-event(), i2c\_\-register\_\-send\_\-event(), i2c\_\-reset(), i2c\_\-send(), i2c\_\-set\_\-recv\_\-size(), initial\_\-8\_\-bit\_\-write(), mf2\_\-client\_\-init(), mf2\_\-client\_\-register\_\-rx\_\-event(), mf2\_\-client\_\-register\_\-tx\_\-event(), mf2\_\-client\_\-send(), mf2\_\-server\_\-register\_\-rx\_\-event(), mf2\_\-server\_\-register\_\-tx\_\-event(), mf2\_\-server\_\-send(), multiservo\_\-add(), multiservo\_\-del(), multiservo\_\-init(), multiservo\_\-set(), pid\_\-get\_\-value\_\-D(), pid\_\-get\_\-value\_\-I(), pid\_\-get\_\-value\_\-in(), pid\_\-get\_\-value\_\-out(), pid\_\-init(), pid\_\-reset(), pid\_\-set\_\-derivate\_\-filter(), pid\_\-set\_\-gains(), pid\_\-set\_\-maximums(), pid\_\-set\_\-out\_\-shift(), position\_\-init(), position\_\-manage(), position\_\-set(), position\_\-set\_\-physical\_\-params(), position\_\-set\_\-related\_\-robot\_\-system(), position\_\-use\_\-ext(), quadramp\_\-derivate\_\-init(), quadramp\_\-derivate\_\-set\_\-1st\_\-order\_\-vars(), quadramp\_\-derivate\_\-set\_\-2nd\_\-order\_\-vars(), quadramp\_\-derivate\_\-set\_\-divisor(), quadramp\_\-derivate\_\-set\_\-gain\_\-anticipation(), quadramp\_\-derivate\_\-set\_\-goal\_\-window(), quadramp\_\-init(), quadramp\_\-set\_\-1st\_\-order\_\-vars(), quadramp\_\-set\_\-2nd\_\-order\_\-vars(), ramp\_\-init(), ramp\_\-set\_\-vars(), rs\_\-get\_\-angle(), rs\_\-get\_\-distance(), rs\_\-get\_\-ext\_\-angle(), rs\_\-get\_\-ext\_\-distance(), rs\_\-get\_\-ext\_\-left(), rs\_\-get\_\-ext\_\-right(), rs\_\-init(), rs\_\-set\_\-angle(), rs\_\-set\_\-distance(), rs\_\-set\_\-flags(), rs\_\-set\_\-left\_\-ext\_\-encoder(), rs\_\-set\_\-left\_\-pwm(), rs\_\-set\_\-right\_\-ext\_\-encoder(), rs\_\-set\_\-right\_\-pwm(), rs\_\-update(), scheduler\_\-add\_\-event(), scheduler\_\-del\_\-event(), SIGNAL(), time\_\-get\_\-s(), time\_\-get\_\-time(), time\_\-get\_\-us(), time\_\-get\_\-us2(), time\_\-increment(), time\_\-reset(), time\_\-set(), timer\_\-init(), trajectory\_\-init(), trajectory\_\-set\_\-cs(), trajectory\_\-set\_\-robot\_\-params(), trajectory\_\-set\_\-speed(), trajectory\_\-set\_\-windows(), uart\_\-9bits\_\-recv\_\-nowait(), uart\_\-getconf(), uart\_\-recv\_\-nowait(), uart\_\-register\_\-rx\_\-event(), uart\_\-register\_\-tx\_\-event(), uart\_\-send\_\-9bits\_\-nowait(), uart\_\-send\_\-nowait(), and uart\_\-setconf().