Skip to content
Snippets Groups Projects
Commit 6671be97 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

dd support for a USB keyboard as the NxConsole and text widget input. Not...

dd support for a USB keyboard as the NxConsole and text widget input.  Not fully functional as of this initial check-in.  Basic functionality is there, but there are conditions were the keyboard gets lost.
parent 85f24520
No related branches found
No related tags found
No related merge requests found
...@@ -855,13 +855,24 @@ config NXWM_KEYBOARD_DEVPATH ...@@ -855,13 +855,24 @@ config NXWM_KEYBOARD_DEVPATH
string "Keyboard Device Path" string "Keyboard Device Path"
default "/dev/console" default "/dev/console"
---help--- ---help---
The full path to the touchscreen device. Default: "/dev/console" The full path to the keyboard device. Default: "/dev/console"
config NXWM_KEYBOARD_USBHOST
bool "USB Keyboard Device"
default n
---help---
This setting indicates that NXWM_KEYBOARD_DEVPATH is a USB keyboard.
A USB Keyboard is a removable device. When it is inserted, then
device at NXWM_KEYBOARD_DEVPATH will appear; when it removed,
keyboard reads will fail and the device at NXWM_KEYBOARD_DEVPATH
will disappear. Selecting this option builds addtional logic into
the keyboard listener thread in order to handle this case.
config NXWM_KEYBOARD_SIGNO config NXWM_KEYBOARD_SIGNO
int "Keyboard Task Signal Number" int "Keyboard Task Signal Number"
default 6 default 6
---help--- ---help---
The realtime signal used to wake up the touchscreen listener thread. The realtime signal used to wake up the keyboard listener thread.
Default: 6 Default: 6
config NXWM_KEYBOARD_BUFSIZE config NXWM_KEYBOARD_BUFSIZE
...@@ -874,10 +885,10 @@ config NXWM_KEYBOARD_LISTENERPRIO ...@@ -874,10 +885,10 @@ config NXWM_KEYBOARD_LISTENERPRIO
int "Keyboard Listener Task Priority" int "Keyboard Listener Task Priority"
default 120 default 120
---help--- ---help---
Priority of the touchscreen listener thread.This listener should Priority of the keyboard listener thread. This listener should
have a higher priority than most display-related tsks otherwise it have a higher priority than most display-related tasks otherwise it
may miss touchscreen events (not really very likely because keyboard may miss keyboard input (not really very likely because keyboard
input is relatively slow). Default: 120 input is relatively slow). Default: 120
config NXWM_KEYBOARD_LISTENERSTACK config NXWM_KEYBOARD_LISTENERSTACK
int "Keyboard Listener Task Stack Size" int "Keyboard Listener Task Stack Size"
......
...@@ -116,7 +116,7 @@ static int nsh_wait_usbready(FAR const char *msg) ...@@ -116,7 +116,7 @@ static int nsh_wait_usbready(FAR const char *msg)
/* ENOENT means that the USB device is not yet connected and, /* ENOENT means that the USB device is not yet connected and,
* hence, has no entry under /dev. If the USB driver still * hence, has no entry under /dev. If the USB driver still
* exists under(because other threads still have the driver * exists under /dev (because other threads still have the driver
* open), then we might also get ENODEV. Anything else would * open), then we might also get ENODEV. Anything else would
* be really bad. * be really bad.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment