1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(pxp,vglite): extend base structure to create vglite and pxp draw units (#7578)

Signed-off-by: Cristian Stoica <cristianmarian.stoica@nxp.com>
This commit is contained in:
cristian-stoica 2025-01-13 11:44:08 +02:00 committed by GitHub
parent 62a2804d97
commit 3f13398673
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 2 deletions

View File

@ -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

View File

@ -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