From 773cad823fd67d493879f9c1e23978596b08f733 Mon Sep 17 00:00:00 2001 From: sakimisu <1203593632@qq.com> Date: Sat, 22 Apr 2023 14:23:26 +0800 Subject: [PATCH] align hub intbuf --- class/hub/usbh_hub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);