Skip to content

Commit

Permalink
Add defines for ATtiny441 UART0
Browse files Browse the repository at this point in the history
  • Loading branch information
Miceuz committed May 7, 2017
1 parent 9cb7465 commit b651fbd
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions yaMBSiavr.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,28 @@ License: GNU General Public License
*/
#define Baud 64 //38400@20e6Hz

#elif defined(__AVR_ATtiny441__)
#define UART_TRANSMIT_COMPLETE_INTERRUPT USART0_TX_vect
#define UART_RECEIVE_INTERRUPT USART0_RX_vect
#define UART_TRANSMIT_INTERRUPT USART0_UDRE_vect
#define UART_STATUS UCSR0A
#define UART_CONTROL UCSR0B
#define UART_DATA UDR0
#define UART_UDRIE UDRIE0
#define UCSRC UCSR0C
#define RXCIE RXCIE0
#define TXCIE TXCIE0
#define RXEN RXEN0
#define TXEN TXEN0
#define UCSZ0 UCSZ00
#define U2X U2X0
#define UBRRH UBRR0H
#define UBRRL UBRR0L
/*
* Change this value if you are using a different frequency and/or
* different baudrate.
*/
#define Baud 64 //38400@20e6Hz

#elif defined(__AVR_ATmega8__)|| defined(__AVR_ATmega16__) || defined(__AVR_ATmega32__) || defined(__AVR_ATmega323__)
#define UART_TRANSMIT_COMPLETE_INTERRUPT USART_TXC_vect
Expand Down

0 comments on commit b651fbd

Please sign in to comment.