2012-04-06 17:49:35 +02:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2012-04-06 18:45:52 +02:00
|
|
|
# see misc/tools/kconfig-language.txt.
|
2012-04-06 17:49:35 +02:00
|
|
|
#
|
2012-12-26 19:54:59 +01:00
|
|
|
|
2012-04-13 16:27:44 +02: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
|
|
|
|
|
2015-04-19 00:20:02 +02:00
|
|
|
config USBHOST_HUB
|
|
|
|
bool "USB Hub Support"
|
|
|
|
default n
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
---help---
|
|
|
|
Select this option to build in support for USB hubs.
|
|
|
|
|
2012-12-26 19:54:59 +01: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-04-13 16:27:44 +02:00
|
|
|
config USBHOST_HIDKBD
|
2012-12-26 19:54:59 +01:00
|
|
|
bool "HID Keyboard Class Support"
|
2012-04-13 16:27:44 +02:00
|
|
|
default n
|
2012-12-26 19:54:59 +01:00
|
|
|
depends on !INT_DISABLE
|
|
|
|
---help---
|
|
|
|
Enable support for the keyboard class driver. This also depends on
|
|
|
|
SCHED_WORKQUEUE && !DISABLE_SIGNALS
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
if USBHOST_HIDKBD
|
2014-02-09 20:49:31 +01:00
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
config HIDKBD_POLLUSEC
|
2012-12-26 19:54:59 +01:00
|
|
|
int "Keyboard Poll Rate (MSEC)"
|
|
|
|
default 100000
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
2012-12-26 19:54:59 +01:00
|
|
|
Device poll rate in microseconds. Default: 100,000 microseconds.
|
2012-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config HIDKBD_DEFPRIO
|
2012-12-26 19:54:59 +01:00
|
|
|
int "Polling Thread Priority"
|
|
|
|
default 50
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
Priority of the polling thread. Default: 50.
|
|
|
|
|
|
|
|
config HIDKBD_STACKSIZE
|
2012-12-26 19:54:59 +01:00
|
|
|
int "Polling thread stack size"
|
|
|
|
default 1024
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
Stack size for polling thread. Default: 1024
|
|
|
|
|
|
|
|
config HIDKBD_BUFSIZE
|
2012-12-26 19:54:59 +01:00
|
|
|
int "Scancode Buffer Size"
|
|
|
|
default 64
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
|
|
|
Scancode buffer size. Default: 64.
|
|
|
|
|
|
|
|
config HIDKBD_NPOLLWAITERS
|
2012-12-26 19:54:59 +01:00
|
|
|
int "Max Number of Waiters for Poll Event"
|
|
|
|
default 2
|
|
|
|
depends on !DISABLE_POLL
|
2012-04-13 16:27:44 +02: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 19:54:59 +01: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
|
2013-04-21 19:01:46 +02:00
|
|
|
bool "Encode Special Keys"
|
2012-04-13 16:27:44 +02:00
|
|
|
default n
|
2012-12-26 22:37:50 +01:00
|
|
|
depends on !HIDKBD_RAWSCANCODES && LIB_KBDCODEC
|
2012-04-13 16:27:44 +02:00
|
|
|
---help---
|
2012-12-26 19:54:59 +01:00
|
|
|
Encode special key press events in the user buffer. In this case,
|
2012-12-26 22:37:50 +01:00
|
|
|
the user end must decode the encoded special key values using the
|
2012-12-26 19:54:59 +01:00
|
|
|
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-04-13 16:27:44 +02:00
|
|
|
|
|
|
|
config HIDKBD_ALLSCANCODES
|
2012-12-26 19:54:59 +01:00
|
|
|
bool "Use All Scancodes"
|
2012-04-13 16:27:44 +02: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 19:54:59 +01:00
|
|
|
bool "Disable Debounce"
|
2012-04-13 16:27:44 +02:00
|
|
|
default n
|
|
|
|
---help---
|
2014-02-09 20:49:31 +01:00
|
|
|
If set to y normal debouncing is disabled. Default:
|
2012-04-13 16:27:44 +02:00
|
|
|
Debounce enabled (No repeat keys).
|
2013-09-09 22:01:52 +02:00
|
|
|
|
2012-04-13 16:27:44 +02:00
|
|
|
endif
|
2013-09-09 22:01:52 +02:00
|
|
|
|
2014-02-09 20:49:31 +01:00
|
|
|
config USBHOST_HIDMOUSE
|
|
|
|
bool "HID Mouse Class Support"
|
|
|
|
default n
|
|
|
|
depends on !INT_DISABLE
|
2014-02-09 22:57:59 +01:00
|
|
|
select INPUT
|
2014-02-10 18:53:37 +01:00
|
|
|
select MOUSE
|
2014-02-09 20:49:31 +01:00
|
|
|
---help---
|
|
|
|
Enable support for the mouse class driver. This also depends on
|
|
|
|
SCHED_WORKQUEUE && !DISABLE_SIGNALS
|
|
|
|
|
2014-02-10 18:53:37 +01:00
|
|
|
NOTE: This driver checks out on a Labtec and an AOpen mouse, but
|
|
|
|
does not work correctly on a Microsoft mouse. A little more work
|
|
|
|
would be needed to support the Microsoft mouse.
|
|
|
|
|
|
|
|
if USBHOST_HIDMOUSE
|
2014-02-09 20:49:31 +01:00
|
|
|
|
2014-02-10 17:14:22 +01:00
|
|
|
config HIDMOUSE_TSCIF
|
|
|
|
bool "Touchscreen Emulation"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Normally, the HID mouse driver uses the mouse report structure
|
|
|
|
defined in include/nuttx/input/mouse.h. The mouse driver can,
|
|
|
|
however, be configured to use the touchscreen interface defined in
|
|
|
|
include/nuttx/input/touchcreen.h. If the touch screen interface is
|
|
|
|
used, only support for the left button will be provided.
|
|
|
|
|
|
|
|
NOTE: Unlike touchscreen drivers, mouse drivers will report
|
|
|
|
position data even when the "pen is up", i.e., when no buttons are
|
|
|
|
pressed. This behavior is necessary to provide the positional data
|
|
|
|
would would be needed to drive a cursor. Without a cursor of some
|
|
|
|
kind, the mouse is not very useful. So this option may not be useful.
|
|
|
|
|
2014-02-09 20:49:31 +01:00
|
|
|
config HIDMOUSE_DEFPRIO
|
|
|
|
int "Polling Thread Priority"
|
|
|
|
default 50
|
|
|
|
---help---
|
|
|
|
Priority of the polling thread. Default: 50.
|
|
|
|
|
|
|
|
config HIDMOUSE_STACKSIZE
|
|
|
|
int "Polling thread stack size"
|
|
|
|
default 1024
|
|
|
|
---help---
|
|
|
|
Stack size for polling thread. Default: 1024
|
|
|
|
|
|
|
|
config HIDMOUSE_BUFSIZE
|
|
|
|
int "Scancode Buffer Size"
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Scancode buffer size. Default: 64.
|
|
|
|
|
|
|
|
config HIDMOUSE_NPOLLWAITERS
|
|
|
|
int "Max Number of Waiters for Poll Event"
|
|
|
|
default 2
|
|
|
|
depends on !DISABLE_POLL
|
|
|
|
---help---
|
|
|
|
If the poll() method is enabled, this defines the maximum number
|
|
|
|
of threads that can be waiting for mouse events. Default: 2.
|
|
|
|
|
|
|
|
config HIDMOUSE_SWAPXY
|
|
|
|
bool "Swap X/Y"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Reverse the meaning of X and Y to handle different display orientations.
|
2014-02-10 00:40:23 +01:00
|
|
|
NOTE: All of the following settings apply AFTER X and Y have been swapped.
|
2014-02-09 20:49:31 +01:00
|
|
|
|
|
|
|
config HIDMOUSE_XMAX
|
|
|
|
int "Maximum X position"
|
|
|
|
default 320
|
|
|
|
range 0 32767
|
|
|
|
---help---
|
|
|
|
This is the maximum value of the X position that will be reported.
|
|
|
|
Default: 320
|
|
|
|
|
|
|
|
config HIDMOUSE_YMAX
|
|
|
|
int "Maximum Y position"
|
|
|
|
default 240
|
|
|
|
range 0 32767
|
|
|
|
---help---
|
|
|
|
This is the maximum value of the Y position that will be reported.
|
|
|
|
Default: 240
|
|
|
|
|
|
|
|
config HIDMOUSE_XSCALE
|
|
|
|
hex "X scaling factor"
|
|
|
|
default 0x00010000
|
|
|
|
---help---
|
2014-02-10 00:40:23 +01:00
|
|
|
Mouse positions are accumulated from X/Y displacements reported by
|
2014-02-09 20:49:31 +01:00
|
|
|
the mouse device. This setting provides a scaling value for the X
|
|
|
|
displacement. This is a fixed precision floating point number with
|
|
|
|
16 bits of fraction. So a value of 0x00010000 is 1.0, 0x00018000
|
|
|
|
is 1.5, 0x00024000 is 2.25, etc.
|
|
|
|
|
2014-02-10 00:40:23 +01:00
|
|
|
NOTE that a negative value of HIDMOUSE_XSCALE such as 0xffff0000
|
|
|
|
(-1.0) can be used to change the direction of movement.
|
|
|
|
|
2014-02-09 20:49:31 +01:00
|
|
|
Default: 0x00010000 (1.0)
|
|
|
|
|
|
|
|
config HIDMOUSE_YSCALE
|
|
|
|
hex "Y scaling factor"
|
|
|
|
default 0x00010000
|
|
|
|
---help---
|
2014-02-10 00:40:23 +01:00
|
|
|
Mouse positions are accumulated from X/Y displacements reported by
|
2014-02-09 20:49:31 +01:00
|
|
|
the mouse device. This setting provides a scaling value for the Y
|
|
|
|
displacement. This is a fixed precision floating point number with
|
|
|
|
16 bits of fraction. So a value of 0x00010000 is 1.0, 0x00018000
|
|
|
|
is 1.5, 0x00024000 is 2.25, etc.
|
|
|
|
|
2014-02-10 00:40:23 +01:00
|
|
|
NOTE that a negative value of HIDMOUSE_YSCALE such as 0xffff0000
|
|
|
|
(-1.0) can be used to change the direction of movement.
|
|
|
|
|
2014-02-09 20:49:31 +01:00
|
|
|
Default: 0x00010000 (1.0)
|
|
|
|
|
|
|
|
config HIDMOUSE_XTHRESH
|
|
|
|
int "X threshold"
|
|
|
|
default 12
|
|
|
|
---help---
|
|
|
|
New mouse positions will only be reported when the X or Y data changes by these
|
2014-02-10 18:53:37 +01:00
|
|
|
thresholds. This tradeoff reduces data rate for some loss in dragging accuracy.
|
2014-02-10 17:14:22 +01:00
|
|
|
Both X and Y axis thresholding can be disabled by setting this value to zero.
|
|
|
|
|
2014-02-09 20:49:31 +01:00
|
|
|
Default: 12
|
|
|
|
|
|
|
|
config HIDMOUSE_THRESHY
|
|
|
|
int "Y threshold"
|
|
|
|
default 12
|
|
|
|
---help---
|
|
|
|
New touch positions will only be reported when the X or Y data changes by these
|
2014-02-10 18:53:37 +01:00
|
|
|
thresholds. This tradeoff reduces data rate for some loss in dragging accuracy.
|
2014-02-10 17:14:22 +01:00
|
|
|
Both X and Y axis thresholding can be disabled by setting this value to zero.
|
|
|
|
|
2014-02-09 20:49:31 +01:00
|
|
|
Default: 12
|
|
|
|
|
2014-02-10 18:53:37 +01:00
|
|
|
if MOUSE_WHEEL
|
|
|
|
|
|
|
|
config HIDMOUSE_WMAX
|
|
|
|
int "Maximum wheel position"
|
|
|
|
default 320
|
|
|
|
range 0 32767
|
|
|
|
---help---
|
|
|
|
This is the maximum value of the wheel position that will be
|
|
|
|
reported. Default: 320
|
|
|
|
|
|
|
|
config HIDMOUSE_WSCALE
|
|
|
|
hex "Wheel scaling factor"
|
|
|
|
default 0x00010000
|
|
|
|
---help---
|
|
|
|
Mouse wheel position are accumulated from wheel displacements
|
|
|
|
reported by the mouse device. This setting provides a scaling
|
|
|
|
value for the wheel displacement. This is a fixed precision
|
|
|
|
floating point number with 16 bits of fraction. So a value of
|
|
|
|
0x00010000 is 1.0, 0x00018000 is 1.5, 0x00024000 is 2.25, etc.
|
|
|
|
|
|
|
|
NOTE that a negative value of HIDMOUSE_XSCALE such as 0xffff0000
|
|
|
|
(-1.0) can be used to change the direction of wheel output.
|
|
|
|
|
|
|
|
Default: 0x00010000 (1.0)
|
|
|
|
|
|
|
|
config HIDMOUSE_WTHRESH
|
|
|
|
int "Wheel threshold"
|
|
|
|
default 1
|
|
|
|
---help---
|
|
|
|
New wheel positions will only be reported when the wheel position
|
|
|
|
changes by these thresholds. This tradeoff reduces data rate for some
|
|
|
|
loss in wheel responsiveness.
|
|
|
|
|
|
|
|
Default: 1
|
|
|
|
|
|
|
|
endif # MOUSE_WHEEL
|
|
|
|
endif # USBHOST_HIDMOUSE
|
2014-02-09 20:49:31 +01:00
|
|
|
|
2014-06-09 17:11:04 +02:00
|
|
|
config USBHOST_RTL8187
|
|
|
|
bool "RTL8187-based wireless LAN"
|
|
|
|
default n
|
|
|
|
depends on NET
|
|
|
|
|
|
|
|
if USBHOST_RTL8187
|
|
|
|
|
|
|
|
config RTL8187B
|
|
|
|
bool "RTL8187B chip"
|
|
|
|
default y
|
|
|
|
|
|
|
|
config RTL8187_VID
|
|
|
|
hex "RTL8187 VID"
|
|
|
|
default 0x0bda
|
|
|
|
|
|
|
|
config RTL8187_PID
|
|
|
|
hex "RTL8187 PID"
|
|
|
|
default 0x8189
|
|
|
|
|
|
|
|
endif # USBHOST_RTL8187
|
|
|
|
|
2013-09-09 22:01:52 +02:00
|
|
|
config USBHOST_TRACE
|
|
|
|
bool "Enable USB HCD tracing for debug"
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enables USB tracing for debug. Only supported for the HCD and,
|
|
|
|
further, no supported by all HCD implementations.
|
|
|
|
|
2013-09-09 23:02:33 +02:00
|
|
|
if USBHOST_TRACE
|
|
|
|
|
2013-09-09 22:01:52 +02:00
|
|
|
config USBHOST_TRACE_NRECORDS
|
|
|
|
int "Number of trace entries to remember"
|
|
|
|
default 128
|
|
|
|
---help---
|
|
|
|
Number of trace entries to remember.
|
2013-09-09 23:02:33 +02:00
|
|
|
|
|
|
|
config USBHOST_TRACE_VERBOSE
|
|
|
|
bool "Enable verbose debug trace"
|
|
|
|
default n
|
|
|
|
---help---
|
2013-09-10 01:27:21 +02:00
|
|
|
Enable verbose trace output if supported by the platform. The
|
|
|
|
intent is that if USBHOST_TRACE_VERBOSE is not defined, then only
|
|
|
|
errors, warnings, and critical messages would be logged. If
|
|
|
|
USBHOST_TRACE_VERBOSE is defined, then general informative trace
|
|
|
|
information would also be included.
|
|
|
|
|
|
|
|
endif
|
2013-09-09 23:02:33 +02:00
|
|
|
|