summaryrefslogtreecommitdiff
path: root/src/class/cdc
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-11-26 16:34:00 +0700
committerhathach <[email protected]>2025-11-26 16:34:38 +0700
commit0fa30024333508b6cd6e1a68dfaf3cdcf1377671 (patch)
treeb67139cfad905e5099e3bbb3f940a7a2590c7b67 /src/class/cdc
parentf63b67211b808fa370c51f3ab8eb201b64d3d1d2 (diff)
omit ep buffer for midi device if device support CFG_TUD_EDPT_DEDICATED_HWFIFO
Diffstat (limited to 'src/class/cdc')
-rw-r--r--src/class/cdc/cdc_device.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/class/cdc/cdc_device.h b/src/class/cdc/cdc_device.h
index 6f21af4f3..8b5761747 100644
--- a/src/class/cdc/cdc_device.h
+++ b/src/class/cdc/cdc_device.h
@@ -36,6 +36,14 @@
#define CFG_TUD_CDC_NOTIFY 0
#endif
+#ifndef CFG_TUD_CDC_TX_BUFSIZE
+ #define CFG_TUD_CDC_TX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
+#endif
+
+#ifndef CFG_TUD_CDC_RX_BUFSIZE
+ #define CFG_TUD_CDC_RX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
+#endif
+
#if !defined(CFG_TUD_CDC_EP_BUFSIZE) && defined(CFG_TUD_CDC_EPSIZE)
#warning CFG_TUD_CDC_EPSIZE is renamed to CFG_TUD_CDC_EP_BUFSIZE, please update to use the new name
#define CFG_TUD_CDC_EP_BUFSIZE CFG_TUD_CDC_EPSIZE