File tree 3 files changed +28
-2
lines changed
samples/modules/lvgl/demos
3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change
1
+ #
2
+ # Copyright 2024, NXP
3
+ #
4
+ # SPDX-License-Identifier: Apache-2.0
5
+ #
6
+
7
+ # Sample will allocate buffer equal to: (panelwidth / 8) * (panelwidth / 4) * pixel depth. For a
8
+ # 1280x720 display in a 16-bpp format (e.g. RGB565), this is (1280 / 8) * (720 / 4) * 2 = 57600
9
+ # bytes. We include 128 bytes of padding for kernel heap structures
10
+ CONFIG_HEAP_MEM_POOL_SIZE=57600
Original file line number Diff line number Diff line change @@ -4,13 +4,22 @@ sample:
4
4
common :
5
5
modules :
6
6
- lvgl
7
- harness : none
7
+ harness : console
8
8
filter : dt_chosen_enabled("zephyr,display")
9
+ extra_args :
10
+ - platform:mimxrt1060_evk:SHIELD=rk043fn66hs_ctg
11
+ - platform:mimxrt1170_evk/mimxrt1176/cm7:SHIELD=rk055hdmipi4ma0
12
+ - platform:mimxrt595_evk/mimxrt595s/cm33:SHIELD=rk055hdmipi4ma0
9
13
tags :
10
14
- samples
11
15
- display
12
16
- lvgl
13
17
- gui
18
+ harness_config :
19
+ fixture : fixture_display
20
+ type : one_line
21
+ regex :
22
+ - " \\ [\\ w+ free bytes, \\ w+ allocated bytes, overhead = \\ w+ bytes | lvgl in malloc mode\\ ]"
14
23
tests :
15
24
sample.modules.lvgl.demo_music :
16
25
extra_configs :
24
33
sample.modules.lvgl.demo_widgets :
25
34
extra_configs :
26
35
- CONFIG_LV_Z_DEMO_WIDGETS=y
36
+
27
37
sample.modules.lvgl.demos.st_b_lcd40_dsi1_mb1166 :
28
38
filter : dt_compat_enabled("orisetech,otm8009a")
29
39
platform_allow : stm32h747i_disco/stm32h747xx/m7
Original file line number Diff line number Diff line change 7
7
#include <zephyr/kernel.h>
8
8
#include <zephyr/drivers/display.h>
9
9
#include <lvgl.h>
10
+ #include <lvgl_mem.h>
10
11
#include <lv_demos.h>
12
+ #include <stdio.h>
11
13
12
14
#define LOG_LEVEL CONFIG_LOG_DEFAULT_LEVEL
13
15
#include <zephyr/logging/log.h>
@@ -38,7 +40,11 @@ int main(void)
38
40
39
41
lv_task_handler ();
40
42
display_blanking_off (display_dev );
41
-
43
+ #ifdef CONFIG_LV_Z_MEM_POOL_SYS_HEAP
44
+ lvgl_print_heap_info (false);
45
+ #else
46
+ printf ("lvgl in malloc mode\n" );
47
+ #endif
42
48
while (1 ) {
43
49
uint32_t sleep_ms = lv_task_handler ();
44
50
You can’t perform that action at this time.
0 commit comments