From 2d457e83005b3ea84c2b760d0c725cb7e50e808a Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 10 Apr 2009 01:16:26 +0200 Subject: * digital/avr/modules/uart: - added support for AT90USB162. --- digital/avr/modules/uart/test/Makefile | 2 +- digital/avr/modules/uart/test/avrconfig_polling.h | 6 +++++- digital/avr/modules/uart/test/avrconfig_ring.h | 6 +++++- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'digital/avr/modules/uart/test') diff --git a/digital/avr/modules/uart/test/Makefile b/digital/avr/modules/uart/test/Makefile index 4f394f2a..3ad6bf50 100644 --- a/digital/avr/modules/uart/test/Makefile +++ b/digital/avr/modules/uart/test/Makefile @@ -11,7 +11,7 @@ AVR_MCU = atmega8 OPTIMIZE = -O2 # Test compilations. -TEST_MCU = atmega8 atmega8535 atmega128 +TEST_MCU = atmega8 atmega8535 atmega16 atmega32 atmega64 atmega128 at90usb162 TEST_CONFIGFILES = avrconfig_ring.h avrconfig_polling.h avrconfig_twoports.h avrconfig_twoports_TEST_MCU = atmega128 diff --git a/digital/avr/modules/uart/test/avrconfig_polling.h b/digital/avr/modules/uart/test/avrconfig_polling.h index 99b45147..66b77ce7 100644 --- a/digital/avr/modules/uart/test/avrconfig_polling.h +++ b/digital/avr/modules/uart/test/avrconfig_polling.h @@ -32,7 +32,11 @@ /* uart - UART module. */ /** Select hardware uart for primary uart: 0, 1 or -1 to disable. */ -#define AC_UART0_PORT 0 +#ifdef __AVR_AT90USB162__ +# define AC_UART0_PORT 1 +#else +# define AC_UART0_PORT 0 +#endif /** Baudrate: 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 76800, * 115200, 230400, 250000, 500000, 1000000. */ #define AC_UART0_BAUDRATE 9600 diff --git a/digital/avr/modules/uart/test/avrconfig_ring.h b/digital/avr/modules/uart/test/avrconfig_ring.h index f35f9048..415fbb9f 100644 --- a/digital/avr/modules/uart/test/avrconfig_ring.h +++ b/digital/avr/modules/uart/test/avrconfig_ring.h @@ -32,7 +32,11 @@ /* uart - UART module. */ /** Select hardware uart for primary uart: 0, 1 or -1 to disable. */ -#define AC_UART0_PORT 0 +#ifdef __AVR_AT90USB162__ +# define AC_UART0_PORT 1 +#else +# define AC_UART0_PORT 0 +#endif /** Baudrate: 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600, 76800, * 115200, 230400, 250000, 500000, 1000000. */ #define AC_UART0_BAUDRATE 115200 -- cgit v1.2.3