Skip to content

Commit fe5a155

Browse files
committed
fix esp32 out of sync with esp core v2.0.14
1 parent 208f6c8 commit fe5a155

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/class/cdc/cdc_host.c

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,33 @@
3030
// ESP32 out-of-sync
3131
#ifdef ARDUINO_ARCH_ESP32
3232
#include "arduino/ports/esp32/tusb_config_esp32.h"
33+
34+
#ifndef CFG_TUH_CDC_FTDI_VID_PID_LIST
35+
// List of product IDs that can use the FTDI CDC driver. 0x0403 is FTDI's VID
36+
#define CFG_TUH_CDC_FTDI_VID_PID_LIST \
37+
{0x0403, 0x6001}, {0x0403, 0x6006}, {0x0403, 0x6010}, {0x0403, 0x6011}, \
38+
{0x0403, 0x6014}, {0x0403, 0x6015}, {0x0403, 0x8372}, {0x0403, 0xFBFA}, \
39+
{0x0403, 0xCD18}
40+
#endif
41+
42+
#ifndef CFG_TUH_CDC_CP210X_VID_PID_LIST
43+
// List of product IDs that can use the CP210X CDC driver. 0x10C4 is Silicon Labs' VID
44+
#define CFG_TUH_CDC_CP210X_VID_PID_LIST \
45+
{0x10C4, 0xEA60}, {0x10C4, 0xEA70}
46+
#endif
47+
48+
#ifndef CFG_TUH_CDC_CH34X_VID_PID_LIST
49+
// List of product IDs that can use the CH34X CDC driver
50+
#define CFG_TUH_CDC_CH34X_VID_PID_LIST \
51+
{ 0x1a86, 0x5523 }, /* ch341 chip */ \
52+
{ 0x1a86, 0x7522 }, /* ch340k chip */ \
53+
{ 0x1a86, 0x7523 }, /* ch340 chip */ \
54+
{ 0x1a86, 0xe523 }, /* ch330 chip */ \
55+
{ 0x4348, 0x5523 }, /* ch340 custom chip */ \
56+
{ 0x2184, 0x0057 }, /* overtaken from Linux Kernel driver /drivers/usb/serial/ch341.c */ \
57+
{ 0x9986, 0x7523 } /* overtaken from Linux Kernel driver /drivers/usb/serial/ch341.c */
58+
#endif
59+
3360
#endif
3461

3562
#include "tusb_option.h"

0 commit comments

Comments
 (0)