1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #17759 from fjmolinas/pr_lvgl_mem_size

pkg/lvlgl: allow cusomizing LV_MEM_SIZE
This commit is contained in:
benpicco 2022-03-08 07:18:49 +01:00 committed by GitHub
commit a0ec3a0e02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.*/