2012-09-17 15:18:44 -03:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see misc/tools/kconfig-language.txt.
|
|
|
|
#
|
2012-12-26 14:54:59 -04:00
|
|
|
|
2012-09-17 15:18:44 -03:00
|
|
|
config USBHOST_NPREALLOC
|
|
|
|
int "Number of pre-allocated class instances"
|
|
|
|
default 4
|
|
|
|
---help---
|
|
|
|
Number of pre-allocated class instances
|
|
|
|
|
|
|
|
config USBHOST_BULK_DISABLE
|
|
|
|
bool "Disable bulk endpoint support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
On some architectures, selecting this setting will reduce driver size
|
|
|
|
by disabling bulk endpoint support
|
|
|
|
|
|
|
|
config USBHOST_INT_DISABLE
|
|
|
|
bool "Disable interrupt endpoint support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
On some architectures, selecting this setting will reduce driver size
|
|
|
|
by disabling interrupt endpoint support
|
|
|
|
|
|
|
|
config USBHOST_ISOC_DISABLE
|
|
|
|
bool "Disable isochronous endpoint support"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
On some architectures, selecting this setting will reduce driver size
|
|
|
|
by disabling isochronous endpoint support
|
|
|
|
|
2012-12-26 14:54:59 -04:00
|
|
|
config USBHOST_MSC
|
|
|
|
bool "Mass Storage Class Support"
|
|
|
|
default n
|
|
|
|
depends on !BULK_DISABLE
|
|
|
|
---help---
|
|
|
|
Enable support for the keyboard class driver. This also depends on
|
|
|
|
NFILE_DESCRIPTORS > 0 && SCHED_WORKQUEUE=y
|
|
|
|
|
2012-09-17 15:18:44 -03:00
|
|
|
config USBHOST_HIDKBD
|
2012-12-26 14:54:59 -04:00
|
|
|
bool "HID Keyboard Class Support"
|
2012-09-17 15:18:44 -03:00
|
|
|
default n
|
2012-12-26 14:54:59 -04:00
|
|
|
depends on !INT_DISABLE
|
|
|
|
---help---
|
|
|
|
Enable support for the keyboard class driver. This also depends on
|
|
|
|
SCHED_WORKQUEUE && !DISABLE_SIGNALS
|
2012-09-17 15:18:44 -03:00
|
|
|
|
|
|
|
if USBHOST_HIDKBD
|
|
|
|
config HIDKBD_POLLUSEC
|
2012-12-26 14:54:59 -04:00
|
|
|
int "Keyboard Poll Rate (MSEC)"
|
|
|
|
default 100000
|
2012-09-17 15:18:44 -03:00
|
|
|
---help---
|
2012-12-26 14:54:59 -04:00
|
|
|
Device poll rate in microseconds. Default: 100,000 microseconds.
|
2012-09-17 15:18:44 -03:00
|
|
|
|
|
|
|
config HIDKBD_DEFPRIO
|
2012-12-26 14:54:59 -04:00
|
|
|
int "Polling Thread Priority"
|
|
|
|
default 50
|
2012-09-17 15:18:44 -03:00
|
|
|
---help---
|
|
|
|
Priority of the polling thread. Default: 50.
|
|
|
|
|
|
|
|
config HIDKBD_STACKSIZE
|
2012-12-26 14:54:59 -04:00
|
|
|
int "Polling thread stack size"
|
|
|
|
default 1024
|
2012-09-17 15:18:44 -03:00
|
|
|
---help---
|
|
|
|
Stack size for polling thread. Default: 1024
|
|
|
|
|
|
|
|
config HIDKBD_BUFSIZE
|
2012-12-26 14:54:59 -04:00
|
|
|
int "Scancode Buffer Size"
|
|
|
|
default 64
|
2012-09-17 15:18:44 -03:00
|
|
|
---help---
|
|
|
|
Scancode buffer size. Default: 64.
|
|
|
|
|
|
|
|
config HIDKBD_NPOLLWAITERS
|
2012-12-26 14:54:59 -04:00
|
|
|
int "Max Number of Waiters for Poll Event"
|
|
|
|
default 2
|
|
|
|
depends on !DISABLE_POLL
|
2012-09-17 15:18:44 -03:00
|
|
|
---help---
|
|
|
|
If the poll() method is enabled, this defines the maximum number
|
|
|
|
of threads that can be waiting for keyboard events. Default: 2.
|
|
|
|
|
|
|
|
config HIDKBD_RAWSCANCODES
|
2012-12-26 14:54:59 -04:00
|
|
|
bool "Use Raw Scan Codes"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
If set to y no conversions will be made on the raw keyboard scan
|
|
|
|
codes. This option is useful during testing. Default: ASCII conversion.
|
|
|
|
|
|
|
|
config HIDKBD_ENCODED
|
|
|
|
bool "Enocode Special Keys"
|
2012-09-17 15:18:44 -03:00
|
|
|
default n
|
2012-12-26 14:54:59 -04:00
|
|
|
depends on !HIDKBD_RAWSCANCODES
|
2012-09-17 15:18:44 -03:00
|
|
|
---help---
|
2012-12-26 14:54:59 -04:00
|
|
|
Encode special key press events in the user buffer. In this case,
|
|
|
|
the use end must decode the encoded special key values using the
|
|
|
|
interfaces defined in include/nuttx/input/kbd_codec.h. 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.
|
2012-09-17 15:18:44 -03:00
|
|
|
|
|
|
|
config HIDKBD_ALLSCANCODES
|
2012-12-26 14:54:59 -04:00
|
|
|
bool "Use All Scancodes"
|
2012-09-17 15:18:44 -03:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
If set to y all 231 possible scancodes will be converted to
|
|
|
|
something. Default: 104 key US keyboard.
|
|
|
|
|
|
|
|
config HIDKBD_NODEBOUNCE
|
2012-12-26 14:54:59 -04:00
|
|
|
bool "Disable Debounce"
|
2012-09-17 15:18:44 -03:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
If set to y normal debouncing is disabled. Default:
|
|
|
|
Debounce enabled (No repeat keys).
|
|
|
|
endif
|