Remove CONFIG_DEV_LOWCONSOLE from source code

Follow the nuttx side change
This commit is contained in:
Xiang Xiao 2020-02-18 20:59:52 +08:00 committed by Gregory Nutt
parent 569618220a
commit eb8678cfeb
2 changed files with 8 additions and 18 deletions

View File

@ -59,15 +59,15 @@
* Pre-processor Definitions
****************************************************************************/
#if defined(CONFIG_DEV_CONSOLE) && !defined(CONFIG_DEV_LOWCONSOLE)
# define HAVE_CONSOLE
# define NPOLLFDS 2
# define CONSNDX 0
# define FIFONDX 1
#ifdef CONFIG_DEV_CONSOLE
# define HAVE_CONSOLE
# define NPOLLFDS 2
# define CONSNDX 0
# define FIFONDX 1
#else
# undef HAVE_CONSOLE
# define NPOLLFDS 1
# define FIFONDX 0
# undef HAVE_CONSOLE
# define NPOLLFDS 1
# define FIFONDX 0
#endif
/****************************************************************************

View File

@ -1945,16 +1945,6 @@ NSH-Specific Configuration Settings
Common Problems
^^^^^^^^^^^^^^^
Problem:
Using NSH over serial, the "nsh>" prompt repeats over and over again
with no serial input.
Usual Cause:
NSH over serial needs to use the interrupt driven serial driver
(drivers/serial/serial.c) not the polled serial driver (drivers/serial/lowconsole.c).
Make sure that the polled console is disabled in the OS configuration
file, .config. That file should have CONFIG_DEV_LOWCONSOLE=n for
NSH over serial.
Problem:
The function 'readline' is undefined.
Usual Cause: