summaryrefslogtreecommitdiff
path: root/nuttx/arch/sh/src
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-11 19:38:09 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-11-11 19:38:09 +0000
commit085539aebda5932c178545b905365c29fc8ea434 (patch)
treef76fd4266ba24e90e09e881f379d6bb452ec3fd4 /nuttx/arch/sh/src
parentb079bdf537a27cd17e0c532849179ddaa141f07d (diff)
downloadpx4-nuttx-085539aebda5932c178545b905365c29fc8ea434.tar.gz
px4-nuttx-085539aebda5932c178545b905365c29fc8ea434.tar.bz2
px4-nuttx-085539aebda5932c178545b905365c29fc8ea434.zip
HAVE_CONSOLE was not being defined
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1197 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sh/src')
-rw-r--r--nuttx/arch/sh/src/sh1/sh1_serial.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/nuttx/arch/sh/src/sh1/sh1_serial.c b/nuttx/arch/sh/src/sh1/sh1_serial.c
index 810d8f4b6..0b639afb5 100644
--- a/nuttx/arch/sh/src/sh1/sh1_serial.c
+++ b/nuttx/arch/sh/src/sh1/sh1_serial.c
@@ -64,13 +64,10 @@
#if !defined(CONFIG_SH1_SCI0) && !defined(CONFIG_SH1_SCI1)
# ifdef CONFIG_USE_SERIALDRIVER
# error "Serial driver selected, but SCIs not enabled"
+# undef CONFIG_USE_SERIALDRIVER
# endif
-# undef HAVE_CONSOLE
-# undef CONFIG_USE_SERIALDRIVER
#endif
-#ifdef CONFIG_USE_SERIALDRIVER
-
/* Is there a serial console? */
#if defined(CONFIG_SCI0_SERIAL_CONSOLE) && defined(CONFIG_SH1_SCI0)
@@ -88,6 +85,8 @@
# undef CONFIG_SCI1_SERIAL_CONSOLE
#endif
+#ifdef CONFIG_USE_SERIALDRIVER
+
/* Which SCI with be tty0/console and which tty1? */
/* CONFIG_SCI0_SERIAL_CONSOLE (implies CONFIG_SH1_SCI0 also defined) */