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

@ -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