Kconfig 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see misc/tools/kconfig-language.txt.
  4. #
  5. config USBHOST_NPREALLOC
  6. int "Number of pre-allocated class instances"
  7. default 4
  8. ---help---
  9. Number of pre-allocated class instances
  10. config USBHOST_BULK_DISABLE
  11. bool "Disable bulk endpoint support"
  12. default n
  13. ---help---
  14. On some architectures, selecting this setting will reduce driver size
  15. by disabling bulk endpoint support
  16. config USBHOST_INT_DISABLE
  17. bool "Disable interrupt endpoint support"
  18. default n
  19. ---help---
  20. On some architectures, selecting this setting will reduce driver size
  21. by disabling interrupt endpoint support
  22. config USBHOST_ISOC_DISABLE
  23. bool "Disable isochronous endpoint support"
  24. default n
  25. ---help---
  26. On some architectures, selecting this setting will reduce driver size
  27. by disabling isochronous endpoint support
  28. config USBHOST_MSC
  29. bool "Mass Storage Class Support"
  30. default n
  31. depends on !BULK_DISABLE
  32. ---help---
  33. Enable support for the keyboard class driver. This also depends on
  34. NFILE_DESCRIPTORS > 0 && SCHED_WORKQUEUE=y
  35. config USBHOST_HIDKBD
  36. bool "HID Keyboard Class Support"
  37. default n
  38. depends on !INT_DISABLE
  39. ---help---
  40. Enable support for the keyboard class driver. This also depends on
  41. SCHED_WORKQUEUE && !DISABLE_SIGNALS
  42. if USBHOST_HIDKBD
  43. config HIDKBD_POLLUSEC
  44. int "Keyboard Poll Rate (MSEC)"
  45. default 100000
  46. ---help---
  47. Device poll rate in microseconds. Default: 100,000 microseconds.
  48. config HIDKBD_DEFPRIO
  49. int "Polling Thread Priority"
  50. default 50
  51. ---help---
  52. Priority of the polling thread. Default: 50.
  53. config HIDKBD_STACKSIZE
  54. int "Polling thread stack size"
  55. default 1024
  56. ---help---
  57. Stack size for polling thread. Default: 1024
  58. config HIDKBD_BUFSIZE
  59. int "Scancode Buffer Size"
  60. default 64
  61. ---help---
  62. Scancode buffer size. Default: 64.
  63. config HIDKBD_NPOLLWAITERS
  64. int "Max Number of Waiters for Poll Event"
  65. default 2
  66. depends on !DISABLE_POLL
  67. ---help---
  68. If the poll() method is enabled, this defines the maximum number
  69. of threads that can be waiting for keyboard events. Default: 2.
  70. config HIDKBD_RAWSCANCODES
  71. bool "Use Raw Scan Codes"
  72. default n
  73. ---help---
  74. If set to y no conversions will be made on the raw keyboard scan
  75. codes. This option is useful during testing. Default: ASCII conversion.
  76. config HIDKBD_ENCODED
  77. bool "Encode Special Keys"
  78. default n
  79. depends on !HIDKBD_RAWSCANCODES && LIB_KBDCODEC
  80. ---help---
  81. Encode special key press events in the user buffer. In this case,
  82. the user end must decode the encoded special key values using the
  83. interfaces defined in include/nuttx/input/kbd_codec.h. These
  84. special keys include such things as up/down arrows, home and end
  85. keys, etc. If this not defined, only 7-bit print-able and control
  86. ASCII characters will be provided to the user.
  87. config HIDKBD_ALLSCANCODES
  88. bool "Use All Scancodes"
  89. default n
  90. ---help---
  91. If set to y all 231 possible scancodes will be converted to
  92. something. Default: 104 key US keyboard.
  93. config HIDKBD_NODEBOUNCE
  94. bool "Disable Debounce"
  95. default n
  96. ---help---
  97. If set to y normal debouncing is disabled. Default:
  98. Debounce enabled (No repeat keys).
  99. endif