From 6e9d974ba6298018ff8bcd216faf549a3c03e510 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 7 Nov 2008 20:53:46 +0000 Subject: 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 --- nuttx/configs/xtrs/src/xtr_serial.c | 11 +++-------- nuttx/configs/z80sim/src/z80_serial.c | 11 +++-------- 2 files changed, 6 insertions(+), 16 deletions(-) (limited to 'nuttx/configs') diff --git a/nuttx/configs/xtrs/src/xtr_serial.c b/nuttx/configs/xtrs/src/xtr_serial.c index decadccec..9e25d09d1 100644 --- a/nuttx/configs/xtrs/src/xtr_serial.c +++ b/nuttx/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/nuttx/configs/z80sim/src/z80_serial.c b/nuttx/configs/z80sim/src/z80_serial.c index 242db137f..803ff6fb9 100644 --- a/nuttx/configs/z80sim/src/z80_serial.c +++ b/nuttx/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 -- cgit v1.2.3