From ac4e4c569d9ded124b25a0d82c8aebec94bbb921 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Tue, 3 Jun 2025 22:46:48 +0800 Subject: feat(port/dwc2): add dcache api for esp & st Signed-off-by: sakumisu <1203593632@qq.com> --- osal/idf/usb_config.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'osal') diff --git a/osal/idf/usb_config.h b/osal/idf/usb_config.h index 414a4c74..d7cc5885 100644 --- a/osal/idf/usb_config.h +++ b/osal/idf/usb_config.h @@ -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 \ No newline at end of file -- cgit v1.3.1