mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +08:00
apps/nshlib: Add support to use SLCD as NSH Console
This commit is contained in:

committed by
Gregory Nutt

parent
521052ae1f
commit
c21d640eaf
13
nshlib/nsh.h
13
nshlib/nsh.h
@@ -291,6 +291,19 @@
|
||||
# endif
|
||||
#endif /* HAVE_USB_KEYBOARD */
|
||||
|
||||
#undef HAVE_SLCD_CONSOLE
|
||||
|
||||
/* Check if SLCD is configured as alternative console */
|
||||
|
||||
#if defined(CONFIG_SLCD) && defined(CONFIG_NSH_ALTCONDEV)
|
||||
|
||||
# define HAVE_SLCD_CONSOLE 1
|
||||
|
||||
# ifndef CONFIG_NSH_CONDEV
|
||||
# define CONFIG_NSH_CONDEV "/dev/slcd0"
|
||||
# endif
|
||||
#endif /* HAVE_SLCD_CONSOLE */
|
||||
|
||||
/* USB trace settings */
|
||||
|
||||
#ifndef CONFIG_USBDEV_TRACE
|
||||
|
Reference in New Issue
Block a user