Go to the documentation of this file.
20 #include <avr/interrupt.h>
22 #include "dev_config.h"
33 #define BAUDRATE 38400
41 #ifdef __AVR_ATtiny13__
42 #define F_CPU_ 9600000
47 #if defined(__AVR_ATtiny25__) || defined(__AVR_ATtiny45__) || defined(__AVR_ATtiny85__)
48 #define F_CPU_ 8000000
55 #define ADPIN_vect PCINT0_vect
61 #ifdef __AVR_ATmega8__
62 #define F_CPU_ 8000000
69 #define DBGPINPORT PORTD
71 #define DBGPINDDR DDRD
83 #ifdef __AVR_ATtiny84__
84 #define F_CPU_ 8000000
89 #define ADPIN_vect PCINT0_vect
93 #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega88__) || defined (__AVR_ATmega328__)
94 #define F_CPU_ 16000000
95 #define ONEWIRE_USE_T2
103 #define DBGPINPORT PORTD
104 #define DBGPIN PORTD4
105 #define DBGPINDDR DDRD
106 #define DBGPININ PIND
112 #define ADPIN_vect PCINT1_vect
119 #error Unknown AVR chip!
126 #ifndef ONEWIRE_USE_T2
127 # define ONEWIRE_USE_T0
130 #if defined(HAVE_UART_SYNC) && defined(HAVE_UART_IRQ)
131 #error Poll. Or IRQ. Not both.
134 #if defined(IS_BOOTLOADER) && defined(USE_BOOTLOADER)
135 #error "Either you're a the loader or you're the loaded."
138 #if defined(IS_BOOTLOADER) && !defined(USE_EEPROM)
139 #error "You need EEPROM support for bootloading"
142 #define likely(x) __builtin_expect(!!(x), 1)
143 #define unlikely(x) __builtin_expect(!!(x), 0)