fix(Kconfig): remove the maximum limit on LV_MEM_SIZE (#3758)
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
1
Kconfig
1
Kconfig
@@ -62,7 +62,6 @@ menu "LVGL configuration"
|
|||||||
|
|
||||||
config LV_MEM_SIZE_KILOBYTES
|
config LV_MEM_SIZE_KILOBYTES
|
||||||
int "Size of the memory used by `lv_mem_alloc` in kilobytes (>= 2kB)"
|
int "Size of the memory used by `lv_mem_alloc` in kilobytes (>= 2kB)"
|
||||||
range 2 128
|
|
||||||
default 32
|
default 32
|
||||||
depends on !LV_MEM_CUSTOM
|
depends on !LV_MEM_CUSTOM
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,10 @@ extern "C" {
|
|||||||
*******************/
|
*******************/
|
||||||
|
|
||||||
#ifdef CONFIG_LV_MEM_SIZE_KILOBYTES
|
#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)
|
# define CONFIG_LV_MEM_SIZE (CONFIG_LV_MEM_SIZE_KILOBYTES * 1024U)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user