Kconfig 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. # Kconfig - USB HID configuration options
  2. #
  3. # Copyright (c) 2018 Intel Corp.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0
  6. #
  7. config USB_DEVICE_HID
  8. bool
  9. prompt "USB human interface device(HID) support"
  10. default n
  11. help
  12. USB human interface device(HID) support.
  13. if USB_DEVICE_HID
  14. config USB_HID_DEVICE_IF_NUM
  15. int
  16. prompt "Interface number of hid device"
  17. default 0
  18. help
  19. Interface number of hid device.
  20. config HID_INTERRUPT_IN_EP_MPS
  21. int
  22. prompt "HID class (full-speed) interrupt IN endpoint size"
  23. default 64
  24. range 8 64
  25. help
  26. HID class interrupt in endpoint size.
  27. config HID_INTERRUPT_IN_EP_ADDR
  28. hex
  29. prompt "USB HID device interrupt in endpoint address"
  30. default 0x81
  31. range 0x81 0x8f
  32. help
  33. USB HID device interrupt in endpoint address.
  34. config USB_HID_MAX_PAYLOAD_SIZE
  35. int
  36. prompt "USB HID device payload size of interrupt endpoint"
  37. default 64
  38. range 8 1024
  39. help
  40. Max allowed payload size over USB HID interrupt endpoint.
  41. config HID_INTERRUPT_OUT
  42. bool
  43. prompt "support USB HID device interrupt out"
  44. default n
  45. help
  46. support USB HID device interrupt out.
  47. if HID_INTERRUPT_OUT
  48. config HID_INTERRUPT_OUT_EP_MPS
  49. int
  50. prompt "HID class (full-speed) interrupt OUT endpoint size"
  51. default 64
  52. range 8 64
  53. help
  54. HID class interrupt out endpoint size.
  55. config HID_INTERRUPT_OUT_EP_ADDR
  56. hex
  57. prompt "USB HID device interrupt out endpoint address"
  58. default 0x01
  59. range 0x01 0x0f
  60. help
  61. USB HID device interrupt out endpoint address.
  62. endif #HID_INTERRUPT_OUT
  63. config HID_INTERRUPT_EP_INTERVAL_HS
  64. hex
  65. prompt "USB HID device interrupt interval in High-Speed mode"
  66. default 0x4
  67. range 0x1 0x10
  68. help
  69. USB HID device interrupt interval in High-Speed mode.
  70. config HID_INTERRUPT_EP_INTERVAL_FS
  71. hex
  72. prompt "USB HID device interrupt interval in Full/Low-Speed mode"
  73. default 0x1
  74. range 0x1 0xff
  75. help
  76. USB HID device interrupt interval in Full-Speed mode.
  77. config USB_HID_DEVICE_MANUFACTURER
  78. string
  79. prompt "USB HID device manufacturer name"
  80. default "Actions"
  81. help
  82. USB hid device manufacturer string, can be configured by vendor.
  83. config USB_HID_DEVICE_PRODUCT
  84. string
  85. prompt "USB HID device product name"
  86. default "USB-HID-DEV"
  87. help
  88. USB hid device product string, can be configured by vendor.
  89. config USB_HID_DEVICE_SN
  90. string
  91. prompt "USB HID device serial number"
  92. default "0123456789AB"
  93. help
  94. USB hid device serial number string, can be configured by vendor.
  95. config USB_HID_DEVICE_SN_NVRAM
  96. string
  97. prompt "get serial number from NVRAM"
  98. default "BT_MAC"
  99. help
  100. get USB hid device serial number string from NVRAM, can be configured by vendor.
  101. config USB_HID_DEVICE_VID
  102. hex
  103. prompt "USB hid device vendor ID"
  104. default 0x10d6
  105. help
  106. USB hid device vendor ID, can be configured by vendor.
  107. config USB_HID_DEVICE_PID
  108. hex
  109. prompt "USB hid device product ID"
  110. default 0xb012
  111. help
  112. USB hid device product ID, can be configured by vendor.
  113. config HID_REPORT_DESC_SIZE
  114. int
  115. prompt "USB HID device hid report descriptor size."
  116. default 64
  117. help
  118. USB HID device hid report descriptor size.
  119. config USB_SELF_DEFINED_REPORT
  120. bool
  121. prompt "Support HID class device self-defined report"
  122. default n
  123. help
  124. Support HID class device self-defined report.
  125. config SYS_LOG_USB_HID_LEVEL
  126. int "USB HID device class driver log level"
  127. depends on LOG
  128. default 0
  129. help
  130. Sets log level for USB HID device class driver.
  131. Levels are:
  132. - 0 OFF, do not write
  133. - 1 ERROR, only write LOG_ERR
  134. - 2 WARNING, write LOG_WRN in addition to previous level
  135. - 3 INFO, write LOG_INF in addition to previous levels
  136. - 4 DEBUG, write LOG_DBG in addition to previous levels
  137. endif #USB_DEVICE_HID