File tree 5 files changed +19
-20
lines changed
examples/display_lvgl_demos/main
5 files changed +19
-20
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
- ## 2.5.0
3
+ ## 2.5.0 [ Unreleased ]
4
4
5
5
### Features (Functional change for button v4 users)
6
6
- Updated LVGL port for using IoT button component v4 (LVGL port not anymore creating button, need to be created in app and included handle to LVGL port)
7
+ - Added SIMD support also for LVGL 9.2 and above
7
8
8
9
### Fixes
9
10
- Fixed buffer size by selected color format
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ endif()
24
24
25
25
if ("${lvgl_ver} " STREQUAL "" )
26
26
message ("Could not determine LVGL version, assuming v9.x" )
27
- set (lvgl_ver "9.0 .0" )
27
+ set (lvgl_ver "9.1 .0" ) # With 9.1 we assume support for SIMD acceleration
28
28
endif ()
29
29
30
30
# Select folder by LVGL version
@@ -77,9 +77,8 @@ if("usb_host_hid" IN_LIST build_components)
77
77
endif ()
78
78
79
79
# Include SIMD assembly source code for rendering, only for (9.1.0 <= LVG_version < 9.2.0) and only for esp32 and esp32s3
80
- if ((lvgl_ver VERSION_GREATER_EQUAL "9.1.0" ) AND (lvgl_ver VERSION_LESS "9.2.0" ) )
80
+ if ((lvgl_ver VERSION_GREATER_EQUAL "9.1.0" ))
81
81
if (CONFIG_IDF_TARGET_ESP32 OR CONFIG_IDF_TARGET_ESP32S3)
82
- message (VERBOSE "Compiling SIMD" )
83
82
if (CONFIG_IDF_TARGET_ESP32S3)
84
83
file (GLOB_RECURSE ASM_SRCS ${PORT_PATH} /simd/*_esp32s3.S) # Select only esp32s3 related files
85
84
else ()
Original file line number Diff line number Diff line change @@ -18,6 +18,19 @@ extern "C" {
18
18
#warning "esp_lvgl_port_lv_blend.h included, but CONFIG_LV_DRAW_SW_ASM_CUSTOM not set. Assembly rendering not used"
19
19
#else
20
20
21
+ #include "lvgl.h"
22
+
23
+ /**
24
+ * LVGL 9.2 changed the blending API compared to 9.1
25
+ * The types were moved to lv_draw_sw_blend_private.h
26
+ * and the leading underscore from type names was removed
27
+ */
28
+ #if __has_include ("draw/sw/blend/lv_draw_sw_blend_private.h" )
29
+ #include "draw/sw/blend/lv_draw_sw_blend_private.h"
30
+ #define _lv_draw_sw_blend_fill_dsc_t lv_draw_sw_blend_fill_dsc_t
31
+ #define _lv_draw_sw_blend_image_dsc_t lv_draw_sw_blend_image_dsc_t
32
+ #endif
33
+
21
34
/*********************
22
35
* DEFINES
23
36
*********************/
Original file line number Diff line number Diff line change 1
- set (LV_DEMO_DIR "" )
2
- set (LV_DEMOS_SOURCES "" )
3
- if (CONFIG_LV_USE_DEMO_BENCHMARK)
4
- list (APPEND LV_DEMO_DIR ../managed_components/lvgl__lvgl/demos)
5
- file (GLOB_RECURSE LV_DEMOS_SOURCES ${LV_DEMO_DIR} /*.c)
6
- endif ()
7
-
8
1
idf_component_register(
9
- SRCS "dispaly_lvgl_demos_main.c" ${LV_DEMOS_SOURCES}
10
- INCLUDE_DIRS "." ${LV_DEMO_DIR} )
11
-
12
- if (CONFIG_LV_USE_DEMO_BENCHMARK)
13
- set_source_files_properties (
14
- ${LV_DEMOS_SOURCES}
15
- PROPERTIES COMPILE_OPTIONS
16
- -DLV_LVGL_H_INCLUDE_SIMPLE)
17
- endif ()
2
+ SRCS "display_lvgl_demos_main.c"
3
+ INCLUDE_DIRS "." )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments