Skip to content

Commit d782030

Browse files
committed
fix(lvgl): use libc allocator for ui heap
1 parent d1b1c2b commit d782030

3 files changed

Lines changed: 7 additions & 10 deletions

File tree

lv_conf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
* - LV_STDLIB_RTTHREAD: RT-Thread implementation
4141
* - LV_STDLIB_CUSTOM: Implement the functions externally
4242
*/
43-
#define LV_USE_STDLIB_MALLOC LV_STDLIB_BUILTIN
43+
#define LV_USE_STDLIB_MALLOC LV_STDLIB_CLIB
4444
#define LV_USE_STDLIB_STRING LV_STDLIB_BUILTIN
4545
#define LV_USE_STDLIB_SPRINTF LV_STDLIB_BUILTIN
4646

platforms/tab5/sdkconfig

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2311,8 +2311,8 @@ CONFIG_LV_COLOR_DEPTH=16
23112311
#
23122312
# Memory Settings
23132313
#
2314-
CONFIG_LV_USE_BUILTIN_MALLOC=y
2315-
# CONFIG_LV_USE_CLIB_MALLOC is not set
2314+
# CONFIG_LV_USE_BUILTIN_MALLOC is not set
2315+
CONFIG_LV_USE_CLIB_MALLOC=y
23162316
# CONFIG_LV_USE_MICROPYTHON_MALLOC is not set
23172317
# CONFIG_LV_USE_RTTHREAD_MALLOC is not set
23182318
# CONFIG_LV_USE_CUSTOM_MALLOC is not set
@@ -2322,9 +2322,6 @@ CONFIG_LV_USE_BUILTIN_STRING=y
23222322
CONFIG_LV_USE_BUILTIN_SPRINTF=y
23232323
# CONFIG_LV_USE_CLIB_SPRINTF is not set
23242324
# CONFIG_LV_USE_CUSTOM_SPRINTF is not set
2325-
CONFIG_LV_MEM_SIZE_KILOBYTES=64
2326-
CONFIG_LV_MEM_POOL_EXPAND_SIZE_KILOBYTES=0
2327-
CONFIG_LV_MEM_ADR=0x0
23282325
# end of Memory Settings
23292326

23302327
#

platforms/tab5/sdkconfig.defaults

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y
1717
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y
1818
CONFIG_ESP_BROOKESIA_MEMORY_USE_CUSTOM=y
1919
CONFIG_LV_COLOR_SCREEN_TRANSP=y
20-
CONFIG_LV_USE_BUILTIN_MALLOC=y
21-
# CONFIG_LV_USE_CLIB_MALLOC is not set
22-
CONFIG_LV_MEM_SIZE_KILOBYTES=64
23-
CONFIG_LV_MEM_POOL_EXPAND_SIZE_KILOBYTES=0
20+
# CONFIG_LV_USE_BUILTIN_MALLOC is not set
21+
CONFIG_LV_USE_CLIB_MALLOC=y
22+
# CONFIG_LV_MEM_SIZE_KILOBYTES is not set
23+
# CONFIG_LV_MEM_POOL_EXPAND_SIZE_KILOBYTES is not set
2424
CONFIG_LV_MEM_ADR=0x0
2525
CONFIG_LV_DISP_DEF_REFR_PERIOD=25
2626
CONFIG_LV_USE_LOG=y

0 commit comments

Comments
 (0)