CDCh host: further work on CH340/CH341 support

This commit is contained in:
IngHK
2024-01-16 08:07:22 +01:00
parent 43e655b896
commit 4e6408ea49
7 changed files with 370 additions and 399 deletions

View File

@@ -125,8 +125,7 @@
//------------- CDC -------------//
// Set Line Control state on enumeration/mounted:
// DTR ( bit 0), RTS (bit 1)
#define CFG_TUH_CDC_LINE_CONTROL_ON_ENUM 0x03
#define CFG_TUH_CDC_LINE_CONTROL_ON_ENUM ( CDC_CONTROL_LINE_STATE_RTS | CDC_CONTROL_LINE_STATE_DTR )
// Set Line Coding on enumeration/mounted, value for cdc_line_coding_t
// bit rate = 115200, 1 stop bit, no parity, 8 bit data width