From 82cebfe15f6c21b1bc73959d26395ad425398f86 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Mon, 7 Mar 2022 09:06:37 +0100 Subject: [PATCH] pkg/lvlgl: allow cusomizing LV_MEM_SIZE --- pkg/lvgl/include/lv_conf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/lvgl/include/lv_conf.h b/pkg/lvgl/include/lv_conf.h index f635ec6205..82dd148c2c 100644 --- a/pkg/lvgl/include/lv_conf.h +++ b/pkg/lvgl/include/lv_conf.h @@ -66,9 +66,13 @@ extern "C" { #if LV_MEM_CUSTOM == 0 /*Size of the memory available for `lv_mem_alloc()` in bytes (>= 2kB)*/ #if IS_USED(MODULE_LVGL_EXTRA_THEME_DEFAULT_GROW) +# ifndef LV_MEM_SIZE # define LV_MEM_SIZE (6U * 1024U) /*[bytes]*/ +# endif #else +# ifndef LV_MEM_SIZE # define LV_MEM_SIZE (5U * 1024U) /*[bytes]*/ +# endif #endif /*Set an address for the memory pool instead of allocating it as a normal array. Can be in external SRAM too.*/