lvgl: kill LVGL_MEM_POOL_HEAP_KERNEL and LVGL_MEM_POOL_KERNEL
Current lvgl code allows to use the kernel heap for dynamic memory allocation. The k_heap API doesn't however provide k_realloc() which will be needed in order to update lvgl to v8. Nico suggested there's no good reason for lvgl to use k_heap and it should stick to either the libc's allocator or depend on its own private sys_heap. The alternative would be to extend the k_heap API to provide k_realloc() but this may be tricky for several reasons and for now there would be a single user anyway. This removes the choice of using k_heap for lvgl and renames the user pool to SYS_HEAP in Kconfig and makes it the default option. The prj.conf for the lvgl sample is modifed to specify the number of memory pool blocks instead of the total size as the default block size is 2048 and it results in the same size of memory. Suggested-by:Nicolas Pitre <npitre@baylibre.com> Signed-off-by:
Bartosz Golaszewski <bartosz.golaszewski@huawei.com>
Loading
Please sign in to comment