mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-17 18:48:43 +00:00
NSH Keyboard Input: Worked okay until you try to disabled the keyboard
This commit is contained in:
parent
42d4d7a7e0
commit
187e4f204d
1 changed files with 14 additions and 6 deletions
20
nshlib/nsh.h
20
nshlib/nsh.h
|
|
@ -171,18 +171,26 @@
|
|||
*/
|
||||
|
||||
#undef HAVE_USB_KEYBOARD
|
||||
#if defined(CONFIG_USBHOST) && !defined(HAVE_USB_CONSOLE)
|
||||
|
||||
/* Check pre-requisites */
|
||||
|
||||
#if !defined(CONFIG_USBHOST) || !defined(CONFIG_USBHOST_HIDKBD) || \
|
||||
defined(HAVE_USB_CONSOLE)
|
||||
# undef CONFIG_NSH_USBKBD
|
||||
#endif
|
||||
|
||||
/* Check default settings */
|
||||
|
||||
#if defined(CONFIG_NSH_USBKBD)
|
||||
|
||||
/* Check for a USB HID keyboard in the configuration */
|
||||
|
||||
# ifdef CONFIG_USBHOST_HIDKBD
|
||||
# define HAVE_USB_KEYBOARD 1
|
||||
# define HAVE_USB_KEYBOARD 1
|
||||
|
||||
/* The default keyboard device is /dev/kbda */
|
||||
|
||||
# ifndef NSH_USBKBD_DEVNAME
|
||||
# define NSH_USBKBD_DEVNAME "/dev/kbda"
|
||||
# endif
|
||||
# ifndef NSH_USBKBD_DEVNAME
|
||||
# define NSH_USBKBD_DEVNAME "/dev/kbda"
|
||||
# endif
|
||||
#endif /* HAVE_USB_KEYBOARD */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue