8000 TinyUSB adjust · johnsonm/arduino-esp32@d12af93 · GitHub
[go: up one dir, main page]

Skip to content

Commit d12af93

Browse files
committed
TinyUSB adjust
1 parent 7e9d75a commit d12af93

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+36
-21
lines changed

tools/sdk/esp32s2/include/config/sdkconfig.h

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -353,21 +353,30 @@
353353
#define CONFIG_SPIFFS_META_LENGTH 4
354354
#define CONFIG_SPIFFS_USE_MTIME 1
355355
#define CONFIG_USB_ENABLED 1
356-
#define CONFIG_USB_MAX_POWER_USAGE 100
356+
#define CONFIG_USB_MAX_POWER_USAGE 500
357357
#define CONFIG_USB_CDC_ENABLED 1
358-
#define CONFIG_USB_CDC_RX_BUFSIZE 64
359-
#define CONFIG_USB_CDC_TX_BUFSIZE 64
358+
#define CONFIG_USB_CDC_RX_BUFSIZE 1024
359+
#define CONFIG_USB_CDC_TX_BUFSIZE 1024
360360
#define CONFIG_USB_MSC_ENABLED 1
361361
#define CONFIG_USB_MSC_BUFSIZE 512
362+
#define CONFIG_USB_HID_ENABLED 1
363+
#define CONFIG_USB_HID_BUFSIZE 16
364+
#define CONFIG_USB_MIDI_ENABLED 1
365+
#define CONFIG_USB_MIDI_RX_BUFSIZE 64
366+
#define CONFIG_USB_MIDI_TX_BUFSIZE 64
362367
#define CONFIG_USB_VENDOR_ENABLED 1
368+
#define CONFIG_USB_CUSTOM_CLASS_ENABLED 1
369+
#define CONFIG_USB_DEBUG 1
363370
#define CONFIG_USB_DESC_USE_ESPRESSIF_VID 1
364371
#define CONFIG_USB_DESC_USE_DEFAULT_PID 1
365-
#define CONFIG_USB_DESC_BCDDEVICE 0x0100
366-
#define CONFIG_USB_DESC_MANUFACTURER_STRING "Espressif Systems"
367-
#define CONFIG_USB_DESC_PRODUCT_STRING "Espressif Device"
368-
#define CONFIG_USB_DESC_SERIAL_STRING "123456"
372+
#define CONFIG_USB_DESC_BCDDEVICE 0x0723
373+
#define CONFIG_USB_DESC_MANUFACTURER_STRING "Espressif"
374+
#define CONFIG_USB_DESC_PRODUCT_STRING "ESP32-S2"
375+
#define CONFIG_USB_DESC_SERIAL_STRING "0"
369376
#define CONFIG_USB_DESC_CDC_STRING "Espressif CDC Device"
370377
#define CONFIG_USB_DESC_MSC_STRING "Espressif MSC Device"
378+
#define CONFIG_USB_DESC_MIDI_STRING "Espressif MIDI Device"
379+
#define CONFIG_USB_DESC_HID_STRING "Espressif HID Device"
371380
#define CONFIG_USB_DESC_VENDOR_STRING "Espressif VENDOR Device"
372381
#define CONFIG_UNITY_ENABLE_FLOAT 1
373382
#define CONFIG_UNITY_ENABLE_DOUBLE 1

tools/sdk/esp32s2/include/tinyusb/port/common/include/descriptors_control.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
* Auto ProductID layout's Bitmap:
2525
* [MSB] HID | MSC | CDC [LSB]
2626
*/
27-
#define EPNUM_MSC 0x03
28-
#define EPNUM_VENDOR 0x06
29-
#define EPNUM_MIDI 0x05
27+
#define EPNUM_MSC 0x01
28+
#define EPNUM_HID 0x02
29+
#define EPNUM_MIDI 0x06
30+
#define EPNUM_VENDOR 0x07
3031

3132
#ifdef __cplusplus
3233
extern "C" {

tools/sdk/esp32s2/lib/libapp_trace.a

0 Bytes
Binary file not shown.

tools/sdk/esp32s2/lib/libapp_update.a

0 Bytes
Binary file not shown.

tools/sdk/esp32s2/lib/libasio.a

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

tools/sdk/esp32s2/lib/libcbor.a

0 Bytes
Binary file not shown.

tools/sdk/esp32s2/lib/libcoap.a

0 Bytes
Binary file not shown.

tools/sdk/esp32s2/lib/libconsole.a

0 Bytes
Binary file not shown.

tools/sdk/esp32s2/lib/libcxx.a

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
0