Kconfig 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. endmenu # "Descriptor configuration"
  94. menu "Massive Storage Class (MSC)"
  95. config TINYUSB_MSC_ENABLED
  96. bool "Enable TinyUSB MSC feature"
  97. default n
  98. help
  99. Enable TinyUSB MSC feature.
  100. config TINYUSB_MSC_BUFSIZE
  101. depends on TINYUSB_MSC_ENABLED
  102. int "MSC FIFO size"
  103. default 512
  104. range 64 10000
  105. help
  106. MSC FIFO size, in bytes.
  107. endmenu # "Massive Storage Class"
  108. menu "Communication Device Class (CDC)"
  109. config TINYUSB_CDC_ENABLED
  110. bool "Enable TinyUSB CDC feature"
  111. default n
  112. help
  113. Enable TinyUSB CDC feature.
  114. config TINYUSB_CDC_COUNT
  115. int "CDC Channel Count"
  116. default 1
  117. range 1 2
  118. depends on TINYUSB_CDC_ENABLED
  119. help
  120. Number of independent serial ports.
  121. config TINYUSB_CDC_RX_BUFSIZE
  122. depends on TINYUSB_CDC_ENABLED
  123. int "CDC FIFO size of RX channel"
  124. default 64
  125. range 64 10000
  126. help
  127. CDC FIFO size of RX channel.
  128. config TINYUSB_CDC_TX_BUFSIZE
  129. depends on TINYUSB_CDC_ENABLED
  130. int "CDC FIFO size of TX channel"
  131. default 64
  132. help
  133. CDC FIFO size of TX channel.
  134. endmenu # "Communication Device Class"
  135. menu "Musical Instrument Digital Interface (MIDI)"
  136. config TINYUSB_MIDI_COUNT
  137. int "TinyUSB MIDI interfaces count"
  138. default 0
  139. range 0 2
  140. help
  141. Setting value greater than 0 will enable TinyUSB MIDI feature.
  142. endmenu # "Musical Instrument Digital Interface (MIDI)"
  143. menu "Human Interface Device Class (HID)"
  144. config TINYUSB_HID_COUNT
  145. int "TinyUSB HID interfaces count"
  146. default 0
  147. range 0 4
  148. help
  149. Setting value greater than 0 will enable TinyUSB HID feature.
  150. endmenu # "HID Device Class (HID)"
  151. endif # TINYUSB
  152. endmenu # "TinyUSB Stack"