File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
samples/modules/lvgl/demos Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,13 @@ tests:
41
41
sample.modules.lvgl.demo_render :
42
42
extra_configs :
43
43
- CONFIG_LV_Z_DEMO_RENDER=y
44
+ sample.modules.lvgl.demo_benchmark.lvgl_auto :
45
+ extra_configs :
46
+ - CONFIG_LV_Z_DEMO_BENCHMARK=y
47
+ - CONFIG_LV_USE_DEMO_WIDGETS=y
48
+ - CONFIG_LV_Z_RUN_LVGL_ON_WORKQUEUE=y
49
+ - CONFIG_LV_Z_LVGL_WORKQUEUE_STACK_SIZE=8192
50
+ - CONFIG_LV_Z_LVGL_WORKQUEUE_PRIORITY=0
44
51
sample.modules.lvgl.demos.st_b_lcd40_dsi1_mb1166 :
45
52
filter : dt_compat_enabled("orisetech,otm8009a")
46
53
platform_allow : stm32h747i_disco/stm32h747xx/m7
Original file line number Diff line number Diff line change @@ -53,17 +53,24 @@ int main(void)
53
53
#error Enable one of the demos CONFIG_LV_Z_DEMO_*
54
54
#endif
55
55
56
+ #ifndef CONFIG_LV_Z_RUN_LVGL_ON_WORKQUEUE
56
57
lv_timer_handler ();
58
+ #endif
59
+
57
60
display_blanking_off (display_dev );
58
61
#ifdef CONFIG_LV_Z_MEM_POOL_SYS_HEAP
59
62
lvgl_print_heap_info (false);
60
63
#else
61
64
printf ("lvgl in malloc mode\n" );
62
65
#endif
63
66
while (1 ) {
67
+ #ifndef CONFIG_LV_Z_RUN_LVGL_ON_WORKQUEUE
64
68
uint32_t sleep_ms = lv_timer_handler ();
65
-
66
69
k_msleep (MIN (sleep_ms , INT32_MAX ));
70
+ #else
71
+ /* LVGL managed by dedicated workqueue, just put an application side delay */
72
+ k_msleep (10 );
73
+ #endif
67
74
#ifdef CONFIG_LV_Z_DEMO_RENDER_SCENE_DYNAMIC
68
75
if (sys_timepoint_expired (next_scene_switch )) {
69
76
cur_scene = (cur_scene + 1 ) % LV_DEMO_RENDER_SCENE_NUM ;
You can’t perform that action at this time.
0 commit comments