i2c GPIOs default configuration separately for esp32 and esp32S3
This commit is contained in:
parent
0142db8859
commit
e4d1a8c953
44
Kconfig
44
Kconfig
|
|
@ -1,4 +1,18 @@
|
||||||
menu "WebGUIApp"
|
menu "WebGUIApp"
|
||||||
|
|
||||||
|
|
||||||
|
config GPIO_RANGE_MIN
|
||||||
|
int
|
||||||
|
default 0
|
||||||
|
|
||||||
|
config GPIO_RANGE_MAX
|
||||||
|
int
|
||||||
|
default 36 if IDF_TARGET_ESP32
|
||||||
|
default 46 if IDF_TARGET_ESP32S2
|
||||||
|
default 19 if IDF_TARGET_ESP32C3
|
||||||
|
default 48 if IDF_TARGET_ESP32S3
|
||||||
|
|
||||||
|
|
||||||
config APP_PROJECT_VER
|
config APP_PROJECT_VER
|
||||||
string "Device firmware version"
|
string "Device firmware version"
|
||||||
default "0.0.0.0000"
|
default "0.0.0.0000"
|
||||||
|
|
@ -102,16 +116,7 @@ menu "WebGUIApp"
|
||||||
|
|
||||||
if WEBGUIAPP_SPI_ENABLE
|
if WEBGUIAPP_SPI_ENABLE
|
||||||
|
|
||||||
config GPIO_RANGE_MIN
|
|
||||||
int
|
|
||||||
default 0
|
|
||||||
|
|
||||||
config GPIO_RANGE_MAX
|
|
||||||
int
|
|
||||||
default 36 if IDF_TARGET_ESP32
|
|
||||||
default 46 if IDF_TARGET_ESP32S2
|
|
||||||
default 19 if IDF_TARGET_ESP32C3
|
|
||||||
default 48 if IDF_TARGET_ESP32S3
|
|
||||||
|
|
||||||
config SPI_HOST
|
config SPI_HOST
|
||||||
int "SPI Host Number"
|
int "SPI Host Number"
|
||||||
|
|
@ -165,13 +170,15 @@ menu "WebGUIApp"
|
||||||
|
|
||||||
config I2C_SCL_GPIO
|
config I2C_SCL_GPIO
|
||||||
int "I2C SCL GPIO number"
|
int "I2C SCL GPIO number"
|
||||||
range 0 34
|
range GPIO_RANGE_MIN GPIO_RANGE_MAX
|
||||||
default 22
|
default 22 if IDF_TARGET_ESP32
|
||||||
|
default 15 if IDF_TARGET_ESP32S3
|
||||||
|
|
||||||
config I2C_SDA_GPIO
|
config I2C_SDA_GPIO
|
||||||
int "I2C SDA GPIO number"
|
int "I2C SDA GPIO number"
|
||||||
range 0 34
|
range GPIO_RANGE_MIN GPIO_RANGE_MAX
|
||||||
default 21
|
default 21 if IDF_TARGET_ESP32
|
||||||
|
default 16 if IDF_TARGET_ESP32S3
|
||||||
|
|
||||||
config I2C_CLOCK
|
config I2C_CLOCK
|
||||||
int "I2C clock"
|
int "I2C clock"
|
||||||
|
|
@ -275,17 +282,6 @@ menu "WebGUIApp"
|
||||||
bool "Default Ethernet DHCP client on"
|
bool "Default Ethernet DHCP client on"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
config GPIO_RANGE_MIN
|
|
||||||
int
|
|
||||||
default 0
|
|
||||||
|
|
||||||
config GPIO_RANGE_MAX
|
|
||||||
int
|
|
||||||
default 36 if IDF_TARGET_ESP32
|
|
||||||
default 46 if IDF_TARGET_ESP32S2
|
|
||||||
default 19 if IDF_TARGET_ESP32C3
|
|
||||||
default 48 if IDF_TARGET_ESP32S3
|
|
||||||
|
|
||||||
config USE_INTERNAL_ETHERNET
|
config USE_INTERNAL_ETHERNET
|
||||||
depends on IDF_TARGET_ESP32
|
depends on IDF_TARGET_ESP32
|
||||||
select ETH_USE_ESP32_EMAC
|
select ETH_USE_ESP32_EMAC
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user