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.

24 lines
521B

  1. #ifndef _MEGA169_H_
  2. #define _MEGA169_H_
  3. #define DEVTYPE_ISP 0x78
  4. #define DEVTYPE_BOOT 0x79
  5. #define SIG_BYTE3 0x1E
  6. #define SIG_BYTE2 0x94
  7. #define SIG_BYTE1 0x05
  8. #define UART_BAUD_HIGH UBRRH
  9. #define UART_BAUD_LOW UBRRL
  10. #define UART_STATUS UCSRA
  11. #define UART_TXREADY UDRE
  12. #define UART_RXREADY RXC
  13. #define UART_DOUBLE U2X
  14. #define UART_CTRL UCSRB
  15. #define UART_CTRL_DATA ((1<<TXEN) | (1<<RXEN))
  16. #define UART_CTRL2 UCSRC
  17. #define UART_CTRL2_DATA ((1<<UCSZ1) | (1<<UCSZ0))
  18. #define UART_DATA UDR
  19. #endif // #ifndef _MEGA169_H_