Skip to content

Commit

Permalink
shared/tinyusb: Set CDC RX/TX buffer to the same size EP_BUFFER.
Browse files Browse the repository at this point in the history
Now you can set all 3 buffers on the command line or via port config.
  • Loading branch information
iabdalkader committed Aug 3, 2024
1 parent 7c8ff80 commit 8f6a976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/tinyusb/tusb_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@

// CDC Configuration
#if CFG_TUD_CDC
#define CFG_TUD_CDC_RX_BUFSIZE ((CFG_TUD_MAX_SPEED == OPT_MODE_HIGH_SPEED) ? 512 : 256)
#define CFG_TUD_CDC_TX_BUFSIZE ((CFG_TUD_MAX_SPEED == OPT_MODE_HIGH_SPEED) ? 512 : 256)
#define CFG_TUD_CDC_RX_BUFSIZE (CFG_TUD_CDC_EP_BUFSIZE)
#define CFG_TUD_CDC_TX_BUFSIZE (CFG_TUD_CDC_EP_BUFSIZE)
#endif

// MSC Configuration
Expand Down

0 comments on commit 8f6a976

Please sign in to comment.