drivers/lcd/Kconfig and several other places: Rename CONFIG_LCD_CONSOLE to CONFIG_SLCD_CONSOLE. The original name CONFIG_LCD_CONSOLE is incorrect because it runs on SLCD display. This patch fix it and update its dependences

This commit is contained in:
Alan Carvalho de Assis 2018-11-30 17:36:13 -06:00 committed by Gregory Nutt
parent 05b6a19a81
commit 3a2a423214
7 changed files with 25 additions and 24 deletions

View File

@ -191,7 +191,7 @@ void renesas_timer_initialize(void);
/* Defined in board/xyz_lcd.c */
#ifdef CONFIG_LCD_CONSOLE
#ifdef CONFIG_SLCD_CONSOLE
void up_lcdinit(void);
void up_lcdputc(char ch);
#else

View File

@ -90,9 +90,9 @@
# undef HAVE_SERIALCONSOLE
#endif
#if defined(HAVE_SERIALCONSOLE) && defined(CONFIG_LCD_CONSOLE)
#if defined(HAVE_SERIALCONSOLE) && defined(CONFIG_SLCD_CONSOLE)
# error "Both serial and LCD consoles are defined"
#elif !defined(HAVE_SERIALCONSOLE) && !defined(CONFIG_LCD_CONSOLE)
#elif !defined(HAVE_SERIALCONSOLE) && !defined(CONFIG_SLCD_CONSOLE)
# warning "No console is defined"
#endif
@ -298,7 +298,7 @@ static inline void up_lowserialsetup(void)
*
****************************************************************************/
#if defined(HAVE_SERIAL) && !defined(CONFIG_LCD_CONSOLE)
#if defined(HAVE_SERIAL) && !defined(CONFIG_SLCD_CONSOLE)
void up_lowputc(char ch)
{
#ifdef HAVE_SERIALCONSOLE
@ -335,7 +335,7 @@ void up_lowsetup(void)
/* The LCD is initialized here if the LCD is used for console output. */
#ifdef CONFIG_LCD_CONSOLE
#ifdef CONFIG_SLCD_CONSOLE
up_lcdinit();
#endif
}

View File

@ -130,9 +130,9 @@
# undef CONFIG_UART2_SERIAL_CONSOLE
#endif
#if defined(HAVE_SERIALCONSOLE) && defined(CONFIG_LCD_CONSOLE)
#if defined(HAVE_SERIALCONSOLE) && defined(CONFIG_SLCD_CONSOLE)
# error "Both serial and LCD consoles are defined"
#elif !defined(HAVE_SERIALCONSOLE) && !defined(CONFIG_LCD_CONSOLE)
#elif !defined(HAVE_SERIALCONSOLE) && !defined(CONFIG_SLCD_CONSOLE)
# warning "No console is defined"
#endif

View File

@ -15,8 +15,6 @@ CONFIG_DISABLE_POLL=y
CONFIG_ENDIAN_BIG=y
CONFIG_EXAMPLES_OSTEST=y
CONFIG_IDLETHREAD_STACKSIZE=256
CONFIG_LCD_CONSOLE=y
CONFIG_LCD=y
CONFIG_MAX_TASKS=8
CONFIG_MAX_WDOGPARMS=2
CONFIG_MOTOROLA_SREC=y
@ -32,6 +30,8 @@ CONFIG_RAM_SIZE=2048
CONFIG_RAM_START=0x00400
CONFIG_RR_INTERVAL=200
CONFIG_SDCLONE_DISABLE=y
CONFIG_SLCD=y
CONFIG_SLCD_CONSOLE=y
CONFIG_START_DAY=20
CONFIG_START_MONTH=2
CONFIG_START_YEAR=2009

View File

@ -47,7 +47,7 @@
#include "up_internal.h"
#include "chip.h"
#ifdef CONFIG_LCD
#ifdef CONFIG_SLCD
/************************************************************************************
* Pre-processor Definitions
@ -280,4 +280,4 @@ void up_lcdputc(char ch)
}
}
#endif /* CONFIG_LCD */
#endif /* CONFIG_SLCD */

View File

@ -56,7 +56,8 @@
# undef HAVE_SERIALCONSOLE
#endif
#if !defined(HAVE_SERIALCONSOLE) && defined(CONFIG_LCD) && defined(CONFIG_LCD_CONSOLE)
#if !defined(HAVE_SERIALCONSOLE) && defined(CONFIG_SLCD) && \
defined(CONFIG_SLCD_CONSOLE)
/************************************************************************************
* Pre-processor Definitions
@ -138,4 +139,4 @@ int up_putc(int ch)
return ch;
}
#endif /* !HAVE_SERIALCONSOLE && CONFIG_LCD && CONFIG_LCD_CONSOLE */
#endif /* !HAVE_SERIALCONSOLE && CONFIG_SLCD && CONFIG_SLCD_CONSOLE */

View File

@ -58,17 +58,6 @@ config LCD_EXTERNINIT
menu "LCD driver selection"
config LCD_CONSOLE
bool "LCD console output"
default n
---help---
It is possible to use an SLCD to provide console output. This option
enables that possibility.
At present, only one architecture supports this option (M16C).
However, this feature could be provided by other architectures in
the future.
config LCD_NOGETRUN
bool "Write-only LCD"
default n
@ -1172,6 +1161,17 @@ menuconfig SLCD
if SLCD
config SLCD_CONSOLE
bool "SLCD console output"
default n
---help---
It is possible to use an SLCD to provide console output. This option
enables that possibility.
At present, only one architecture supports this option (M16C).
However, this feature could be provided by other architectures in
the future.
config LCD_LCD1602
bool "LCD 1602"
default n