summaryrefslogtreecommitdiff
path: root/examples/device/printer_to_cdc
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-03-12 11:43:32 +0700
committerhathach <[email protected]>2026-03-12 11:43:32 +0700
commit78bbc7dc2e80daba79351bc37e11b13243fd6f8c (patch)
treedf6ac43639dedba3cbc235bfd33fba358cc9bd3d /examples/device/printer_to_cdc
parentd74559ab70c7c4804ee8cf65d9c65d910af06870 (diff)
refactor(config): separate endpoint buffer sizes into RX and TX definitions for clarity and flexibility
Diffstat (limited to 'examples/device/printer_to_cdc')
-rw-r--r--examples/device/printer_to_cdc/src/tusb_config.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/device/printer_to_cdc/src/tusb_config.h b/examples/device/printer_to_cdc/src/tusb_config.h
index c38e8e1ee..d12313ce5 100644
--- a/examples/device/printer_to_cdc/src/tusb_config.h
+++ b/examples/device/printer_to_cdc/src/tusb_config.h
@@ -103,12 +103,14 @@ extern "C" {
#define CFG_TUD_CDC_TX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
// CDC Endpoint transfer buffer size
-#define CFG_TUD_CDC_EP_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
+#define CFG_TUD_CDC_RX_EPSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
+#define CFG_TUD_CDC_TX_EPSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
// Printer buffer sizes
#define CFG_TUD_PRINTER_RX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
#define CFG_TUD_PRINTER_TX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
-#define CFG_TUD_PRINTER_EP_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
+#define CFG_TUD_PRINTER_RX_EPSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
+#define CFG_TUD_PRINTER_TX_EPSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
#ifdef __cplusplus
}