summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-03-06 18:20:29 +0700
committerhathach <[email protected]>2026-03-06 18:20:29 +0700
commit8f24ab0950d1f19d3c23ac29441f0a4ce6e9ce9b (patch)
tree4a2f9d6b10257c91e475cf81248b9b26931612db /examples
parentaeb121f94cb9c5ecb220e2cf7e9e6b53e5d858b1 (diff)
reduce bufsize to compile with small mcu
Diffstat (limited to 'examples')
-rw-r--r--examples/device/printer_to_cdc/src/tusb_config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/device/printer_to_cdc/src/tusb_config.h b/examples/device/printer_to_cdc/src/tusb_config.h
index 50ef41762..c38e8e1ee 100644
--- a/examples/device/printer_to_cdc/src/tusb_config.h
+++ b/examples/device/printer_to_cdc/src/tusb_config.h
@@ -106,9 +106,9 @@ extern "C" {
#define CFG_TUD_CDC_EP_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
// Printer buffer sizes
-#define CFG_TUD_PRINTER_RX_BUFSIZE 512
-#define CFG_TUD_PRINTER_TX_BUFSIZE 512
-#define CFG_TUD_PRINTER_EP_BUFSIZE 512
+#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)
#ifdef __cplusplus
}