mirror of
https://github.com/lvgl/lvgl.git
synced 2024-11-23 09:43:41 +08:00
fix(Kconfig): remove the maximum limit on LV_MEM_SIZE (#3758)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
parent
d1e8c676a4
commit
a201df799b
1
Kconfig
1
Kconfig
@ -62,7 +62,6 @@ menu "LVGL configuration"
|
||||
|
||||
config LV_MEM_SIZE_KILOBYTES
|
||||
int "Size of the memory used by `lv_mem_alloc` in kilobytes (>= 2kB)"
|
||||
range 2 128
|
||||
default 32
|
||||
depends on !LV_MEM_CUSTOM
|
||||
|
||||
|
@ -38,6 +38,10 @@ extern "C" {
|
||||
*******************/
|
||||
|
||||
#ifdef CONFIG_LV_MEM_SIZE_KILOBYTES
|
||||
# if(CONFIG_LV_MEM_SIZE_KILOBYTES < 2)
|
||||
# error "LV_MEM_SIZE >= 2kB is required"
|
||||
# endif
|
||||
|
||||
# define CONFIG_LV_MEM_SIZE (CONFIG_LV_MEM_SIZE_KILOBYTES * 1024U)
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user