Rev 1307 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1307 | Rev 1308 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | #ifndef _MEGA16_H_ |
|
- | 2 | #define _MEGA16_H_ |
|
- | 3 | ||
- | 4 | /* Part-Code ISP */ |
|
- | 5 | #define DEVTYPE_ISP 0x74 |
|
- | 6 | /* Part-Code Boot */ |
|
- | 7 | #define DEVTYPE_BOOT 0x75 |
|
- | 8 | ||
- | 9 | #define SIG_BYTE1 0x1E |
|
- | 10 | #define SIG_BYTE2 0x94 |
|
- | 11 | #define SIG_BYTE3 0x03 |
|
- | 12 | ||
- | 13 | #define UART_BAUD_HIGH UBRRH |
|
- | 14 | #define UART_BAUD_LOW UBRRL |
|
- | 15 | #define UART_STATUS UCSRA |
|
- | 16 | #define UART_TXREADY UDRE |
|
- | 17 | #define UART_RXREADY RXC |
|
- | 18 | #define UART_DOUBLE U2X |
|
- | 19 | #define UART_CTRL UCSRB |
|
- | 20 | #define UART_CTRL_DATA ((1<<TXEN) | (1<<RXEN)) |
|
- | 21 | #define UART_CTRL2 UCSRC |
|
- | 22 | #define UART_CTRL2_DATA ((1<<URSEL) | (1<<UCSZ1) | (1<<UCSZ0)) |
|
- | 23 | #define UART_DATA UDR |
|
- | 24 | ||
- | 25 | #endif // #ifndef _MEGA16_H_ |