lv_disp: add clean_dcache_cb callback

This commit is contained in:
Themba Dube
2020-08-21 09:52:13 -04:00
parent 001fabbb18
commit 24c2921c21
4 changed files with 29 additions and 14 deletions

View File

@@ -352,6 +352,21 @@ void lv_disp_trig_activity(lv_disp_t * disp)
disp->last_activity_time = lv_tick_get();
}
/**
* Invalidate any CPU cache that is related to the display.
* @param disp pointer to an display (NULL to use the default display)
*/
void lv_disp_invalidate_cache(lv_disp_t * disp)
{
if(!disp) disp = lv_disp_get_default();
if(!disp) {
LV_LOG_WARN("lv_disp_invalidate_cache: no display registered");
return;
}
if(disp->driver.clean_dcache_cb)
disp->driver.clean_dcache_cb(&disp->driver);
}
/**
* Get a pointer to the screen refresher task to