Kconfig 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. menu "TinyUSB"
  2. config USB_ENABLED
  3. bool "Enable TinyUSB driver"
  4. default n
  5. depends on IDF_TARGET_ESP32S2
  6. select FREERTOS_SUPPORT_STATIC_ALLOCATION
  7. select FREERTOS_USE_AUTHENTIC_INCLUDE_PATHS
  8. help
  9. Adds support for TinyUSB
  10. config USB_CDC_ENABLED
  11. bool "Enable USB Serial (CDC) TinyUSB driver"
  12. default n
  13. depends on USB_ENABLED
  14. help
  15. Enable USB Serial (CDC) TinyUSB driver.
  16. config USB_CDC_RX_BUFSIZE
  17. int "CDC FIFO size of RX"
  18. default 64
  19. depends on USB_CDC_ENABLED
  20. help
  21. CDC FIFO size of RX
  22. config USB_CDC_TX_BUFSIZE
  23. int "CDC FIFO size of TX"
  24. default 64
  25. depends on USB_CDC_ENABLED
  26. help
  27. CDC FIFO size of TX
  28. config USB_MSC_ENABLED
  29. bool "Enable Mass Storage (MSC) TinyUSB driver"
  30. default n
  31. depends on USB_ENABLED
  32. help
  33. Enable MSC TinyUSB driver. It is recomended to use Menuconfig-driven descriptor (.descriptor = NULL and
  34. .string_descriptor = NULL in the tinyusb_config_t structure).
  35. config USB_MSC_BUFSIZE
  36. int "MSC Buffer size of Device Mass storage"
  37. default 512
  38. depends on USB_MSC_ENABLED
  39. help
  40. MSC Buffer size of Device Mass storage
  41. config USB_HID_ENABLED
  42. bool "Enable HID TinyUSB driver"
  43. default n
  44. depends on USB_ENABLED
  45. help
  46. Enable HID TinyUSB driver. It is recomended to use Menuconfig-driven descriptor (.descriptor = NULL and
  47. .string_descriptor = NULL in the tinyusb_config_t structure).
  48. config USB_HID_BUFSIZE
  49. int "HID buffer size Should be sufficient to hold ID (if any) + Data"
  50. default 16
  51. depends on USB_HID_ENABLED
  52. help
  53. HID buffer size Should be sufficient to hold ID (if any) + Data
  54. config USB_MIDI_ENABLED
  55. bool "Enable MIDI TinyUSB driver"
  56. default n
  57. depends on USB_ENABLED
  58. help
  59. Enable MIDI TinyUSB driver. It is recomended to use Menuconfig-driven descriptor (.descriptor = NULL
  60. and .string_descriptor = NULL in the tinyusb_config_t structure).
  61. config USB_CUSTOM_CLASS_ENABLED
  62. bool "Enable a custom TinyUSB class"
  63. default n
  64. depends on USB_ENABLED
  65. help
  66. Enable a custom TinyUSB class. It is recomended to use Menuconfig-driven descriptor (.descriptor = NULL
  67. and .string_descriptor = NULL in the tinyusb_config_t structure).
  68. config USB_DEBUG
  69. bool "Debug mode"
  70. default n
  71. depends on USB_ENABLED
  72. help
  73. Debug mode
  74. menu "Descriptor configuration"
  75. config USB_DESC_USE_ESPRESSIF_VID
  76. bool "VID: Use an Espressif's default value"
  77. default y
  78. depends on USB_ENABLED
  79. help
  80. Long description
  81. config USB_DESC_CUSTOM_VID
  82. hex "Custom VID value"
  83. default 0x1234
  84. depends on !USB_DESC_USE_ESPRESSIF_VID
  85. help
  86. Custom Vendor ID
  87. config USB_DESC_USE_DEFAULT_PID
  88. bool "PID: Use a default PID assigning"
  89. default y
  90. depends on USB_ENABLED
  91. help
  92. Default TinyUSB PID assigning uses values 0x4000...0x4007
  93. config USB_DESC_CUSTOM_PID
  94. hex "Custom PID value"
  95. default 0x5678
  96. depends on !USB_DESC_USE_DEFAULT_PID
  97. help
  98. Custom Product ID
  99. config USB_DESC_BCDDEVICE
  100. hex "bcdDevice"
  101. default 0x0100
  102. depends on USB_ENABLED
  103. help
  104. Version of the firmware of the USB device
  105. config USB_DESC_MANUFACTURER_STRING
  106. string "Manufacturer"
  107. default "Espressif Systems"
  108. depends on USB_ENABLED
  109. help
  110. Name of the manufacturer of the USB device
  111. config USB_DESC_PRODUCT_STRING
  112. string "Product"
  113. default "Espressif Device"
  114. depends on USB_ENABLED
  115. help
  116. Name of the USB device
  117. config USB_DESC_SERIAL_STRING
  118. string "Serial string"
  119. default "123456"
  120. depends on USB_ENABLED
  121. help
  122. Specify serial number of the USB device
  123. config USB_DESC_CDC_STRING
  124. string "CDC Device String"
  125. default "Espressif CDC Device"
  126. depends on USB_CDC_ENABLED
  127. help
  128. Specify name of the CDC device
  129. config USB_DESC_MSC_STRING
  130. string "MSC Device String"
  131. default "Espressif MSC Device"
  132. depends on USB_MSC_ENABLED
  133. help
  134. Specify name of the MSC device
  135. config USB_DESC_HID_STRING
  136. string "HID Device String"
  137. default "Espressif HID Device"
  138. depends on USB_HID_ENABLED
  139. help
  140. Specify name of the HID device
  141. endmenu
  142. endmenu