Kconfig 3.8 KB

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