diff options
| author | Ha Thach <[email protected]> | 2024-01-22 23:08:16 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-22 23:08:16 +0700 |
| commit | 57bbf3ad2baf4e47ed2a501e80cf975f2dcafad1 (patch) | |
| tree | 2662d1f78865cf6256ad0f70585ee9a66aabf382 /src/tusb_option.h | |
| parent | 938cae818f5f53887ad12e34189e6746dbce4889 (diff) | |
| parent | 769a237b19bbe5254e1c83869b463c79afb1af34 (diff) | |
Merge pull request #2391 from IngHK/cdc_ch34x_support
initial support of CH34x CDC device
Diffstat (limited to 'src/tusb_option.h')
| -rw-r--r-- | src/tusb_option.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tusb_option.h b/src/tusb_option.h index 57f026312..767323bdd 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -472,6 +472,23 @@ {0x10C4, 0xEA60}, {0x10C4, 0xEA70} #endif +#ifndef CFG_TUH_CDC_CH34X + // CH34X is not part of CDC class, only to re-use CDC driver API + #define CFG_TUH_CDC_CH34X 0 +#endif + +#ifndef CFG_TUH_CDC_CH34X_VID_PID_LIST + // List of product IDs that can use the CH34X CDC driver + #define CFG_TUH_CDC_CH34X_VID_PID_LIST \ + { 0x1a86, 0x5523 }, /* ch341 chip */ \ + { 0x1a86, 0x7522 }, /* ch340k chip */ \ + { 0x1a86, 0x7523 }, /* ch340 chip */ \ + { 0x1a86, 0xe523 }, /* ch330 chip */ \ + { 0x4348, 0x5523 }, /* ch340 custom chip */ \ + { 0x2184, 0x0057 }, /* overtaken from Linux Kernel driver /drivers/usb/serial/ch341.c */ \ + { 0x9986, 0x7523 } /* overtaken from Linux Kernel driver /drivers/usb/serial/ch341.c */ +#endif + #ifndef CFG_TUH_HID #define CFG_TUH_HID 0 #endif |
