Skip to content

Commit cc78fa9

Browse files
feat(examples): Enable SIMD for S3 boards
1 parent 8b7accd commit cc78fa9

13 files changed

+27
-6
lines changed

bsp/m5dial/idf_component.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
espressif/esp_lvgl_port:
1717
version: "^2"
1818
public: true
19+
override_path: "../../components/esp_lvgl_port"
1920

2021
button:
2122
public: true

bsp/m5stack_core_s3/idf_component.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dependencies:
1616
espressif/esp_lvgl_port:
1717
version: "^2"
1818
public: true
19+
override_path: "../../components/esp_lvgl_port"
1920

2021
esp_codec_dev:
2122
version: "~1.3.1"

examples/display_lvgl_benchmark/main/main.c

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ static char *TAG = "app_main";
1818
void app_main(void)
1919
{
2020
/* Initialize display and LVGL */
21-
#if defined(BSP_LCD_SUB_BOARD_2_H_RES)
22-
/* Only for esp32_s3_lcd_ev_board */
2321
bsp_display_cfg_t cfg = {
2422
.lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(),
23+
.buffer_size = BSP_LCD_DRAW_BUFF_SIZE,
24+
.double_buffer = BSP_LCD_DRAW_BUFF_DOUBLE,
25+
.flags = {
26+
.buff_dma = true,
27+
.buff_spiram = false,
28+
}
2529
};
26-
cfg.lvgl_port_cfg.task_stack = 10000;
30+
cfg.lvgl_port_cfg.task_stack = 10 * 1024;
2731
bsp_display_start_with_config(&cfg);
28-
#else
29-
bsp_display_start();
30-
#endif
3132

3233
/* Set display brightness to 100% */
3334
bsp_display_backlight_on();

examples/display_lvgl_benchmark/sdkconfig.bsp.esp-box

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ CONFIG_LV_MEMCPY_MEMSET_STD=y
3131

3232
## LVGL9 ##
3333
CONFIG_LV_CONF_SKIP=y
34+
CONFIG_LV_DRAW_SW_ASM_CUSTOM=y
35+
CONFIG_LV_DRAW_SW_ASM_CUSTOM_INCLUDE="esp_lvgl_port_lv_blend.h"
3436

3537
#CLIB default
3638
CONFIG_LV_USE_CLIB_MALLOC=y

examples/display_lvgl_benchmark/sdkconfig.bsp.esp-box-3

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ CONFIG_LV_MEMCPY_MEMSET_STD=y
3232

3333
## LVGL9 ##
3434
CONFIG_LV_CONF_SKIP=y
35+
CONFIG_LV_DRAW_SW_ASM_CUSTOM=y
36+
CONFIG_LV_DRAW_SW_ASM_CUSTOM_INCLUDE="esp_lvgl_port_lv_blend.h"
3537

3638
#CLIB default
3739
CONFIG_LV_USE_CLIB_MALLOC=y

examples/display_lvgl_benchmark/sdkconfig.bsp.esp-box-lite

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ CONFIG_LV_MEMCPY_MEMSET_STD=y
3131

3232
## LVGL9 ##
3333
CONFIG_LV_CONF_SKIP=y
34+
CONFIG_LV_DRAW_SW_ASM_CUSTOM=y
35+
CONFIG_LV_DRAW_SW_ASM_CUSTOM_INCLUDE="esp_lvgl_port_lv_blend.h"
3436

3537
#CLIB default
3638
CONFIG_LV_USE_CLIB_MALLOC=y

examples/display_lvgl_benchmark/sdkconfig.bsp.esp32_p4_function_ev_board

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ CONFIG_LV_USE_PERF_MONITOR=y
3939

4040
## LVGL9 ##
4141
CONFIG_LV_CONF_SKIP=y
42+
CONFIG_LV_DEF_REFR_PERIOD=20
4243

4344
#CLIB default
4445
CONFIG_LV_USE_CLIB_MALLOC=y

examples/display_lvgl_benchmark/sdkconfig.bsp.esp32_s2_kaluga_kit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ CONFIG_LV_MEMCPY_MEMSET_STD=y
3131

3232
## LVGL9 ##
3333
CONFIG_LV_CONF_SKIP=y
34+
CONFIG_LV_DEF_REFR_PERIOD=20
3435

3536
#CLIB default
3637
CONFIG_LV_USE_CLIB_MALLOC=y

examples/display_lvgl_benchmark/sdkconfig.bsp.esp32_s3_eye

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ CONFIG_LV_MEMCPY_MEMSET_STD=y
3232

3333
## LVGL9 ##
3434
CONFIG_LV_CONF_SKIP=y
35+
CONFIG_LV_DRAW_SW_ASM_CUSTOM=y
36+
CONFIG_LV_DRAW_SW_ASM_CUSTOM_INCLUDE="esp_lvgl_port_lv_blend.h"
3537

3638
#CLIB default
3739
CONFIG_LV_USE_CLIB_MALLOC=y

examples/display_lvgl_benchmark/sdkconfig.bsp.esp32_s3_korvo_2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ CONFIG_LV_MEMCPY_MEMSET_STD=y
3232

3333
## LVGL9 ##
3434
CONFIG_LV_CONF_SKIP=y
35+
CONFIG_LV_DRAW_SW_ASM_CUSTOM=y
36+
CONFIG_LV_DRAW_SW_ASM_CUSTOM_INCLUDE="esp_lvgl_port_lv_blend.h"
3537

3638
#CLIB default
3739
CONFIG_LV_USE_CLIB_MALLOC=y

0 commit comments

Comments
 (0)