Skip to content

Commit ab6fa37

Browse files
committed
fix(idf6): Fixed compatibility i2c
1 parent 4f5f08f commit ab6fa37

File tree

91 files changed

+448
-378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+448
-378
lines changed

bsp/esp-box-3/CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
2+
set(REQ esp_driver_i2c esp_driver_gpio esp_driver_i2s esp_driver_sdmmc esp_driver_sdspi)
3+
set(PRIV_REQ esp_driver_spi esp_driver_ledc)
4+
else()
5+
set(REQ driver)
6+
set(PRIV_REQ "")
7+
endif()
8+
19
idf_component_register(
210
SRCS "esp-box-3.c" "esp-box-3_idf5.c"
311
INCLUDE_DIRS "include"
412
PRIV_INCLUDE_DIRS "priv_include"
5-
REQUIRES driver spiffs fatfs
6-
PRIV_REQUIRES esp_lcd esp_psram
13+
REQUIRES ${REQ} fatfs
14+
PRIV_REQUIRES ${PRIV_REQ} esp_lcd spiffs esp_psram
715
)

bsp/esp-box-3/README.md

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ ESP32-S3-BOX-3 also uses a Type-C USB connector that provides 5 V of power input
3232
|:heavy_check_mark:|:black_circle: LVGL_PORT| | [espressif/esp_lvgl_port](https://components.espressif.com/components/espressif/esp_lvgl_port) | ^2 |
3333
|:heavy_check_mark:| :point_up: TOUCH | tt21100, gt911 |[espressif/esp_lcd_touch_gt911](https://components.espressif.com/components/espressif/esp_lcd_touch_gt911)<br/>[espressif/esp_lcd_touch_tt21100](https://components.espressif.com/components/espressif/esp_lcd_touch_tt21100)| ^1<br/>^1 |
3434
|:heavy_check_mark:| :radio_button: BUTTONS | | [espressif/button](https://components.espressif.com/components/espressif/button) | ^4 |
35-
|:heavy_check_mark:| :musical_note: AUDIO | | [espressif/esp_codec_dev](https://components.espressif.com/components/espressif/esp_codec_dev) | ~1.3.1 |
35+
|:heavy_check_mark:| :musical_note: AUDIO | | [espressif/esp_codec_dev](https://components.espressif.com/components/espressif/esp_codec_dev) | ~1.5 |
3636
|:heavy_check_mark:| :speaker: AUDIO_SPEAKER| es8311 | | |
3737
|:heavy_check_mark:| :microphone: AUDIO_MIC | es7210 | | |
3838
|:heavy_check_mark:| :floppy_disk: SDCARD | | idf | >=5.3 |
39-
|:heavy_check_mark:| :video_game: IMU | | [espressif/icm42670](https://components.espressif.com/components/espressif/icm42670) | ^2.0.1 |
39+
|:heavy_check_mark:| :video_game: IMU | | [icm42670](https://components.espressif.com/components/icm42670) | ^2.0.2 |
4040

4141
<!-- END_DEPENDENCIES -->
4242
</div>
@@ -61,30 +61,29 @@ ESP32-S3-BOX-3 also uses a Type-C USB connector that provides 5 V of power input
6161

6262
## LVGL Benchmark
6363

64-
65-
**DATE:** 05.09.2025 08:59
64+
**DATE:** 01.10.2025 13:12
6665

6766
**LVGL version:** 9.3.0
6867

6968
| Name | Avg. CPU | Avg. FPS | Avg. time | render time | flush time |
7069
| ---- | :------: | :------: | :-------: | :---------: | :--------: |
71-
| Empty screen | 95% | 25 | 34 | 4 | 30 |
72-
| Moving wallpaper | 99% | 25 | 35 | 5 | 30 |
73-
| Single rectangle | 18% | 89 | 0 | 0 | 0 |
74-
| Multiple rectangles | 96% | 50 | 15 | 2 | 13 |
75-
| Multiple RGB images | 38% | 95 | 0 | 0 | 0 |
76-
| Multiple ARGB images | 34% | 94 | 2 | 2 | 0 |
77-
| Rotated ARGB images | 80% | 57 | 17 | 13 | 4 |
78-
| Multiple labels | 96% | 79 | 8 | 3 | 5 |
79-
| Screen sized text | 100% | 15 | 59 | 29 | 30 |
80-
| Multiple arcs | 28% | 91 | 0 | 0 | 0 |
81-
| Containers | 47% | 76 | 18 | 4 | 14 |
82-
| Containers with overlay | 93% | 20 | 45 | 14 | 31 |
83-
| Containers with opa | 58% | 72 | 18 | 6 | 12 |
84-
| Containers with opa_layer | 66% | 56 | 28 | 15 | 13 |
85-
| Containers with scrolling | 97% | 21 | 43 | 13 | 30 |
86-
| Widgets demo | 96% | 24 | 25 | 11 | 14 |
87-
| All scenes avg. | 71% | 55 | 21 | 7 | 14 |
70+
| Empty screen | 94% | 26 | 33 | 3 | 30 |
71+
| Moving wallpaper | 97% | 25 | 36 | 6 | 30 |
72+
| Single rectangle | 10% | 91 | 0 | 0 | 0 |
73+
| Multiple rectangles | 91% | 50 | 16 | 2 | 14 |
74+
| Multiple RGB images | 17% | 90 | 0 | 0 | 0 |
75+
| Multiple ARGB images | 18% | 87 | 2 | 2 | 0 |
76+
| Rotated ARGB images | 73% | 56 | 18 | 12 | 6 |
77+
| Multiple labels | 89% | 79 | 9 | 3 | 6 |
78+
| Screen sized text | 97% | 15 | 59 | 28 | 31 |
79+
| Multiple arcs | 19% | 91 | 0 | 0 | 0 |
80+
| Containers | 33% | 72 | 15 | 4 | 11 |
81+
| Containers with overlay | 89% | 20 | 45 | 14 | 31 |
82+
| Containers with opa | 49% | 70 | 19 | 7 | 12 |
83+
| Containers with opa_layer | 60% | 53 | 27 | 16 | 11 |
84+
| Containers with scrolling | 95% | 20 | 44 | 14 | 30 |
85+
| Widgets demo | 97% | 25 | 25 | 11 | 14 |
86+
| All scenes avg. | 64% | 54 | 21 | 7 | 14 |
8887

8988

9089

bsp/esp-box-3/idf_component.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
version: "3.0.2"
2+
version: "3.0.3"
33
description: Board Support Package (BSP) for ESP32-S3-BOX-3
44
url: https://github.com/espressif/esp-bsp/tree/master/bsp/esp-box-3
55

@@ -21,16 +21,17 @@ dependencies:
2121
override_path: "../../components/esp_lvgl_port"
2222

2323
esp_codec_dev:
24-
version: "~1.3.1"
24+
version: "~1.5"
2525
public: true
2626

2727
button:
2828
version: "^4"
2929
public: true
3030

3131
icm42670:
32-
version: "^2.0.1"
32+
version: "^2.0.2"
3333
public: true
34+
override_path: "../../components/icm42670"
3435

3536
examples:
3637
- path: ../../examples/display

bsp/esp32_c3_lcdkit/CMakeLists.txt

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
2+
set(REQ esp_driver_gpio esp_driver_i2s esp_driver_i2c esp_driver_sdmmc)
3+
set(PRIV_REQ esp_driver_spi esp_driver_ledc)
4+
else()
5+
set(REQ driver)
6+
set(PRIV_REQ "")
7+
endif()
8+
19
idf_component_register(
210
SRCS "esp32_c3_lcdkit.c"
311
INCLUDE_DIRS "include"
412
PRIV_INCLUDE_DIRS "priv_include"
5-
PRIV_REQUIRES
6-
"esp_lcd"
7-
"esp_psram"
8-
REQUIRES
9-
"driver"
10-
"spiffs"
13+
REQUIRES ${REQ} fatfs
14+
PRIV_REQUIRES ${PRIV_REQ} esp_lcd spiffs esp_psram
1115
)

bsp/esp32_c3_lcdkit/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ ESP32-C3-LCDkit also uses a Type-C USB connector that provides 5 V of power inpu
3232
|:heavy_check_mark:|:black_circle: LVGL_PORT| | [espressif/esp_lvgl_port](https://components.espressif.com/components/espressif/esp_lvgl_port) | ^2 |
3333
| :x: | :point_up: TOUCH | | | |
3434
| :x: | :radio_button: BUTTONS | | | |
35-
|:heavy_check_mark:| :white_circle: KNOB | | [espressif/knob](https://components.espressif.com/components/espressif/knob) | ^0.1.3 |
36-
|:heavy_check_mark:| :musical_note: AUDIO | | [espressif/esp_codec_dev](https://components.espressif.com/components/espressif/esp_codec_dev) | ^1,<1.2 |
35+
|:heavy_check_mark:| :white_circle: KNOB | | [espressif/knob](https://components.espressif.com/components/espressif/knob) | ^1 |
36+
|:heavy_check_mark:| :musical_note: AUDIO | | [espressif/esp_codec_dev](https://components.espressif.com/components/espressif/esp_codec_dev) | ~1.5 |
3737
|:heavy_check_mark:| :speaker: AUDIO_SPEAKER| | | |
3838
| :x: | :microphone: AUDIO_MIC | | | |
3939
|:heavy_check_mark:| :bulb: LED | | idf | >=5.0.0 |

bsp/esp32_c3_lcdkit/idf_component.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "2.0.1"
1+
version: "2.0.2"
22
description: Board Support Package (BSP) for esp32_c3_lcdkit
33
url: https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_c3_lcdkit
44

@@ -30,11 +30,11 @@ dependencies:
3030
version: "^4"
3131

3232
knob:
33-
version: "^0.1.3"
33+
version: "^1"
3434
public: true
3535

3636
esp_codec_dev:
37-
version: "^1,<1.2"
37+
version: "~1.5"
3838
public: true
3939

4040
examples:

bsp/esp32_lyrat/CMakeLists.txt

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
2+
set(REQ esp_driver_i2c esp_driver_gpio esp_driver_i2s esp_driver_sdmmc esp_driver_sdspi)
3+
set(PRIV_REQ esp_driver_ledc)
4+
else()
5+
set(REQ driver)
6+
set(PRIV_REQ "")
7+
endif()
8+
19
idf_component_register(
210
SRCS "esp32_lyrat.c" "esp32_lyrat_idf5.c"
311
INCLUDE_DIRS "include"
412
PRIV_INCLUDE_DIRS "priv_include"
5-
PRIV_REQUIRES esp_psram
6-
REQUIRES driver spiffs fatfs
13+
REQUIRES ${REQ} driver fatfs
14+
PRIV_REQUIRES ${PRIV_REQ} spiffs esp_psram
715
)

bsp/esp32_lyrat/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The ESP32-LyraT is a stereo audio board. If you are looking for a mono audio boa
2929
| :x: | :pager: DISPLAY | | | |
3030
| :x: | :point_up: TOUCH | | | |
3131
|:heavy_check_mark:| :radio_button: BUTTONS| | [espressif/button](https://components.espressif.com/components/espressif/button) | ^4 |
32-
|:heavy_check_mark:| :musical_note: AUDIO | |[espressif/esp_codec_dev](https://components.espressif.com/components/espressif/esp_codec_dev)| ~1.4 |
32+
|:heavy_check_mark:| :musical_note: AUDIO | |[espressif/esp_codec_dev](https://components.espressif.com/components/espressif/esp_codec_dev)| ~1.5 |
3333
|:heavy_check_mark:|:speaker: AUDIO_SPEAKER| es8388 | | |
3434
|:heavy_check_mark:| :microphone: AUDIO_MIC| es8388 | | |
3535
|:heavy_check_mark:| :bulb: LED | | idf | >=5.3 |

bsp/esp32_lyrat/idf_component.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "3.0.0"
1+
version: "3.0.1"
22
description: Board Support Package (BSP) for ESP32-LyraT
33
url: https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_lyrat
44

@@ -16,7 +16,7 @@ dependencies:
1616
public: true
1717

1818
esp_codec_dev:
19-
version: "~1.4"
19+
version: "~1.5"
2020
public: true
2121

2222
examples:
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.3")
2+
set(REQ esp_driver_gpio esp_driver_i2s esp_driver_sdmmc esp_driver_sdspi esp_driver_i2c)
3+
set(PRIV_REQ esp_driver_spi esp_driver_ledc)
4+
else()
5+
set(REQ driver)
6+
set(PRIV_REQ "")
7+
endif()
18

29
idf_component_register(
310
SRCS "esp32_p4_function_ev_board.c"
411
INCLUDE_DIRS "include"
512
PRIV_INCLUDE_DIRS "priv_include"
6-
REQUIRES driver vfs fatfs
7-
PRIV_REQUIRES esp_lcd usb spiffs esp_psram
13+
REQUIRES ${REQ} fatfs
14+
PRIV_REQUIRES ${PRIV_REQ} esp_lcd spiffs esp_psram usb
815
)

0 commit comments

Comments
 (0)