Skip to content

Commit 944d7d3

Browse files
authored
Merge pull request #579 from frejanordsiek/alllow-serial-buffer-resize-tinyusb
Make definitions for TinyUSB serial TX/RX buffer sizes check if they are already defined (allows easier serial buffer size adjustment)
2 parents 2316b0f + 778d122 commit 944d7d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/nRF5/TinyUSB/tusb_config.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,12 @@
7676
#define CFG_TUD_MIDI_TX_BUFSIZE 128
7777

7878
// Vendor FIFO size of TX and RX
79+
#ifndef CFG_TUD_VENDOR_RX_BUFSIZE
7980
#define CFG_TUD_VENDOR_RX_BUFSIZE 64
81+
#endif
82+
#ifndef CFG_TUD_VENDOR_TX_BUFSIZE
8083
#define CFG_TUD_VENDOR_TX_BUFSIZE 64
84+
#endif
8185

8286
#ifdef __cplusplus
8387
}

0 commit comments

Comments
 (0)