From 45cf22ebf5901383058a351be3d75dd46e3fbacf Mon Sep 17 00:00:00 2001 From: mharizanov Date: Thu, 22 Nov 2018 19:36:46 +0200 Subject: [PATCH 1/2] Define a custom attribute to `lv_flush_ready` function --- lv_conf_templ.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lv_conf_templ.h b/lv_conf_templ.h index b3d9eb4a5..5a52bbb16 100644 --- a/lv_conf_templ.h +++ b/lv_conf_templ.h @@ -91,6 +91,7 @@ /*Compiler settings*/ #define LV_ATTRIBUTE_TICK_INC /* Define a custom attribute to `lv_tick_inc` function */ #define LV_ATTRIBUTE_TASK_HANDLER /* Define a custom attribute to `lv_task_handler` function */ +#define LV_ATTRIBUTE_FLUSH_READY /* Define a custom attribute to `lv_flush_ready` function */ #define LV_COMPILER_VLA_SUPPORTED 1 /* 1: Variable length array is supported*/ #define LV_COMPILER_NON_CONST_INIT_SUPPORTED 1 /* 1: Initialization with non constant values are supported */ From cc801277ce4d4d8ac2a8c5633ff27a9c607937ba Mon Sep 17 00:00:00 2001 From: mharizanov Date: Thu, 22 Nov 2018 19:39:01 +0200 Subject: [PATCH 2/2] Define a custom attribute to `lv_flush_ready` function --- lv_core/lv_vdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lv_core/lv_vdb.c b/lv_core/lv_vdb.c index bfb0d85c2..9b3414375 100644 --- a/lv_core/lv_vdb.c +++ b/lv_core/lv_vdb.c @@ -152,7 +152,7 @@ void lv_vdb_set_adr(void * buf1, void * buf2) /** * Call in the display driver's 'disp_flush' function when the flushing is finished */ -void lv_flush_ready(void) +LV_ATTRIBUTE_FLUSH_READY void lv_flush_ready(void) { #if LV_VDB_DOUBLE == 0 vdb_state = LV_VDB_STATE_ACTIVE;