Skip to content

Commit c21b601

Browse files
committed
add hid bufsize
1 parent 71922ef commit c21b601

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

cores/arduino/Adafruit_TinyUSB_Core/tusb_config.h

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,13 @@
6464
#define CFG_TUD_MIDI 0
6565
#define CFG_TUD_CUSTOM_CLASS 0
6666

67-
//--------------------------------------------------------------------
68-
// CDC
69-
//--------------------------------------------------------------------
67+
//------------- CDC -------------//
7068

7169
// FIFO size of CDC TX and RX
7270
#define CFG_TUD_CDC_RX_BUFSIZE 256
7371
#define CFG_TUD_CDC_TX_BUFSIZE 256
7472

75-
//--------------------------------------------------------------------
76-
// MSC
77-
//--------------------------------------------------------------------
73+
//------------- MSC -------------//
7874

7975
// Buffer size of Device Mass storage
8076
#define CFG_TUD_MSC_BUFSIZE 512
@@ -88,9 +84,10 @@
8884
// Product revision string included in Inquiry response, max 4 bytes
8985
#define CFG_TUD_MSC_PRODUCT_REV "1.0"
9086

91-
//--------------------------------------------------------------------
92-
// HID
93-
//--------------------------------------------------------------------
87+
//------------- HID -------------//
88+
89+
// Should be sufficient to hold ID (if any) + Data
90+
#define CFG_TUD_HID_BUFSIZE 64
9491

9592
#ifdef __cplusplus
9693
}

0 commit comments

Comments
 (0)