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.
@@ -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
