AVR Bootloader (avrboot cleanup)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
575B

  1. #ifndef _MEGA8_H_
  2. #define _MEGA8_H_
  3. /* Part-Code ISP */
  4. #define DEVTYPE_ISP 0x76
  5. /* Part-Code BOOT */
  6. #define DEVTYPE_BOOT 0x77
  7. #define SIG_BYTE1 0x1E
  8. #define SIG_BYTE2 0x93
  9. #define SIG_BYTE3 0x07
  10. #define UART_BAUD_HIGH UBRRH
  11. #define UART_BAUD_LOW UBRRL
  12. #define UART_STATUS UCSRA
  13. #define UART_TXREADY UDRE
  14. #define UART_RXREADY RXC
  15. #define UART_DOUBLE U2X
  16. #define UART_CTRL UCSRB
  17. #define UART_CTRL_DATA ((1<<TXEN) | (1<<RXEN))
  18. #define UART_CTRL2 UCSRC
  19. #define UART_CTRL2_DATA ((1<<URSEL) | (1<<UCSZ1) | (1<<UCSZ0))
  20. #define UART_DATA UDR
  21. #endif // #ifndef _MEGA8_H_