diff options
| author | sakumisu <[email protected]> | 2025-07-11 18:34:26 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-07-11 18:34:26 +0800 |
| commit | 3249811a90da95b9aab8bf5284894da80a795b50 (patch) | |
| tree | 7e6e552c50d975409102b0feef57418d622f5274 | |
| parent | c5b1e1af275dd13f24136f0bc1475cce8927a5aa (diff) | |
fix(port/dwc2/usb_dc_dwc2): align with CONFIG_USB_ALIGN_SIZE not only 32
Signed-off-by: sakumisu <[email protected]>
| -rw-r--r-- | port/dwc2/usb_dc_dwc2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/port/dwc2/usb_dc_dwc2.c b/port/dwc2/usb_dc_dwc2.c index aa27d8eb..feb77174 100644 --- a/port/dwc2/usb_dc_dwc2.c +++ b/port/dwc2/usb_dc_dwc2.c @@ -76,7 +76,7 @@ struct dwc2_ep_state { /* Driver state */ USB_NOCACHE_RAM_SECTION struct dwc2_udc { USB_MEM_ALIGNX struct usb_setup_packet setup; - uint8_t pad[24]; /* Pad to 32 bytes */ + USB_MEM_ALIGNX uint8_t pad; /* Pad to CONFIG_USB_ALIGN_SIZE bytes */ struct dwc2_hw_params hw_params; struct dwc2_user_params user_params; struct dwc2_ep_state in_ep[16]; /*!< IN endpoint parameters*/ |
