X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=test_src%2Fuart.c;h=06b3cec0db0e2f2a7581657e10a4a93bd999a35c;hb=5fe96fa58fee8907778ba3388b65d779a1a47c97;hp=82542112260d897bc5b408bc83f57c62da788093;hpb=d3db763eeb456ce00849ecf658782f95b9f5634c;p=avr-crypto-lib.git diff --git a/test_src/uart.c b/test_src/uart.c index 8254211..06b3cec 100644 --- a/test_src/uart.c +++ b/test_src/uart.c @@ -58,6 +58,27 @@ #define RXC RXC0 #endif +#ifdef AT90USB162 +#define UCSRB UCSR1B +#define UCSRC UCSR1C +#define UDR UDR1 +#define UBRRH UBRR1H +#define UBRRL UBRR1L +#define URSEL UMSEL10 +#define USART_UDRE_vect USART1_UDRE_vect +#define USART_RXC_vect USART1_RX_vect +#define UDRIE UDRIE1 +#define TXEN TXEN1 +#define UMSEL UMSEL1 +#define RXEN RXEN1 +#define RXCIE RXCIE1 +#define UCSZ0 UCSZ10 +#define UCSRA UCSR1A +#define UDRE UDRE1 +#define RXC RXC1 +#endif + + #ifdef UART_XON_XOFF #ifdef UART_INTERRUPT