i2c default GPIOs set separately for esp32 and esp32S3 chips
This commit is contained in:
parent
77a59eb45a
commit
3db7072088
54
Kconfig
54
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"
|
||||||
|
|
@ -101,7 +115,9 @@ menu "WebGUIApp"
|
||||||
Set enabled SPI bus
|
Set enabled SPI bus
|
||||||
|
|
||||||
if WEBGUIAPP_SPI_ENABLE
|
if WEBGUIAPP_SPI_ENABLE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
config SPI_HOST
|
config SPI_HOST
|
||||||
int "SPI Host Number"
|
int "SPI Host Number"
|
||||||
range 0 2
|
range 0 2
|
||||||
|
|
@ -111,22 +127,25 @@ menu "WebGUIApp"
|
||||||
|
|
||||||
config SPI_SCLK_GPIO
|
config SPI_SCLK_GPIO
|
||||||
int "SPI SCLK GPIO number"
|
int "SPI SCLK GPIO number"
|
||||||
range 0 33
|
range GPIO_RANGE_MIN GPIO_RANGE_MAX
|
||||||
default 18
|
default 18 if IDF_TARGET_ESP32
|
||||||
|
default 36 if IDF_TARGET_ESP32S3
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI SCLK.
|
Set the GPIO number used by SPI SCLK.
|
||||||
|
|
||||||
config SPI_MOSI_GPIO
|
config SPI_MOSI_GPIO
|
||||||
int "SPI MOSI GPIO number"
|
int "SPI MOSI GPIO number"
|
||||||
range 0 33
|
range GPIO_RANGE_MIN GPIO_RANGE_MAX
|
||||||
default 23
|
default 23 if IDF_TARGET_ESP32
|
||||||
|
default 35 if IDF_TARGET_ESP32S3
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI MOSI.
|
Set the GPIO number used by SPI MOSI.
|
||||||
|
|
||||||
config SPI_MISO_GPIO
|
config SPI_MISO_GPIO
|
||||||
int "SPI MISO GPIO number"
|
int "SPI MISO GPIO number"
|
||||||
range 0 33
|
range GPIO_RANGE_MIN GPIO_RANGE_MAX
|
||||||
default 19
|
default 19 if IDF_TARGET_ESP32
|
||||||
|
default 37 if IDF_TARGET_ESP32S3
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI MISO.
|
Set the GPIO number used by SPI MISO.
|
||||||
|
|
||||||
|
|
@ -151,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"
|
||||||
|
|
@ -260,17 +281,6 @@ menu "WebGUIApp"
|
||||||
config WEBGUIAPP_ETHERNET_DHCP_DEFAULT
|
config WEBGUIAPP_ETHERNET_DHCP_DEFAULT
|
||||||
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
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit a646e3ee0594ec2301e9b3fe6373ea274eb39e39
|
Subproject commit 5342a39a179a4dddede680615bf4694755d2a59d
|
||||||
Loading…
Reference in New Issue
Block a user