Commit 706e09df authored by iabdalkader's avatar iabdalkader Committed by Damien George

shared/tinyusb: Allow ports to define CDC TX/RX buffer sizes.

Signed-off-by: default avatariabdalkader <i.abdalkader@gmail.com>
parent 260568e0
......@@ -77,8 +77,12 @@
// CDC Configuration
#if CFG_TUD_CDC
#ifndef CFG_TUD_CDC_RX_BUFSIZE
#define CFG_TUD_CDC_RX_BUFSIZE ((CFG_TUD_MAX_SPEED == OPT_MODE_HIGH_SPEED) ? 512 : 256)
#endif
#ifndef CFG_TUD_CDC_TX_BUFSIZE
#define CFG_TUD_CDC_TX_BUFSIZE ((CFG_TUD_MAX_SPEED == OPT_MODE_HIGH_SPEED) ? 512 : 256)
#endif
#define CFG_TUD_CDC_PERSISTENT_TX_BUFF (1)
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment