Xmega Application Note


avr_compiler.h File Reference

AVR compiler. More...

#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>

Include dependency graph for avr_compiler.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define AVR_ENTER_CRITICAL_REGION()
 This macro will protect the following code from interrupts.
#define AVR_LEAVE_CRITICAL_REGION()   SREG = saved_sreg;
 This macro must always be used in conjunction with AVR_ENTER_CRITICAL_REGION so the interrupts are enabled again.
#define F_CPU   32000000UL
 Define default CPU frequency, if this is not already defined.


Detailed Description

AVR compiler.

This file contains the avr includes for: AN1320: True 400kHz operation for TWI slave

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file avr_compiler.h.


Define Documentation

 
#define AVR_ENTER_CRITICAL_REGION (  ) 

Value:

uint8_t volatile saved_sreg = SREG; \
                                     cli();
This macro will protect the following code from interrupts.

Definition at line 60 of file avr_compiler.h.

 
#define AVR_LEAVE_CRITICAL_REGION (  )     SREG = saved_sreg;

This macro must always be used in conjunction with AVR_ENTER_CRITICAL_REGION so the interrupts are enabled again.

Definition at line 66 of file avr_compiler.h.

#define F_CPU   32000000UL

Define default CPU frequency, if this is not already defined.

Definition at line 51 of file avr_compiler.h.

@DOC_TITLE@
Generated on Tue Jan 19 18:41:58 2010 for AVR1320: True 400kHz operation for TWI slave by doxygen 1.5.8