aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Ebensberger2020-06-07 18:23:36 +0200
committerDamien George2020-06-08 14:39:21 +1000
commit6ac05af8e1408a1f5cd27d57c8581a9f4197a2f5 (patch)
tree8ea486ccf3085bb65bce4d15c10c7210ae9b9a98
parent1e6d18c915ccea0b6a19ffec9710d33dd7e5f866 (diff)
mimxrt/tusb_config.h: Preliminary fix for TinyUSB HS endpoint overflow.
Sending more than 64 bytes to the USB CDC endpoint in HS mode will lead to a hard crash. This commit fixes the issue, although there may be a better fix from upstream TinyUSB in the future.
-rw-r--r--ports/mimxrt/tusb_config.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ports/mimxrt/tusb_config.h b/ports/mimxrt/tusb_config.h
index f2367c204..c7ec05e63 100644
--- a/ports/mimxrt/tusb_config.h
+++ b/ports/mimxrt/tusb_config.h
@@ -30,7 +30,8 @@
#define CFG_TUSB_OS (OPT_OS_NONE)
#define CFG_TUD_CDC (1)
-#define CFG_TUD_CDC_RX_BUFSIZE (256)
-#define CFG_TUD_CDC_TX_BUFSIZE (256)
+#define CFG_TUD_CDC_RX_BUFSIZE (512)
+#define CFG_TUD_CDC_TX_BUFSIZE (512)
+#define CFG_TUD_CDC_EPSIZE (512)
#endif // MICROPY_INCLUDED_MIMXRT_TUSB_CONFIG_H