nuttx-apps/examples/hidkbd/Kconfig
Jorge Guzman ece6221edb examples/hidkbd: follow the byte stream option rename
The example gated its decoding on HIDKBD_ENCODED, which no longer
exists: the USB HID keyboard driver reports through the keyboard upper
half now, and what produces the byte stream is
INPUT_KEYBOARD_BYTESTREAM.

Left as it was, the option could never be satisfied and the example
would quietly stop decoding special keys.

Reaching the option again brings hidkbd_decode() back into the build
after a spell of being unreachable, and it uses isprint() without
including ctype.h. That is an error rather than a warning under the
-Werror the CI builds with, in the nine configurations that enable
EXAMPLES_HIDKBD, so add the include here rather than in a later commit.

Signed-off-by: Jorge Guzman <jorge.gzm@gmail.com>
2026-08-02 18:36:37 +08:00

48 lines
1.3 KiB
Text

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config EXAMPLES_HIDKBD
tristate "USB HID keyboard example"
default n
depends on USBHOST_HIDKBD
---help---
Enable the USB HID keyboard example
if EXAMPLES_HIDKBD
config EXAMPLES_HIDKBD_PROGNAME
string "Program name"
default "hidkbd"
---help---
This is the name of the program that will be used when the Nettest
program is installed.
config EXAMPLES_HIDKBD_STACKSIZE
int "Task stack size"
default DEFAULT_TASK_STACKSIZE
config EXAMPLES_HIDKBD_DEFPRIO
int "Task priority"
default 100
config EXAMPLES_HIDKBD_DEVNAME
string "Keyboard Device Name"
default "/dev/kbda"
---help---
Name of keyboard device to be used. Default: "/dev/kbda"
config EXAMPLES_HIDKBD_ENCODED
bool "Encode Special Keys"
default y
depends on INPUT_KEYBOARD_BYTESTREAM
---help---
Decode special key press events in the user buffer. In this case,
the example coded will use the interfaces defined in
include/nuttx/input/kbd_codec.h to decode the returned keyboard
data. These special keys include such things as up/down arrows,
home and end keys, etc. If this not defined, only 7-bit print-able
and control ASCII characters will be provided to the user.
endif