Skip to content

Commit

Permalink
Fix attiny84 and possible other chips without hardware UART
Browse files Browse the repository at this point in the history
  • Loading branch information
majekw committed Oct 9, 2018
1 parent 5d40a2a commit e866cae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions optiboot/bootloaders/optiboot/pin_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
* Note that mega8/m32 still needs special handling, because ubrr is handled
* differently.
*/
#ifndef SOFT_UART
#if UART == 0
#if defined(UDR0)
# define UART_SRA UCSR0A
Expand Down Expand Up @@ -93,6 +94,7 @@
# define UART_SRL UBRR3L
# define UART_UDR UDR3
#endif
#endif

#if defined(__AVR_ATmega8__) \
|| defined (__AVR_ATmega32__) \
Expand Down

0 comments on commit e866cae

Please sign in to comment.