update: add usb align up for every buffer when use dcache clean&invalid api

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2025-03-28 13:15:01 +08:00
parent 5666fcb540
commit 83695e77cf
20 changed files with 50 additions and 43 deletions

View File

@@ -39,8 +39,8 @@ struct adb_msg {
};
struct adb_packet {
struct adb_msg msg;
uint8_t payload[MAX_PAYLOAD];
USB_MEM_ALIGNX struct adb_msg msg;
USB_MEM_ALIGNX uint8_t payload[USB_ALIGN_UP(MAX_PAYLOAD, CONFIG_USB_ALIGN_SIZE)];
};
struct usbd_adb {