mirror of
https://github.com/lvgl/lvgl.git
synced 2026-08-17 09:42:19 +08:00
feat(draw/ppa): support SoCs that expose no L2 cache line size (#10396)
This commit is contained in:
@@ -55,7 +55,7 @@ else()
|
||||
|
||||
set(IDF_COMPONENTS esp_timer log)
|
||||
|
||||
if(${target} STREQUAL "esp32p4")
|
||||
if(${target} STREQUAL "esp32p4" OR ${target} STREQUAL "esp32s31")
|
||||
list(APPEND IDF_COMPONENTS esp_driver_ppa esp_mm)
|
||||
endif()
|
||||
|
||||
|
||||
@@ -31,8 +31,16 @@ extern "C" {
|
||||
/* The ppa driver depends heavily on the esp-idf headers*/
|
||||
#include <sdkconfig.h>
|
||||
|
||||
#if (CONFIG_LV_DRAW_BUF_ALIGN != CONFIG_CACHE_L2_CACHE_LINE_SIZE)
|
||||
#error "CONFIG_LV_DRAW_BUF_ALIGN must be equal to CONFIG_CACHE_L2_CACHE_LINE_SIZE!"
|
||||
#if defined(CONFIG_CACHE_L2_CACHE_LINE_SIZE)
|
||||
#define LV_DRAW_PPA_CACHE_LINE_SIZE CONFIG_CACHE_L2_CACHE_LINE_SIZE
|
||||
#elif defined(CONFIG_CACHE_L1_DCACHE_LINE_SIZE)
|
||||
#define LV_DRAW_PPA_CACHE_LINE_SIZE CONFIG_CACHE_L1_DCACHE_LINE_SIZE
|
||||
#else
|
||||
#error "Cannot determine the data cache line size for the PPA draw unit"
|
||||
#endif
|
||||
|
||||
#if (CONFIG_LV_DRAW_BUF_ALIGN != LV_DRAW_PPA_CACHE_LINE_SIZE)
|
||||
#error "CONFIG_LV_DRAW_BUF_ALIGN must be equal to the data cache line size!"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user