TinyUSB adjust

This commit is contained in:
me-no-dev
2020-06-01 12:54:09 +03:00
parent 1f53f28481
commit 146878768c
72 changed files with 36 additions and 21 deletions

View File

@ -353,21 +353,30 @@
#define CONFIG_SPIFFS_META_LENGTH 4
#define CONFIG_SPIFFS_USE_MTIME 1
#define CONFIG_USB_ENABLED 1
#define CONFIG_USB_MAX_POWER_USAGE 100
#define CONFIG_USB_MAX_POWER_USAGE 500
#define CONFIG_USB_CDC_ENABLED 1
#define CONFIG_USB_CDC_RX_BUFSIZE 64
#define CONFIG_USB_CDC_TX_BUFSIZE 64
#define CONFIG_USB_CDC_RX_BUFSIZE 1024
#define CONFIG_USB_CDC_TX_BUFSIZE 1024
#define CONFIG_USB_MSC_ENABLED 1
#define CONFIG_USB_MSC_BUFSIZE 512
#define CONFIG_USB_HID_ENABLED 1
#define CONFIG_USB_HID_BUFSIZE 16
#define CONFIG_USB_MIDI_ENABLED 1
#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_DESC_USE_ESPRESSIF_VID 1
#define CONFIG_USB_DESC_USE_DEFAULT_PID 1
#define CONFIG_USB_DESC_BCDDEVICE 0x0100
#define CONFIG_USB_DESC_MANUFACTURER_STRING "Espressif Systems"
#define CONFIG_USB_DESC_PRODUCT_STRING "Espressif Device"
#define CONFIG_USB_DESC_SERIAL_STRING "123456"
#define CONFIG_USB_DESC_BCDDEVICE 0x0723
#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_CDC_STRING "Espressif CDC Device"
#define CONFIG_USB_DESC_MSC_STRING "Espressif MSC Device"
#define CONFIG_USB_DESC_MIDI_STRING "Espressif MIDI Device"
#define CONFIG_USB_DESC_HID_STRING "Espressif HID Device"
#define CONFIG_USB_DESC_VENDOR_STRING "Espressif VENDOR Device"
#define CONFIG_UNITY_ENABLE_FLOAT 1
#define CONFIG_UNITY_ENABLE_DOUBLE 1

View File

@ -24,9 +24,10 @@
* Auto ProductID layout's Bitmap:
* [MSB] HID | MSC | CDC [LSB]
*/
#define EPNUM_MSC 0x03
#define EPNUM_VENDOR 0x06
#define EPNUM_MIDI 0x05
#define EPNUM_MSC 0x01
#define EPNUM_HID 0x02
#define EPNUM_MIDI 0x06
#define EPNUM_VENDOR 0x07
#ifdef __cplusplus
extern "C" {

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -987,29 +987,34 @@ CONFIG_SPIFFS_USE_MTIME=y
# TinyUSB
#
CONFIG_USB_ENABLED=y
CONFIG_USB_MAX_POWER_USAGE=100
CONFIG_USB_MAX_POWER_USAGE=500
CONFIG_USB_CDC_ENABLED=y
CONFIG_USB_CDC_RX_BUFSIZE=64
CONFIG_USB_CDC_TX_BUFSIZE=64
CONFIG_USB_CDC_RX_BUFSIZE=1024
CONFIG_USB_CDC_TX_BUFSIZE=1024
CONFIG_USB_MSC_ENABLED=y
CONFIG_USB_MSC_BUFSIZE=512
# CONFIG_USB_HID_ENABLED is not set
# CONFIG_USB_MIDI_ENABLED is not set
CONFIG_USB_HID_ENABLED=y
CONFIG_USB_HID_BUFSIZE=16
CONFIG_USB_MIDI_ENABLED=y
CONFIG_USB_MIDI_RX_BUFSIZE=64
CONFIG_USB_MIDI_TX_BUFSIZE=64
CONFIG_USB_VENDOR_ENABLED=y
# CONFIG_USB_CUSTOM_CLASS_ENABLED is not set
# CONFIG_USB_DEBUG is not set
CONFIG_USB_CUSTOM_CLASS_ENABLED=y
CONFIG_USB_DEBUG=y
#
# Descriptor configuration
#
CONFIG_USB_DESC_USE_ESPRESSIF_VID=y
CONFIG_USB_DESC_USE_DEFAULT_PID=y
CONFIG_USB_DESC_BCDDEVICE=0x0100
CONFIG_USB_DESC_MANUFACTURER_STRING="Espressif Systems"
CONFIG_USB_DESC_PRODUCT_STRING="Espressif Device"
CONFIG_USB_DESC_SERIAL_STRING="123456"
CONFIG_USB_DESC_BCDDEVICE=0x0723
CONFIG_USB_DESC_MANUFACTURER_STRING="Espressif"
CONFIG_USB_DESC_PRODUCT_STRING="ESP32-S2"
CONFIG_USB_DESC_SERIAL_STRING="0"
CONFIG_USB_DESC_CDC_STRING="Espressif CDC Device"
CONFIG_USB_DESC_MSC_STRING="Espressif MSC Device"
CONFIG_USB_DESC_MIDI_STRING="Espressif MIDI Device"
CONFIG_USB_DESC_HID_STRING="Espressif HID Device"
CONFIG_USB_DESC_VENDOR_STRING="Espressif VENDOR Device"
# end of Descriptor configuration
# end of TinyUSB