mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-20 04:26:04 +08:00
NSH: Add an option to take stdin from a USB keyboard device
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
#include "nsh.h"
|
||||
#include "nsh_console.h"
|
||||
|
||||
#ifndef HAVE_USB_CONSOLE
|
||||
#if !defined(HAVE_USB_CONSOLE) && !defined(HAVE_USB_KEYBOARD)
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@@ -84,8 +84,8 @@
|
||||
* function does not normally return (see below).
|
||||
*
|
||||
* This version of nsh_consolmain handles generic /dev/console character
|
||||
* devices (see nsh_usbdev.c for another version for special USB console
|
||||
* devices).
|
||||
* devices (see nsh_usbconsole.c and usb_usbkeyboard for other versions
|
||||
* for special USB console devices).
|
||||
*
|
||||
* Input Parameters:
|
||||
* Standard task start-up arguments. These are not used. argc may be
|
||||
@@ -127,4 +127,4 @@ int nsh_consolemain(int argc, char *argv[])
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* !HAVE_USB_CONSOLE */
|
||||
#endif /* !HAVE_USB_CONSOLE && !HAVE_USB_KEYBOARD */
|
||||
|
Reference in New Issue
Block a user