Skip to content

Commit 8147551

Browse files
facchinmcmaglie
authored andcommitted
fix pluggableUSB OUT packets
1 parent 6d2f3db commit 8147551

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cores/arduino/USB/PluggableUSB.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ typedef struct __attribute__((packed))
3232
int (*getDescriptor)(int8_t t);
3333
int8_t numEndpoints;
3434
int8_t numInterfaces;
35-
uint8_t *endpointType;
35+
uint32_t *endpointType;
3636
} PUSBCallbacks;
3737

3838
typedef struct

cores/arduino/USB/USBCore.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ volatile uint32_t _usbConfiguration = 0;
7575
volatile uint32_t _usbSetInterface = 0;
7676

7777
static __attribute__((__aligned__(4))) //__attribute__((__section__(".bss_hram0")))
78-
uint8_t udd_ep_out_cache_buffer[4][64];
78+
uint8_t udd_ep_out_cache_buffer[6][64];
7979

8080
static __attribute__((__aligned__(4))) //__attribute__((__section__(".bss_hram0")))
81-
uint8_t udd_ep_in_cache_buffer[4][64];
81+
uint8_t udd_ep_in_cache_buffer[6][64];
8282

8383
//==================================================================
8484

libraries/HID/HID.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ bool HID_Setup(USBSetup& setup, uint8_t i)
152152

153153
HID_::HID_(void)
154154
{
155-
static uint8_t endpointType[1];
155+
static uint32_t endpointType[1];
156156

157157
endpointType[0] = USB_ENDPOINT_TYPE_BULK | USB_ENDPOINT_IN(0);
158158

0 commit comments

Comments
 (0)