added default GPIOs separately for esp32 and esp32S3

This commit is contained in:
Bogdan Pilyugin 2023-02-20 15:32:00 +02:00
parent 36994cd33d
commit 0142db8859
2 changed files with 22 additions and 8 deletions

28
Kconfig
View File

@ -101,7 +101,18 @@ menu "WebGUIApp"
Set enabled SPI bus Set enabled SPI bus
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"
range 0 2 range 0 2
@ -111,22 +122,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.

@ -1 +1 @@
Subproject commit a646e3ee0594ec2301e9b3fe6373ea274eb39e39 Subproject commit 03ff681a61cb03a43c6f008601a6e6090e9df2bd