EXIT_CRITICAL

#define EXIT_CRITICAL( ) __asm__ __volatile__ ( \ "pop __tmp_reg__" "\n\t" \ "out __SREG__, __tmp_reg__" "\n\t" \ ::: "memory" \ )

Exit a critical region.

Restores the contents of the status register, including the Global Interupt Enable bit, as it was when entering the critical region. This macro takes a parameter P that is unused for the GCC compiler, but necessary for code compatibility with the IAR compiler. The IAR compiler uses this parameter as the name of a variable that holds the SREG value. The parameter must be identical to the parameter used in the corresponding ENTER_CRITICAL.

Parameters

UNUSED(GCC)/P(IAR)

Name of variable storing SREG