mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-21 22:52:46 +08:00
feat(nxp): release NXP PXP and VG-Lite for LVGL v9.0 (#5288)
Signed-off-by: Nicușor Cîțu <nicusor.citu@nxp.com> Signed-off-by: Ana Grad <ana.grad@nxp.com> Co-authored-by: Ana Grad <ana.grad@nxp.com>
This commit is contained in:
@@ -70,6 +70,10 @@ static void lv_mem_walker(void * ptr, size_t size, int used, void * user);
|
||||
|
||||
void lv_mem_init(void)
|
||||
{
|
||||
#if LV_USE_OS
|
||||
lv_mutex_init(&state.mutex);
|
||||
#endif
|
||||
|
||||
#if LV_MEM_ADR == 0
|
||||
#ifdef LV_MEM_POOL_ALLOC
|
||||
state.tlsf = lv_tlsf_create_with_pool((void *)LV_MEM_POOL_ALLOC(LV_MEM_SIZE), LV_MEM_SIZE);
|
||||
@@ -82,10 +86,6 @@ void lv_mem_init(void)
|
||||
state.tlsf = lv_tlsf_create_with_pool((void *)LV_MEM_ADR, LV_MEM_SIZE);
|
||||
#endif
|
||||
|
||||
#if LV_USE_OS
|
||||
lv_mutex_init(&state.mutex);
|
||||
#endif
|
||||
|
||||
_lv_ll_init(&state.pool_ll, sizeof(lv_pool_t));
|
||||
|
||||
/*Record the first pool*/
|
||||
|
||||
Reference in New Issue
Block a user