NSH Keyboard Input: Worked okay until you try to disabled the keyboard
This commit is contained in:
parent
42d4d7a7e0
commit
187e4f204d
20
nshlib/nsh.h
20
nshlib/nsh.h
@ -171,18 +171,26 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#undef HAVE_USB_KEYBOARD
|
#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 */
|
/* 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 */
|
/* The default keyboard device is /dev/kbda */
|
||||||
|
|
||||||
# ifndef NSH_USBKBD_DEVNAME
|
# ifndef NSH_USBKBD_DEVNAME
|
||||||
# define NSH_USBKBD_DEVNAME "/dev/kbda"
|
# define NSH_USBKBD_DEVNAME "/dev/kbda"
|
||||||
# endif
|
|
||||||
# endif
|
# endif
|
||||||
#endif /* HAVE_USB_KEYBOARD */
|
#endif /* HAVE_USB_KEYBOARD */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user