From 60290695c1721b455edf018dcb6cc0b9cddcc622 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 7 Nov 2008 20:53:46 +0000 Subject: [PATCH] Update for changes to common/up_internal.h git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1161 42af7a65-404d-4744-a932-0658087f49c3 --- configs/xtrs/src/xtr_serial.c | 11 +++-------- configs/z80sim/src/z80_serial.c | 11 +++-------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/configs/xtrs/src/xtr_serial.c b/configs/xtrs/src/xtr_serial.c index decadccec2..9e25d09d16 100644 --- a/configs/xtrs/src/xtr_serial.c +++ b/configs/xtrs/src/xtr_serial.c @@ -58,8 +58,8 @@ #include "os_internal.h" #include "up_internal.h" -#if CONFIG_NFILE_DESCRIPTORS > 0 -#if defined(CONFIG_DEV_CONSOLE) && !defined(CONFIG_DEV_LOWCONSOLE) +#ifdef CONFIG_USE_SERIAL_DRIVER + /**************************************************************************** * Definitions ****************************************************************************/ @@ -376,7 +376,6 @@ static boolean up_txempty(struct uart_dev_s *dev) void up_earlyserialinit(void) { } -#endif /* CONFIG_DEV_CONSOLE && !CONFIG_DEV_LOWCONSOLE */ /**************************************************************************** * Name: up_serialinit @@ -389,14 +388,10 @@ void up_earlyserialinit(void) void up_serialinit(void) { -#if defined(CONFIG_DEV_LOWCONSOLE) - (void)lowconsole_init(); -#elif defined(CONFIG_DEV_CONSOLE) (void)uart_register("/dev/console", &g_uartport); (void)uart_register("/dev/ttyS0", &g_uartport); -#endif } -#endif /* CONFIG_NFILE_DESCRIPTORS */ +#endif /* CONFIG_USE_SERIALDRIVER */ /**************************************************************************** * Name: up_putc diff --git a/configs/z80sim/src/z80_serial.c b/configs/z80sim/src/z80_serial.c index 242db137ff..803ff6fb93 100644 --- a/configs/z80sim/src/z80_serial.c +++ b/configs/z80sim/src/z80_serial.c @@ -54,8 +54,8 @@ #include "os_internal.h" #include "up_internal.h" -#if CONFIG_NFILE_DESCRIPTORS > 0 -#if defined(CONFIG_DEV_CONSOLE) && !defined(CONFIG_DEV_LOWCONSOLE) +#ifdef CONFIG_USE_SERIALDRIVER + /**************************************************************************** * Definitions ****************************************************************************/ @@ -325,7 +325,6 @@ static boolean up_txempty(struct uart_dev_s *dev) void up_earlyserialinit(void) { } -#endif /* CONFIG_DEV_CONSOLE && !CONFIG_DEV_LOWCONSOLE */ /**************************************************************************** * Name: up_serialinit @@ -338,14 +337,10 @@ void up_earlyserialinit(void) void up_serialinit(void) { -#if defined(CONFIG_DEV_LOWCONSOLE) - (void)lowconsole_init(); -#elif defined(CONFIG_DEV_CONSOLE) (void)uart_register("/dev/console", &g_uartport); (void)uart_register("/dev/ttyS0", &g_uartport); -#endif } -#endif /* CONFIG_NFILE_DESCRIPTORS */ +#endif /* CONFIG_USE_SERIALDRIVER */ /**************************************************************************** * Name: up_putc