Kconfig 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. menu "TinyUSB Stack"
  2. visible if USB_OTG_SUPPORTED
  3. config TINYUSB
  4. bool "Use TinyUSB Stack"
  5. depends on USB_OTG_SUPPORTED
  6. default n
  7. help
  8. Enable TinyUSB stack support.
  9. Note that, esp-idf only uses the device stack provided by TinyUSB.
  10. if TINYUSB
  11. config TINYUSB_DEBUG_LEVEL
  12. int "TinyUSB log level (0-3)"
  13. default 0
  14. range 0 3
  15. help
  16. Specify verbosity of TinyUSB log output.
  17. menu "TinyUSB task configuration"
  18. config TINYUSB_NO_DEFAULT_TASK
  19. bool "Do not create a TinyUSB task"
  20. default n
  21. help
  22. This option allows to not create the FreeRTOS task during the driver initialization.
  23. User will have to handle TinyUSB events manually.
  24. config TINYUSB_TASK_PRIORITY
  25. int "TinyUSB task priority"
  26. default 5
  27. depends on !TINYUSB_NO_DEFAULT_TASK
  28. help
  29. Set the priority of the default TinyUSB main task.
  30. config TINYUSB_TASK_STACK_SIZE
  31. int "TinyUSB task stack size (bytes)"
  32. default 4096
  33. depends on !TINYUSB_NO_DEFAULT_TASK
  34. help
  35. Set the stack size of the default TinyUSB main task.
  36. endmenu
  37. menu "Descriptor configuration"
  38. config TINYUSB_DESC_USE_ESPRESSIF_VID
  39. bool "VID: Use Espressif's vendor ID"
  40. default y
  41. help
  42. Enable this option, USB device will use Espressif's vendor ID as its VID.
  43. This is helpful at product develop stage.
  44. config TINYUSB_DESC_CUSTOM_VID
  45. hex "VID: Custom vendor ID"
  46. default 0x1234
  47. depends on !TINYUSB_DESC_USE_ESPRESSIF_VID
  48. help
  49. Custom Vendor ID.
  50. config TINYUSB_DESC_USE_DEFAULT_PID
  51. bool "PID: Use a default PID assigned to TinyUSB"
  52. default y
  53. help
  54. Default TinyUSB PID assigning uses values 0x4000...0x4007.
  55. config TINYUSB_DESC_CUSTOM_PID
  56. hex "PID: Custom product ID"
  57. default 0x5678
  58. depends on !TINYUSB_DESC_USE_DEFAULT_PID
  59. help
  60. Custom Product ID.
  61. config TINYUSB_DESC_BCD_DEVICE
  62. hex "bcdDevice"
  63. default 0x0100
  64. help
  65. Version of the firmware of the USB device.
  66. config TINYUSB_DESC_MANUFACTURER_STRING
  67. string "Manufacturer name"
  68. default "Espressif Systems"
  69. help
  70. Name of the manufacturer of the USB device.
  71. config TINYUSB_DESC_PRODUCT_STRING
  72. string "Product name"
  73. default "Espressif Device"
  74. help
  75. Name of the USB device.
  76. config TINYUSB_DESC_SERIAL_STRING
  77. string "Serial string"
  78. default "123456"
  79. help
  80. Serial number of the USB device.
  81. config TINYUSB_DESC_CDC_STRING
  82. depends on TINYUSB_CDC_ENABLED
  83. string "CDC Device String"
  84. default "Espressif CDC Device"
  85. help
  86. Name of the CDC device.
  87. config TINYUSB_DESC_MSC_STRING
  88. depends on TINYUSB_MSC_ENABLED
  89. string "MSC Device String"
  90. default "Espressif MSC Device"
  91. help
  92. Name of the MSC device.
  93. config TINYUSB_DESC_HID_STRING
  94. depends on TINYUSB_HID_COUNT > 0
  95. string "HID Device String"
  96. default "Espressif HID Device"
  97. help
  98. Name of the HID device
  99. config TINYUSB_DESC_MIDI_STRING
  100. depends on TINYUSB_MIDI_ENABLED
  101. string "MIDI Device String"
  102. default "Espressif MIDI Device"
  103. help
  104. Name of the MIDI device
  105. endmenu # "Descriptor configuration"
  106. menu "Massive Storage Class (MSC)"
  107. config TINYUSB_MSC_ENABLED
  108. bool "Enable TinyUSB MSC feature"
  109. default n
  110. help
  111. Enable TinyUSB MSC feature.
  112. config TINYUSB_MSC_BUFSIZE
  113. depends on TINYUSB_MSC_ENABLED
  114. int "MSC FIFO size"
  115. default 512
  116. range 64 10000
  117. help
  118. MSC FIFO size, in bytes.
  119. endmenu # "Massive Storage Class"
  120. menu "Communication Device Class (CDC)"
  121. config TINYUSB_CDC_ENABLED
  122. bool "Enable TinyUSB CDC feature"
  123. default n
  124. help
  125. Enable TinyUSB CDC feature.
  126. config TINYUSB_CDC_COUNT
  127. int "CDC Channel Count"
  128. default 1
  129. range 1 2
  130. depends on TINYUSB_CDC_ENABLED
  131. help
  132. Number of independent serial ports.
  133. config TINYUSB_CDC_RX_BUFSIZE
  134. depends on TINYUSB_CDC_ENABLED
  135. int "CDC FIFO size of RX channel"
  136. default 64
  137. range 64 10000
  138. help
  139. CDC FIFO size of RX channel.
  140. config TINYUSB_CDC_TX_BUFSIZE
  141. depends on TINYUSB_CDC_ENABLED
  142. int "CDC FIFO size of TX channel"
  143. default 64
  144. help
  145. CDC FIFO size of TX channel.
  146. endmenu # "Communication Device Class"
  147. menu "MIDI"
  148. config TINYUSB_MIDI_ENABLED
  149. bool "Enable TinyUSB MIDI feature"
  150. default n
  151. help
  152. Enable TinyUSB MIDI feature.
  153. endmenu # "MIDI"
  154. menu "Human Interface Device Class (HID)"
  155. config TINYUSB_HID_COUNT
  156. int "TinyUSB HID interfaces count"
  157. default 0
  158. range 0 4
  159. help
  160. Setting value greater than 0 will enable TinyUSB HID feature.
  161. endmenu # "HID Device Class (HID)"
  162. endif # TINYUSB
  163. endmenu # "TinyUSB Stack"