summaryrefslogtreecommitdiff
path: root/components/drivers/usb
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2020-01-24 19:07:19 +0800
committerGitHub <[email protected]>2020-01-24 19:07:19 +0800
commit8d309ed533a6a04204dc2a71c97c244a83ca18a6 (patch)
tree33708e31e84a9d211efe051d77b57b3c503b8a74 /components/drivers/usb
parent43abbc3ce8f2edb275d004ee8dd9c9babfe2454f (diff)
parent0fdf20cf582a931d6293b097b0ffff2b132da964 (diff)
Merge pull request #3343 from chengxiaohu/master
Add DMA for ADC driver, and other little update.
Diffstat (limited to 'components/drivers/usb')
-rw-r--r--components/drivers/usb/usbdevice/class/cdc_vcom.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/drivers/usb/usbdevice/class/cdc_vcom.c b/components/drivers/usb/usbdevice/class/cdc_vcom.c
index b6044b37a7..c94a438131 100644
--- a/components/drivers/usb/usbdevice/class/cdc_vcom.c
+++ b/components/drivers/usb/usbdevice/class/cdc_vcom.c
@@ -28,7 +28,11 @@
#define VCOM_TX_TIMEOUT 1000
#endif /*RT_VCOM_TX_TIMEOUT*/
+#ifdef RT_CDC_RX_BUFSIZE
+#define CDC_RX_BUFSIZE RT_CDC_RX_BUFSIZE
+#else
#define CDC_RX_BUFSIZE 128
+#endif
#define CDC_MAX_PACKET_SIZE 64
#define VCOM_DEVICE "vcom"