feat(demos): add a callback for benchmark (#3353)

* feat(demos): add a callback for benchmark to indicate testing is finished

* update doc and fix code-format

* fix code-format issue

* Update demos/benchmark/lv_demo_benchmark.c

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>

* change function name accordingly.

* Update demos/benchmark/README.md

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
This commit is contained in:
Gabriel Wang
2022-05-16 16:58:44 +01:00
committed by GitHub
parent 834a118847
commit c5d1557738
3 changed files with 104 additions and 34 deletions

View File

@@ -22,6 +22,8 @@ extern "C" {
/**********************
* TYPEDEFS
**********************/
typedef void finished_cb_t(void);
/**********************
* GLOBAL PROTOTYPES
@@ -30,6 +32,8 @@ void lv_demo_benchmark(void);
void lv_demo_benchmark_run_scene(int_fast16_t scene_no);
void lv_demo_benchmark_set_finished_cb(finished_cb_t * finished_cb);
/**********************
* MACROS
**********************/