@@ -127,7 +127,11 @@ static const uint8_t usb_midi_descriptor_template[] = {
127
127
0xFF , // 66 bEndpointAddress (OUT/H2D) [SET AT RUNTIME]
128
128
#define MIDI_STREAMING_OUT_ENDPOINT_INDEX (66 )
129
129
0x02 , // 67 bmAttributes (Bulk)
130
+ #if USB_HIGHSPEED
131
+ 0x00 , 0x02 , // 68,69 wMaxPacketSize (512)
132
+ #else
130
133
0x40 , 0x00 , // 68,69 wMaxPacketSize (64)
134
+ #endif
131
135
0x00 , // 70 bInterval 0 (unit depends on device speed)
132
136
133
137
// MIDI Data Endpoint Descriptor
@@ -143,7 +147,11 @@ static const uint8_t usb_midi_descriptor_template[] = {
143
147
0xFF , // 78 bEndpointAddress (IN/D2H) [SET AT RUNTIME: 0x80 | number]
144
148
#define MIDI_STREAMING_IN_ENDPOINT_INDEX (78 )
145
149
0x02 , // 79 bmAttributes (Bulk)
146
- 0x40 , 0x00 , // 8081 wMaxPacketSize 64
150
+ #if USB_HIGHSPEED
151
+ 0x00 , 0x02 , // 80, 81 wMaxPacketSize (512)
152
+ #else
153
+ 0x40 , 0x00 , // 80, 81 wMaxPacketSize (64)
154
+ #endif
147
155
0x00 , // 82 bInterval 0 (unit depends on device speed)
148
156
149
157
// MIDI Data Endpoint Descriptor
0 commit comments