Skip to content

Commit 1ceb037

Browse files
Fix HID endpoint size, remove 512b MSC (#3277)
The HID endpoint size was set incorrectly, update. No need for new libraries because the only file that uses the define is in tusb-hid and will be built dynamically. The RP2040 endpoints seem to be limited to 64b (also seen in the tinyusb examples), so don't extend MSC_EP to 512b.
1 parent f833c7c commit 1ceb037

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/tusb_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@
8080
#define CFG_TUD_CDC_RX_BUFSIZE (256)
8181
#define CFG_TUD_CDC_TX_BUFSIZE (256)
8282

83-
#define CFG_TUD_MSC_EP_BUFSIZE (64)
83+
#define CFG_TUD_MSC_EP_BUFSIZE (64) // Max for RP2040, not OPT_MODE_HS
8484

8585
// HID buffer size Should be sufficient to hold ID (if any) + Data
86-
#define CFG_TUD_HID_EP_BUFSIZE (512)
86+
#define CFG_TUD_HID_EP_BUFSIZE (64)
8787

8888
// MIDI
8989
#define CFG_TUD_MIDI_RX_BUFSIZE (64)

0 commit comments

Comments
 (0)