diff options
| author | sakumisu <[email protected]> | 2025-06-03 22:46:48 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2025-06-03 22:46:48 +0800 |
| commit | ac4e4c569d9ded124b25a0d82c8aebec94bbb921 (patch) | |
| tree | 26bd518deef9e6c6e39d44ea83a1536b0f35c793 /osal | |
| parent | b6650bdbc6998cc8f2d164b090bf9bbb3dac71cd (diff) | |
feat(port/dwc2): add dcache api for esp & st
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'osal')
| -rw-r--r-- | osal/idf/usb_config.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
