15 #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega168P__) || defined(__AVR_ATmega328__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega88) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega88__)
26 #define UART_PORT PORTD
40 # define UART_SRA UCSR0A
41 # define UART_SRB UCSR0B
42 # define UART_SRC UCSR0C
43 # define UART_SRL UBRR0L
44 # define UART_UDR UDR0
47 #error UART == 1, but no UART1 on device
49 # define UART_SRA UCSR1A
50 # define UART_SRB UCSR1B
51 # define UART_SRC UCSR1C
52 # define UART_SRL UBRR1L
53 # define UART_UDR UDR1
56 #error UART == 2, but no UART2 on device
58 # define UART_SRA UCSR2A
59 # define UART_SRB UCSR2B
60 # define UART_SRC UCSR2C
61 # define UART_SRL UBRR2L
62 # define UART_UDR UDR2
65 #error UART == 3, but no UART3 on device
67 # define UART_SRA UCSR3A
68 # define UART_SRB UCSR3B
69 # define UART_SRC UCSR3C
70 # define UART_SRL UBRR3L
71 # define UART_UDR UDR3
74 #if defined(__AVR_ATmega8__) || defined (__AVR_ATmega32__) || defined (__AVR_ATmega16__)
84 #if defined (__AVR_ATmega32__) || defined (__AVR_ATmega16__)
90 #if defined(__AVR_ATtiny84__)
99 #define UART_PORT PORTA
100 #define UART_PIN PINA
101 #define UART_DDR DDRA
102 #define UART_TX_BIT 2
103 #define UART_RX_BIT 3
109 #if defined(__AVR_ATmega644P__) || defined(__AVR_ATmega1284P__) || defined(__AVR_ATmega32__) || defined (__AVR_ATmega16__)
118 #define UART_PORT PORTD
119 #define UART_PIN PIND
120 #define UART_DDR DDRD
121 #define UART_TX_BIT 1
122 #define UART_RX_BIT 0
128 #if defined(__AVR_ATmega1280__)
137 #define UART_PORT PORTE
138 #define UART_PIN PINE
139 #define UART_DDR DDRE
140 #define UART_TX_BIT 1
141 #define UART_RX_BIT 0
255 #define LED_PORT PORTB
261 #define LED_PORT PORTB
267 #define LED_PORT PORTB
273 #define LED_PORT PORTB
279 #define LED_PORT PORTB
285 #define LED_PORT PORTB
291 #define LED_PORT PORTB
297 #define LED_PORT PORTB
304 #define LED_PORT PORTC
310 #define LED_PORT PORTC
316 #define LED_PORT PORTC
322 #define LED_PORT PORTC
328 #define LED_PORT PORTC
334 #define LED_PORT PORTC
340 #define LED_PORT PORTC
346 #define LED_PORT PORTC
353 #define LED_PORT PORTD
359 #define LED_PORT PORTD
365 #define LED_PORT PORTD
371 #define LED_PORT PORTD
377 #define LED_PORT PORTD
383 #define LED_PORT PORTD
389 #define LED_PORT PORTD
395 #define LED_PORT PORTD
402 #define LED_PORT PORTE
408 #define LED_PORT PORTE
414 #define LED_PORT PORTE
420 #define LED_PORT PORTE
426 #define LED_PORT PORTE
432 #define LED_PORT PORTE
438 #define LED_PORT PORTE
444 #define LED_PORT PORTE
451 #define LED_PORT PORTF
457 #define LED_PORT PORTF
463 #define LED_PORT PORTF
469 #define LED_PORT PORTF
475 #define LED_PORT PORTF
481 #define LED_PORT PORTF
487 #define LED_PORT PORTF
493 #define LED_PORT PORTF
500 #define LED_PORT PORTG
506 #define LED_PORT PORTG
512 #define LED_PORT PORTG
518 #define LED_PORT PORTG
524 #define LED_PORT PORTG
530 #define LED_PORT PORTG
536 #define LED_PORT PORTG
542 #define LED_PORT PORTG
549 #define LED_PORT PORTH
555 #define LED_PORT PORTH
561 #define LED_PORT PORTH
567 #define LED_PORT PORTH
573 #define LED_PORT PORTH
579 #define LED_PORT PORTH
585 #define LED_PORT PORTH
591 #define LED_PORT PORTH
598 #define LED_PORT PORTJ
604 #define LED_PORT PORTJ
610 #define LED_PORT PORTJ
616 #define LED_PORT PORTJ
622 #define LED_PORT PORTJ
628 #define LED_PORT PORTJ
634 #define LED_PORT PORTJ
640 #define LED_PORT PORTJ
647 #define LED_PORT PORTK
653 #define LED_PORT PORTK
659 #define LED_PORT PORTK
665 #define LED_PORT PORTK
671 #define LED_PORT PORTK
677 #define LED_PORT PORTK
683 #define LED_PORT PORTK
689 #define LED_PORT PORTK
696 #define LED_PORT PORTL
702 #define LED_PORT PORTL
708 #define LED_PORT PORTL
714 #define LED_PORT PORTL
720 #define LED_PORT PORTL
726 #define LED_PORT PORTL
732 #define LED_PORT PORTL
738 #define LED_PORT PORTL
745 #define LED_PORT PORTA
751 #define LED_PORT PORTA
757 #define LED_PORT PORTA
763 #define LED_PORT PORTA
769 #define LED_PORT PORTA
775 #define LED_PORT PORTA
781 #define LED_PORT PORTA
787 #define LED_PORT PORTA
792 #error -------------------------------------------
793 #error Unrecognized LED name. Should be like "B5"
794 #error -------------------------------------------