Skip to content

Commit 5fdd05f

Browse files
committed
Make tusb_config.h configurable
1 parent 54bf877 commit 5fdd05f

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

sdk/config/tusb_config.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@
3030
// -----------------------------------------------------------------------------
3131
// CDC CONFIGURATION
3232
// -----------------------------------------------------------------------------
33-
#define CFG_TUD_CDC_RX_BUFSIZE 8192
34-
#define CFG_TUD_CDC_EP_BUFSIZE 4096
35-
#define CFG_TUD_CDC_TX_BUFSIZE 768
33+
#ifndef CFG_TUD_CDC_RX_BUFSIZE
34+
#define CFG_TUD_CDC_RX_BUFSIZE 8192
35+
#endif
36+
#ifndef CFG_TUD_CDC_EP_BUFSIZE
37+
#define CFG_TUD_CDC_EP_BUFSIZE 4096
38+
#endif
39+
#ifndef CFG_TUD_CDC_TX_BUFSIZE
40+
#define CFG_TUD_CDC_TX_BUFSIZE 768
41+
#endif
3642

3743
#ifdef __cplusplus
3844
}

0 commit comments

Comments
 (0)