mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Change how UARTs are enabled for i.MX, M16C, and ez80 to make them compatible with other chips
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5374 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -57,7 +57,7 @@
|
||||
* To be safe, we will error out on either selection:
|
||||
*/
|
||||
|
||||
#if !defined(CONFIG_UART1_DISABLE) || !defined(CONFIG_UART2_DISABLE)
|
||||
#if defined(CONFIG_M16C_UART1) || defined(CONFIG_M16C_UART2)
|
||||
# error "UART1/2 should not be used on SKP16C26"
|
||||
#endif
|
||||
|
||||
|
||||
@@ -57,9 +57,9 @@ CONFIG_ARCH_LCD=y
|
||||
#
|
||||
# M16C specific device driver settings
|
||||
#
|
||||
CONFIG_UART0_DISABLE=y
|
||||
CONFIG_UART1_DISABLE=y
|
||||
CONFIG_UART2_DISABLE=y
|
||||
CONFIG_M16C_UART0=n
|
||||
CONFIG_M16C_UART1=n
|
||||
CONFIG_M16C_UART2=n
|
||||
CONFIG_UART0_SERIAL_CONSOLE=n
|
||||
CONFIG_UART1_SERIAL_CONSOLE=n
|
||||
CONFIG_UART2_SERIAL_CONSOLE=n
|
||||
|
||||
@@ -46,11 +46,11 @@
|
||||
|
||||
/* Only use the LCD as a console if there are is no serial console */
|
||||
|
||||
#if defined(CONFIG_UART0_SERIAL_CONSOLE) && !defined(CONFIG_UART0_DISABLE)
|
||||
#if defined(CONFIG_UART0_SERIAL_CONSOLE) && defined(CONFIG_M16C_UART0)
|
||||
# define HAVE_SERIALCONSOLE 1
|
||||
#elif defined(CONFIG_UART1_SERIAL_CONSOLE) && !defined(CONFIG_UART1_DISABLE)
|
||||
#elif defined(CONFIG_UART1_SERIAL_CONSOLE) && defined(CONFIG_M16C_UART1)
|
||||
# define HAVE_SERIALCONSOLE 1
|
||||
#elif defined(CONFIG_UART2_SERIAL_CONSOLE) && !defined(CONFIG_UART2_DISABLE)
|
||||
#elif defined(CONFIG_UART2_SERIAL_CONSOLE) && defined(CONFIG_M16C_UART2)
|
||||
# define HAVE_SERIALCONSOLE 1
|
||||
#else
|
||||
# undef HAVE_SERIALCONSOLE
|
||||
|
||||
Reference in New Issue
Block a user