From 3f13398673c810ce5b3f7b21a7b89753f5e9ba97 Mon Sep 17 00:00:00 2001 From: cristian-stoica Date: Mon, 13 Jan 2025 11:44:08 +0200 Subject: [PATCH] fix(pxp,vglite): extend base structure to create vglite and pxp draw units (#7578) Signed-off-by: Cristian Stoica --- src/draw/nxp/pxp/lv_draw_pxp.h | 11 ++++++++++- src/draw/nxp/vglite/lv_draw_vglite.h | 9 ++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/draw/nxp/pxp/lv_draw_pxp.h b/src/draw/nxp/pxp/lv_draw_pxp.h index d34ad3f84..130a35799 100644 --- a/src/draw/nxp/pxp/lv_draw_pxp.h +++ b/src/draw/nxp/pxp/lv_draw_pxp.h @@ -35,7 +35,16 @@ extern "C" { * TYPEDEFS **********************/ -typedef lv_draw_sw_unit_t lv_draw_pxp_unit_t; +typedef struct lv_draw_pxp_unit_t { + lv_draw_unit_t base_unit; + lv_draw_task_t * task_act; +#if LV_USE_OS + lv_thread_sync_t sync; + lv_thread_t thread; + volatile bool inited; + volatile bool exit_status; +#endif +} lv_draw_pxp_unit_t; /********************** * GLOBAL PROTOTYPES diff --git a/src/draw/nxp/vglite/lv_draw_vglite.h b/src/draw/nxp/vglite/lv_draw_vglite.h index 93b18cd7e..b7a7256e4 100644 --- a/src/draw/nxp/vglite/lv_draw_vglite.h +++ b/src/draw/nxp/vglite/lv_draw_vglite.h @@ -36,7 +36,14 @@ extern "C" { **********************/ typedef struct lv_draw_vglite_unit { - lv_draw_sw_unit_t; + lv_draw_unit_t base_unit; + lv_draw_task_t * task_act; +#if LV_USE_OS + lv_thread_sync_t sync; + lv_thread_t thread; + volatile bool inited; + volatile bool exit_status; +#endif #if LV_USE_VGLITE_DRAW_ASYNC volatile bool wait_for_finish; #endif