diff options
Diffstat (limited to 'nuttx/arch/sh')
-rw-r--r-- | nuttx/arch/sh/src/sh1/sh1_serial.c | 7 |
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) */ |