adding hcd_dcache_clean/hcd_dcache_invalidate

This commit is contained in:
hathach
2023-05-17 16:14:35 +07:00
parent a9aa0e3a1a
commit eb89df4115
4 changed files with 41 additions and 0 deletions

View File

@@ -41,6 +41,15 @@
#if CFG_TUSB_MCU == OPT_MCU_MIMXRT
#include "ci_hs_imxrt.h"
void hcd_dcache_clean(void* addr, uint32_t data_size) {
SCB_CleanDCache_by_Addr((uint32_t*) addr, (int32_t) data_size);
}
void hcd_dcache_invalidate(void* addr, uint32_t data_size) {
SCB_InvalidateDCache_by_Addr(addr, (int32_t) data_size);
}
#elif TU_CHECK_MCU(OPT_MCU_LPC18XX, OPT_MCU_LPC43XX)
#include "ci_hs_lpc18_43.h"
#else