We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc5744b commit f04941cCopy full SHA for f04941c
components/drivers/usb/usbdevice/class/cdc_vcom.c
@@ -939,9 +939,12 @@ static void rt_usb_vcom_init(struct ufunction *func)
939
config.parity = PARITY_NONE;
940
config.bit_order = BIT_ORDER_LSB;
941
config.invert = NRZ_NORMAL;
942
+#if defined(RT_USING_SERIAL_V1)
943
+ config.bufsz = CDC_RX_BUFSIZE;
944
+#elif defined(RT_USING_SERIAL_V2)
945
config.rx_bufsz = CDC_RX_BUFSIZE;
946
config.tx_bufsz = CDC_TX_BUFSIZE;
-
947
+#endif
948
data->serial.ops = &usb_vcom_ops;
949
data->serial.serial_rx = RT_NULL;
950
data->serial.config = config;
0 commit comments