XMEGA Application Note | |||||
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
Go to the source code of this file.
Defines | |
#define | ENTER_CRITICAL_REGION() |
#define | LEAVE_CRITICAL_REGION() SREG = saved_sreg; |
Definition in file avr_compiler.h.
#define ENTER_CRITICAL_REGION | ( | ) |
Value:
uint8_t volatile saved_sreg = SREG; \
cli();
Definition at line 59 of file avr_compiler.h.
Referenced by CCPWrite(), RTC32_Reset(), SLEEPMGR_Lock(), and SLEEPMGR_Unlock().
#define LEAVE_CRITICAL_REGION | ( | ) | SREG = saved_sreg; |
This macro must always be used in conjunction with ENTER_CRITICAL_REGION so that interrupts are enabled again.
Definition at line 64 of file avr_compiler.h.
Referenced by CCPWrite(), RTC32_Reset(), SLEEPMGR_Lock(), and SLEEPMGR_Unlock().
Generated on Mon Nov 9 13:44:28 2009 for XMEGA power consumption evaluation code by ![]() |