Skip to content

Commit

Permalink
shared/TinyUSB: Allow boards to override CDC buffer sizes.
Browse files Browse the repository at this point in the history
  • Loading branch information
iabdalkader committed Aug 31, 2024
1 parent 0813ec7 commit 6e02a69
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions shared/tinyusb/tusb_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@

// CDC Configuration
#if CFG_TUD_CDC
#define CFG_TUD_CDC_RX_BUFSIZE (CFG_TUD_CDC_EP_BUFSIZE)
#define CFG_TUD_CDC_TX_BUFSIZE (CFG_TUD_CDC_EP_BUFSIZE)
#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
#endif

// MSC Configuration
Expand Down

0 comments on commit 6e02a69

Please sign in to comment.