diff options
Diffstat (limited to 'nuttx/arch/sh/src/m16c/m16c_lowputc.c')
-rw-r--r-- | nuttx/arch/sh/src/m16c/m16c_lowputc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nuttx/arch/sh/src/m16c/m16c_lowputc.c b/nuttx/arch/sh/src/m16c/m16c_lowputc.c index 6c10a6468..43f9b1946 100644 --- a/nuttx/arch/sh/src/m16c/m16c_lowputc.c +++ b/nuttx/arch/sh/src/m16c/m16c_lowputc.c @@ -90,6 +90,12 @@ # undef HAVE_SERIALCONSOLE #endif +#if defined(HAVE_SERIALCONSOLE) && defined(CONFIG_LCD_CONSOLE) +# error "Both serial and LCD consoles are defined" +#elif !defined(HAVE_SERIALCONSOLE) && !defined(CONFIG_LCD_CONSOLE) +# warning "No console is defined" +#endif + /* Select UART parameters for the selected console */ #ifdef HAVE_SERIALCONSOLE @@ -292,7 +298,7 @@ static inline void up_lowserialsetup(void) * **************************************************************************/ -#ifdef HAVE_SERIAL /* Assume needed if we have serial. See for e.g., up_lcd.c */ +#if defined(HAVE_SERIAL) && !defined(CONFIG_LCD_CONSOLE) void up_lowputc(char ch) { #ifdef HAVE_SERIALCONSOLE |