From 744735dbdf7f60d79eef7719acb94ba0afbbe868 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 12 Oct 2010 23:26:49 +0000 Subject: [PATCH] misc git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3006 42af7a65-404d-4744-a932-0658087f49c3 --- arch/avr/src/at91uc3/at91uc3_config.h | 35 +++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/avr/src/at91uc3/at91uc3_config.h b/arch/avr/src/at91uc3/at91uc3_config.h index feac188b85..dbe6403ec3 100755 --- a/arch/avr/src/at91uc3/at91uc3_config.h +++ b/arch/avr/src/at91uc3/at91uc3_config.h @@ -65,17 +65,52 @@ # undef CONFIG_AVR32_USART2 #endif +/* Not all USART features are supported on all chips or all USARTS */ + +#ifdef CONFIG_ARCH_CHIP_AT91UC3B +# undef CONFIG_AVR32_USART0_RS485 +# undef CONFIG_AVR32_USART0_MAN +# undef CONFIG_AVR32_USART0_MODEM +# undef CONFIG_AVR32_USART0_IRDA +# undef CONFIG_AVR32_USART0_ISO786 +# undef CONFIG_AVR32_USART1_RS485 +# undef CONFIG_AVR32_USART2_RS485 +# undef CONFIG_AVR32_USART2_MAN +# undef CONFIG_AVR32_USART2_MODEM +# undef CONFIG_AVR32_USART2_IRDA +# undef CONFIG_AVR32_USART2_ISO786 +#endif + +/* Disable configurations if USART not selected in configuration file */ + #ifndef CONFIG_AVR32_USART0 # undef CONFIG_AVR32_USART0_RS232 # undef CONFIG_AVR32_USART0_SPI +# undef CONFIG_AVR32_USART0_RS485 +# undef CONFIG_AVR32_USART0_MAN +# undef CONFIG_AVR32_USART0_MODEM +# undef CONFIG_AVR32_USART0_IRDA +# undef CONFIG_AVR32_USART0_ISO786 #endif + #ifndef CONFIG_AVR32_USART1 # undef CONFIG_AVR32_USART1_RS232 # undef CONFIG_AVR32_USART1_SPI +# undef CONFIG_AVR32_USART1_RS485 +# undef CONFIG_AVR32_USART1_MAN +# undef CONFIG_AVR32_USART1_MODEM +# undef CONFIG_AVR32_USART1_IRDA +# undef CONFIG_AVR32_USART1_ISO786 #endif + #ifndef CONFIG_AVR32_USART2 # undef CONFIG_AVR32_USART2_RS232 # undef CONFIG_AVR32_USART2_SPI +# undef CONFIG_AVR32_USART2_RS485 +# undef CONFIG_AVR32_USART2_MAN +# undef CONFIG_AVR32_USART2_MODEM +# undef CONFIG_AVR32_USART2_IRDA +# undef CONFIG_AVR32_USART2_ISO786 #endif /* Is any UART configured? */