From 8f6a976deacc38c49830373091de14c7e2aed223 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sat, 3 Aug 2024 11:54:43 +0300 Subject: [PATCH] shared/tinyusb: Set CDC RX/TX buffer to the same size EP_BUFFER. Now you can set all 3 buffers on the command line or via port config. --- shared/tinyusb/tusb_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/tinyusb/tusb_config.h b/shared/tinyusb/tusb_config.h index ab47321afdc0..9347042246d8 100644 --- a/shared/tinyusb/tusb_config.h +++ b/shared/tinyusb/tusb_config.h @@ -77,8 +77,8 @@ // CDC Configuration #if CFG_TUD_CDC -#define CFG_TUD_CDC_RX_BUFSIZE ((CFG_TUD_MAX_SPEED == OPT_MODE_HIGH_SPEED) ? 512 : 256) -#define CFG_TUD_CDC_TX_BUFSIZE ((CFG_TUD_MAX_SPEED == OPT_MODE_HIGH_SPEED) ? 512 : 256) +#define CFG_TUD_CDC_RX_BUFSIZE (CFG_TUD_CDC_EP_BUFSIZE) +#define CFG_TUD_CDC_TX_BUFSIZE (CFG_TUD_CDC_EP_BUFSIZE) #endif // MSC Configuration