feat(port/dwc2): add dcache api for esp & st

Signed-off-by: sakumisu <1203593632@qq.com>
This commit is contained in:
sakumisu
2025-06-03 22:46:48 +08:00
parent b6650bdbc6
commit ac4e4c569d
3 changed files with 54 additions and 7 deletions

View File

@@ -334,4 +334,15 @@
#define CONFIG_USB_HS
#else
#error "Unsupported SoC"
#endif
#if CONFIG_IDF_TARGET_ESP32P4
#define CONFIG_USB_DCACHE_ENABLE
#undef CONFIG_USB_ALIGN_SIZE
#define CONFIG_USB_ALIGN_SIZE 32
void usb_dcache_clean(uintptr_t addr, uint32_t size);
void usb_dcache_invalidate(uintptr_t addr, uint32_t size);
void usb_dcache_flush(uintptr_t addr, uint32_t size);
#endif