123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega88) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega88__)
-
- #define LED_DDR DDRB
- #define LED_PORT PORTB
- #define LED_PIN PINB
- #define LED PINB5
-
-
- #ifdef SOFT_UART
- #define UART_PORT PORTD
- #define UART_PIN PIND
- #define UART_DDR DDRD
- #define UART_TX_BIT 1
- #define UART_RX_BIT 0
- #endif
- #endif
-
- #if defined(__AVR_ATmega8__)
-
- #define UCSR0A UCSRA
- #define UDR0 UDR
- #define UDRE0 UDRE
- #define RXC0 RXC
- #define FE0 FE
- #define TIFR1 TIFR
- #define WDTCSR WDTCR
- #endif
-
-
- #if defined(__AVR_ATtiny84__)
-
- #define LED_DDR DDRA
- #define LED_PORT PORTA
- #define LED_PIN PINA
- #define LED PINA4
-
- #ifdef SOFT_UART
- #define UART_PORT PORTA
- #define UART_PIN PINA
- #define UART_DDR DDRA
- #define UART_TX_BIT 2
- #define UART_RX_BIT 3
- #endif
- #endif
-
-
- #if defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__)
-
- #define LED_DDR DDRB
- #define LED_PORT PORTB
- #define LED_PIN PINB
- #define LED PINB0
-
-
- #ifdef SOFT_UART
- #define UART_PORT PORTD
- #define UART_PIN PIND
- #define UART_DDR DDRD
- #define UART_TX_BIT 1
- #define UART_RX_BIT 0
- #endif
- #endif
-
-
- #if defined(__AVR_ATmega1280__)
-
- #define LED_DDR DDRB
- #define LED_PORT PORTB
- #define LED_PIN PINB
- #define LED PINB7
-
-
- #ifdef SOFT_UART
- #define UART_PORT PORTE
- #define UART_PIN PINE
- #define UART_DDR DDRE
- #define UART_TX_BIT 1
- #define UART_RX_BIT 0
- #endif
- #endif
|