Debian Codegraph @

bootloaders/optiboot/pin_defs.h

raw
1 #if defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328__) || defined(__AVR_ATmega88) || defined(__AVR_ATmega8__) || defined(__AVR_ATmega88__)
2 /* Onboard LED is connected to pin PB5 in Arduino NG, Diecimila, and Duemilanove */
3 #define LED_DDR DDRB
4 #define LED_PORT PORTB
5 #define LED_PIN PINB
6 #define LED PINB5
7
8 /* Ports for soft UART */
9 #ifdef SOFT_UART
10 #define UART_PORT PORTD
11 #define UART_PIN PIND
12 #define UART_DDR DDRD
13 #define UART_TX_BIT 1
14 #define UART_RX_BIT 0
15 #endif
16 #endif
17
18 #if defined(__AVR_ATmega8__)
19 //Name conversion R.Wiersma
20 #define UCSR0A UCSRA
21 #define UDR0 UDR
22 #define UDRE0 UDRE
23 #define RXC0 RXC
24 #define FE0 FE
25 #define TIFR1 TIFR
26 #define WDTCSR WDTCR
27 #endif
28
29 /* Luminet support */
30 #if defined(__AVR_ATtiny84__)
31 /* Red LED is connected to pin PA4 */
32 #define LED_DDR DDRA
33 #define LED_PORT PORTA
34 #define LED_PIN PINA
35 #define LED PINA4
36 /* Ports for soft UART - left port only for now. TX/RX on PA2/PA3 */
37 #ifdef SOFT_UART
38 #define UART_PORT PORTA
39 #define UART_PIN PINA
40 #define UART_DDR DDRA
41 #define UART_TX_BIT 2
42 #define UART_RX_BIT 3
43 #endif
44 #endif
45
46 /* Sanguino support */
47 #if defined(__AVR_ATmega644P__)
48 /* Onboard LED is connected to pin PB0 on Sanguino */
49 #define LED_DDR DDRB
50 #define LED_PORT PORTB
51 #define LED_PIN PINB
52 #define LED PINB0
53
54 /* Ports for soft UART */
55 #ifdef SOFT_UART
56 #define UART_PORT PORTD
57 #define UART_PIN PIND
58 #define UART_DDR DDRD
59 #define UART_TX_BIT 1
60 #define UART_RX_BIT 0
61 #endif
62 #endif
63
64 /* Mega support */
65 #if defined(__AVR_ATmega1280__)
66 /* Onboard LED is connected to pin PB7 on Arduino Mega */
67 #define LED_DDR DDRB
68 #define LED_PORT PORTB
69 #define LED_PIN PINB
70 #define LED PINB7
71
72 /* Ports for soft UART */
73 #ifdef SOFT_UART
74 #define UART_PORT PORTE
75 #define UART_PIN PINE
76 #define UART_DDR DDRE
77 #define UART_TX_BIT 1
78 #define UART_RX_BIT 0
79 #endif
80 #endif