diff options
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/usb_dwc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/stm32/usb_dwc.c b/chip/stm32/usb_dwc.c index eef2424842..25c6f091a2 100644 --- a/chip/stm32/usb_dwc.c +++ b/chip/stm32/usb_dwc.c @@ -146,14 +146,14 @@ static enum table_case decode_table_10_7(uint32_t doepint) /* For STATUS/OUT: Use two DMA descriptors, each with one-packet buffers */ #define NUM_OUT_BUFFERS 2 -static uint8_t ep0_setup_buf[USB_MAX_PACKET_SIZE]; +static uint8_t __attribute__((aligned(4))) ep0_setup_buf[USB_MAX_PACKET_SIZE]; /* For IN: Several DMA descriptors, all pointing into one large buffer, so that * we can return the configuration descriptor as one big blob. */ #define NUM_IN_PACKETS_AT_ONCE 4 #define IN_BUF_SIZE (NUM_IN_PACKETS_AT_ONCE * USB_MAX_PACKET_SIZE) -static uint8_t ep0_in_buf[IN_BUF_SIZE]; +uint8_t __attribute__((aligned(4))) ep0_in_buf[IN_BUF_SIZE]; struct dwc_usb_ep ep0_ctl = { .max_packet = USB_MAX_PACKET_SIZE, |