Try custom device descriptors

This commit is contained in:
me-no-dev
2020-06-01 18:09:38 +03:00
parent 93c97aac1c
commit 0df54ea169
4 changed files with 23 additions and 10 deletions

View File

@ -365,14 +365,14 @@
#define CONFIG_USB_MIDI_RX_BUFSIZE 64
#define CONFIG_USB_MIDI_TX_BUFSIZE 64
#define CONFIG_USB_VENDOR_ENABLED 1
#define CONFIG_USB_CUSTOM_CLASS_ENABLED 1
#define CONFIG_USB_DEBUG 1
#define CONFIG_USB_DFU_RT_ENABLED 1
#define CONFIG_USB_NET_ENABLED 1
#define CONFIG_USB_DESC_USE_ESPRESSIF_VID 1
#define CONFIG_USB_DESC_USE_DEFAULT_PID 1
#define CONFIG_USB_DESC_BCDDEVICE 0x0723
#define CONFIG_USB_DESC_BCDDEVICE 0x0100
#define CONFIG_USB_DESC_MANUFACTURER_STRING "Espressif"
#define CONFIG_USB_DESC_PRODUCT_STRING "ESP32-S2"
#define CONFIG_USB_DESC_SERIAL_STRING "0"
#define CONFIG_USB_DESC_PRODUCT_STRING "Espressif Device"
#define CONFIG_USB_DESC_SERIAL_STRING "123456"
#define CONFIG_USB_DESC_CDC_STRING "Espressif CDC Device"
#define CONFIG_USB_DESC_MSC_STRING "Espressif MSC Device"
#define CONFIG_USB_DESC_MIDI_STRING "Espressif MIDI Device"

View File

@ -89,6 +89,14 @@ extern "C" {
# define CONFIG_USB_CUSTOM_CLASS_ENABLED 0
#endif
#ifndef CONFIG_USB_DFU_RT_ENABLED
# define CONFIG_USB_DFU_RT_ENABLED 0
#endif
#ifndef CONFIG_USB_NET_ENABLED
# define CONFIG_USB_NET_ENABLED 0
#endif
#ifndef CONFIG_USB_VENDOR_ENABLED
# define CONFIG_USB_VENDOR_ENABLED 0
#endif
@ -97,6 +105,8 @@ extern "C" {
#define CFG_TUD_CDC CONFIG_USB_CDC_ENABLED
#define CFG_TUD_MSC CONFIG_USB_MSC_ENABLED
#define CFG_TUD_HID CONFIG_USB_HID_ENABLED
#define CFG_TUD_DFU_RT CONFIG_USB_DFU_RT_ENABLED
#define CFG_TUD_NET CONFIG_USB_NET_ENABLED
#define CFG_TUD_MIDI CONFIG_USB_MIDI_ENABLED
#define CFG_TUD_CUSTOM_CLASS CONFIG_USB_CUSTOM_CLASS_ENABLED