summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakimisu <[email protected]>2023-04-22 14:23:26 +0800
committersakimisu <[email protected]>2023-04-22 14:23:26 +0800
commit773cad823fd67d493879f9c1e23978596b08f733 (patch)
tree72603c0c8b4fc3338a0cc8f9473ecfc71b5bb756
parent8f56dbdff4a9553d863cc81ca839822913f301ba (diff)
align hub intbuf
-rw-r--r--class/hub/usbh_hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/class/hub/usbh_hub.c b/class/hub/usbh_hub.c
index 3db343f2..002c6fd7 100644
--- a/class/hub/usbh_hub.c
+++ b/class/hub/usbh_hub.c
@@ -19,7 +19,7 @@ static uint32_t g_devinuse = 0;
#endif
USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_hub_buf[32];
-USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_hub_intbuf[CONFIG_USBHOST_MAX_EXTHUBS + 1][1];
+USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_hub_intbuf[CONFIG_USBHOST_MAX_EXTHUBS + 1][CONFIG_USB_ALIGN_SIZE];
usb_slist_t hub_class_head = USB_SLIST_OBJECT_INIT(hub_class_head);