]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - test_src/uart.c
extended HFAL
[avr-crypto-lib.git] / test_src / uart.c
index 68ac4a646cfc3c24720209833ece132e5fc93e20..06b3cec0db0e2f2a7581657e10a4a93bd999a35c 100644 (file)
@@ -1,6 +1,6 @@
 /* uart.c */
 /*
-    This file is part of the This file is part of the AVR-Crypto-Lib.
+    This file is part of the AVR-Crypto-Lib.
     Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
 
     This program is free software: you can redistribute it and/or modify
 #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