This is an automated email from the ASF dual-hosted git repository. jerzy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit 886889f795497d333e686ad4e3291ab0f6e257ac Author: Jerzy Kasenberg <[email protected]> AuthorDate: Sun Dec 19 12:47:32 2021 +0100 tinyusb: Fix CDC rx/tx buffer size for high speed Previous values (64) were OK for full speed devices. The way FIFO is handled in cdc_device requires buffer of 512 bytes in high speed mode. --- hw/usb/tinyusb/std_descriptors/include/tusb_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb/tinyusb/std_descriptors/include/tusb_config.h b/hw/usb/tinyusb/std_descriptors/include/tusb_config.h index ac31270..0f60123 100755 --- a/hw/usb/tinyusb/std_descriptors/include/tusb_config.h +++ b/hw/usb/tinyusb/std_descriptors/include/tusb_config.h @@ -86,8 +86,8 @@ extern "C" { #define CFG_TUD_BTH_ISO_ALT_COUNT 2 /* CDC FIFO size of TX and RX */ -#define CFG_TUD_CDC_RX_BUFSIZE 64 -#define CFG_TUD_CDC_TX_BUFSIZE 64 +#define CFG_TUD_CDC_RX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64) +#define CFG_TUD_CDC_TX_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64) /* HID buffer size Should be sufficient to hold ID (if any) + Data */ #define CFG_TUD_HID_BUFSIZE 16
