| Xmega Application Note | |||||
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>


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. | |
This file contains the avr includes for: AN1320: True 400kHz operation for TWI slave
Definition in file avr_compiler.h.
| #define AVR_ENTER_CRITICAL_REGION | ( | ) |
Value:
uint8_t volatile saved_sreg = SREG; \
cli();
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.
Generated on Tue Jan 19 18:41:58 2010 for AVR1320: True 400kHz operation for TWI slave by 1.5.8
|