Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1026 | - | 1 | #ifndef _MEGA169_H_ |
2 | #define _MEGA169_H_ |
||
3 | |||
4 | #define DEVTYPE_ISP 0x78 |
||
5 | #define DEVTYPE_BOOT 0x79 |
||
6 | |||
7 | #define SIG_BYTE3 0x1E |
||
8 | #define SIG_BYTE2 0x94 |
||
9 | #define SIG_BYTE1 0x05 |
||
10 | |||
11 | #define UART_BAUD_HIGH UBRRH |
||
12 | #define UART_BAUD_LOW UBRRL |
||
13 | #define UART_STATUS UCSRA |
||
14 | #define UART_TXREADY UDRE |
||
15 | #define UART_RXREADY RXC |
||
16 | #define UART_DOUBLE U2X |
||
17 | #define UART_CTRL UCSRB |
||
18 | #define UART_CTRL_DATA ((1<<TXEN) | (1<<RXEN)) |
||
19 | #define UART_CTRL2 UCSRC |
||
20 | #define UART_CTRL2_DATA ((1<<UCSZ1) | (1<<UCSZ0)) |
||
21 | #define UART_DATA UDR |
||
22 | |||
23 | #endif // #ifndef _MEGA169_H_ |