Skip to content

Commit f4545dc

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

File tree

6 files changed

+27
-6
lines changed

6 files changed

+27
-6
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
idf_component_register(SRCS "esp_io_expander_ht8574.c" INCLUDE_DIRS "include" REQUIRES "driver")
1+
set(req)
2+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.2.6")
3+
list(APPEND req "esp_driver_i2c")
4+
else()
5+
list(APPEND req "driver")
6+
endif()
7+
8+
idf_component_register(SRCS "esp_io_expander_ht8574.c" INCLUDE_DIRS "include" REQUIRES ${req})

components/io_expander/esp_io_expander_ht8574/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2.0.0
1+
version: 2.0.1
22
description: ESP IO Expander - HT8574
33
url: https://github.com/espressif/esp-bsp/tree/master/components/io_expander/esp_io_expander_ht8574
44
dependencies:
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
idf_component_register(SRCS "esp_io_expander_tca9554.c" INCLUDE_DIRS "include" REQUIRES "driver")
1+
set(req)
2+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.2.6")
3+
list(APPEND req "esp_driver_i2c")
4+
else()
5+
list(APPEND req "driver")
6+
endif()
7+
8+
idf_component_register(SRCS "esp_io_expander_tca9554.c" INCLUDE_DIRS "include" REQUIRES ${req})

components/io_expander/esp_io_expander_tca9554/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: "2.0.1"
1+
version: "2.0.2"
22
description: ESP IO Expander - TCA9554(A)
33
url: https://github.com/espressif/esp-bsp/tree/master/components/io_expander/esp_io_expander_tca9554
44
dependencies:
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
idf_component_register(SRCS "esp_io_expander_tca95xx_16bit.c" INCLUDE_DIRS "include" REQUIRES "driver")
1+
set(req)
2+
if("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.2.6")
3+
list(APPEND req "esp_driver_i2c")
4+
else()
5+
list(APPEND req "driver")
6+
endif()
7+
8+
idf_component_register(SRCS "esp_io_expander_tca95xx_16bit.c" INCLUDE_DIRS "include" REQUIRES ${req})

components/io_expander/esp_io_expander_tca95xx_16bit/idf_component.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 2.0.0
1+
version: 2.0.1
22
description: ESP IO Expander - tca9539 and tca9555
33
url: https://github.com/espressif/esp-bsp/tree/master/components/io_expander/esp_io_expander_tca95xx_16bit
44
dependencies:

0 commit comments

Comments
 (0)