Kconfig 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. menu "TinyUSB"
  2. config USB_ENABLED
  3. bool "Enable TinyUSB driver"
  4. default n
  5. depends on IDF_TARGET_ESP32S2
  6. select FREERTOS_USE_AUTHENTIC_INCLUDE_PATHS
  7. help
  8. Adds support for TinyUSB
  9. menu "USB task configuration"
  10. depends on USB_ENABLED
  11. config USB_DO_NOT_CREATE_TASK
  12. bool "Do not create a TinyUSB task"
  13. default n
  14. help
  15. This option allows to not create the FreeRTOS task during the driver initialization. User will have
  16. to handle TinyUSB events manually
  17. config USB_TASK_PRIORITY
  18. int "Set a priority of the TinyUSB task"
  19. default 5
  20. depends on !USB_DO_NOT_CREATE_TASK
  21. help
  22. User can change the priority of the main task according the application needs
  23. endmenu
  24. menu "Descriptor configuration"
  25. depends on USB_ENABLED
  26. config USB_DESC_USE_ESPRESSIF_VID
  27. bool "VID: Use an Espressif's default value"
  28. default y
  29. help
  30. Long description
  31. config USB_DESC_CUSTOM_VID
  32. hex "Custom VID value"
  33. default 0x1234
  34. depends on !USB_DESC_USE_ESPRESSIF_VID
  35. help
  36. Custom Vendor ID
  37. config USB_DESC_USE_DEFAULT_PID
  38. bool "PID: Use a default PID assigning"
  39. default y
  40. help
  41. Default TinyUSB PID assigning uses values 0x4000...0x4007
  42. config USB_DESC_CUSTOM_PID
  43. hex "Custom PID value"
  44. default 0x5678
  45. depends on !USB_DESC_USE_DEFAULT_PID
  46. help
  47. Custom Product ID
  48. config USB_DESC_BCDDEVICE
  49. hex "bcdDevice"
  50. default 0x0100
  51. help
  52. Version of the firmware of the USB device
  53. config USB_DESC_MANUFACTURER_STRING
  54. string "Manufacturer"
  55. default "Espressif Systems"
  56. help
  57. Name of the manufacturer of the USB device
  58. config USB_DESC_PRODUCT_STRING
  59. string "Product"
  60. default "Espressif Device"
  61. help
  62. Name of the USB device
  63. config USB_DESC_SERIAL_STRING
  64. string "Serial string"
  65. default "123456"
  66. help
  67. Specify serial number of the USB device
  68. config USB_DESC_CDC_STRING
  69. string "CDC Device String"
  70. default "Espressif CDC Device"
  71. depends on USB_CDC_ENABLED
  72. help
  73. Specify name of the CDC device
  74. config USB_DESC_MSC_STRING
  75. string "MSC Device String"
  76. default "Espressif MSC Device"
  77. depends on USB_MSC_ENABLED
  78. help
  79. Specify name of the MSC device
  80. config USB_DESC_HID_STRING
  81. string "HID Device String"
  82. default "Espressif HID Device"
  83. depends on USB_HID_ENABLED
  84. help
  85. Specify name of the HID device
  86. endmenu
  87. config USB_MSC_ENABLED
  88. bool "Enable USB MSC TinyUSB driver"
  89. default n
  90. depends on USB_ENABLED
  91. help
  92. Enable USB MSC TinyUSB driver.
  93. config USB_MSC_BUFSIZE
  94. int "MSC FIFO size"
  95. default 512
  96. depends on USB_MSC_ENABLED
  97. help
  98. MSC FIFO size
  99. config USB_CDC_ENABLED
  100. bool "Enable USB Serial (CDC) TinyUSB driver"
  101. default n
  102. depends on USB_ENABLED
  103. help
  104. Enable USB Serial (CDC) TinyUSB driver.
  105. config USB_CDC_RX_BUFSIZE
  106. int "CDC FIFO size of RX"
  107. default 64
  108. depends on USB_CDC_ENABLED
  109. help
  110. CDC FIFO size of RX
  111. config USB_CDC_TX_BUFSIZE
  112. int "CDC FIFO size of TX"
  113. default 64
  114. depends on USB_CDC_ENABLED
  115. help
  116. CDC FIFO size of TX
  117. config USB_DEBUG_LEVEL
  118. int "TinyUSB log level (0-3)"
  119. default 0
  120. range 0 3
  121. depends on USB_ENABLED
  122. help
  123. Define amount of log output from TinyUSB
  124. endmenu