Check for a Cortex-M7 before calling cache functions (#1806)

This commit is contained in:
embeddedt
2020-09-21 18:05:06 -04:00
committed by GitHub
parent cbd3393d7c
commit 94a6dc08d8

View File

@@ -219,8 +219,11 @@ static void invalidate_cache(void)
{
lv_disp_t * disp = _lv_refr_get_disp_refreshing();
if(disp->driver.clean_dcache_cb) disp->driver.clean_dcache_cb(&disp->driver);
else
else {
#if __CORTEX_M >= 0x07
SCB_CleanInvalidateDCache();
#endif
}
}
static void dma2d_wait(void)