mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
Rename function to lv_disp_clean_dcache
and use currently refreshing display
This commit is contained in:
parent
ff357db938
commit
36433c2144
@ -353,14 +353,14 @@ void lv_disp_trig_activity(lv_disp_t * disp)
|
||||
}
|
||||
|
||||
/**
|
||||
* Invalidate any CPU cache that is related to the display.
|
||||
* Clean 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)
|
||||
void lv_disp_clean_dcache(lv_disp_t * disp)
|
||||
{
|
||||
if(!disp) disp = lv_disp_get_default();
|
||||
if(!disp) {
|
||||
LV_LOG_WARN("lv_disp_invalidate_cache: no display registered");
|
||||
LV_LOG_WARN("lv_disp_clean_dcache: no display registered");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -134,10 +134,10 @@ uint32_t lv_disp_get_inactive_time(const lv_disp_t * disp);
|
||||
void lv_disp_trig_activity(lv_disp_t * disp);
|
||||
|
||||
/**
|
||||
* Invalidate any CPU cache that is related to the display.
|
||||
* Clean 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);
|
||||
void lv_disp_clean_dcache(lv_disp_t * disp);
|
||||
|
||||
/**
|
||||
* Get a pointer to the screen refresher task to
|
||||
|
@ -82,7 +82,7 @@ void lv_gpu_stm32_dma2d_init(void)
|
||||
*/
|
||||
void lv_gpu_stm32_dma2d_fill(lv_color_t * buf, lv_coord_t buf_w, lv_color_t color, lv_coord_t fill_w, lv_coord_t fill_h)
|
||||
{
|
||||
lv_disp_invalidate_cache(NULL);
|
||||
lv_disp_clean_dcache(_lv_refr_get_disp_refreshing());
|
||||
|
||||
DMA2D->CR = 0x30000;
|
||||
DMA2D->OMAR = (uint32_t)buf;
|
||||
@ -112,7 +112,7 @@ void lv_gpu_stm32_dma2d_fill_mask(lv_color_t * buf, lv_coord_t buf_w, lv_color_t
|
||||
lv_opa_t opa, lv_coord_t fill_w, lv_coord_t fill_h)
|
||||
{
|
||||
#if 0
|
||||
lv_disp_invalidate_cache(NULL);
|
||||
lv_disp_clean_dcache(_lv_refr_get_disp_refreshing());
|
||||
|
||||
/* Configure the DMA2D Mode, Color Mode and line output offset */
|
||||
hdma2d.Init.Mode = DMA2D_M2M_BLEND;
|
||||
@ -156,7 +156,7 @@ void lv_gpu_stm32_dma2d_fill_mask(lv_color_t * buf, lv_coord_t buf_w, lv_color_t
|
||||
void lv_gpu_stm32_dma2d_copy(lv_color_t * buf, lv_coord_t buf_w, const lv_color_t * map, lv_coord_t map_w,
|
||||
lv_coord_t copy_w, lv_coord_t copy_h)
|
||||
{
|
||||
lv_disp_invalidate_cache(NULL);
|
||||
lv_disp_clean_dcache(_lv_refr_get_disp_refreshing());
|
||||
|
||||
DMA2D->CR = 0;
|
||||
/* copy output colour mode, this register controls both input and output colour format */
|
||||
@ -186,7 +186,7 @@ void lv_gpu_stm32_dma2d_copy(lv_color_t * buf, lv_coord_t buf_w, const lv_color_
|
||||
void lv_gpu_stm32_dma2d_blend(lv_color_t * buf, lv_coord_t buf_w, const lv_color_t * map, lv_opa_t opa,
|
||||
lv_coord_t map_w, lv_coord_t copy_w, lv_coord_t copy_h)
|
||||
{
|
||||
lv_disp_invalidate_cache(NULL);
|
||||
lv_disp_clean_dcache(_lv_refr_get_disp_refreshing());
|
||||
DMA2D->CR = 0x20000;
|
||||
|
||||
DMA2D->BGPFCCR = LV_DMA2D_COLOR_FORMAT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user