mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-18 13:02:21 +02:00
Eth_examples: added support of ESP32-S3 chip
Defined SPI modules default GPIO values for ESP32-S3 SPI bus needs to be initialized with SPI_DMA_CH_AUTO option * Original commit: espressif/esp-idf@35454b2bf7
This commit is contained in:
committed by
suren-gabrielyan-espressif
parent
cf6ed1cc53
commit
0611b0cb67
@ -1,5 +1,16 @@
|
|||||||
menu "Example Connection Configuration"
|
menu "Example Connection Configuration"
|
||||||
|
|
||||||
|
config EXAMPLE_GPIO_RANGE_MIN
|
||||||
|
int
|
||||||
|
default 0
|
||||||
|
|
||||||
|
config EXAMPLE_GPIO_RANGE_MAX
|
||||||
|
int
|
||||||
|
default 33 if IDF_TARGET_ESP32
|
||||||
|
default 46 if IDF_TARGET_ESP32S2
|
||||||
|
default 19 if IDF_TARGET_ESP32C3
|
||||||
|
default 48 if IDF_TARGET_ESP32S3
|
||||||
|
|
||||||
config EXAMPLE_CONNECT_WIFI
|
config EXAMPLE_CONNECT_WIFI
|
||||||
bool "connect using WiFi interface"
|
bool "connect using WiFi interface"
|
||||||
default y
|
default y
|
||||||
@ -184,12 +195,14 @@ menu "Example Connection Configuration"
|
|||||||
|
|
||||||
config EXAMPLE_ETH_MDC_GPIO
|
config EXAMPLE_ETH_MDC_GPIO
|
||||||
int "SMI MDC GPIO number"
|
int "SMI MDC GPIO number"
|
||||||
|
range EXAMPLE_GPIO_RANGE_MIN EXAMPLE_GPIO_RANGE_MAX
|
||||||
default 23
|
default 23
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SMI MDC.
|
Set the GPIO number used by SMI MDC.
|
||||||
|
|
||||||
config EXAMPLE_ETH_MDIO_GPIO
|
config EXAMPLE_ETH_MDIO_GPIO
|
||||||
int "SMI MDIO GPIO number"
|
int "SMI MDIO GPIO number"
|
||||||
|
range EXAMPLE_GPIO_RANGE_MIN EXAMPLE_GPIO_RANGE_MAX
|
||||||
default 18
|
default 18
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SMI MDIO.
|
Set the GPIO number used by SMI MDIO.
|
||||||
@ -205,41 +218,42 @@ menu "Example Connection Configuration"
|
|||||||
|
|
||||||
config EXAMPLE_ETH_SPI_SCLK_GPIO
|
config EXAMPLE_ETH_SPI_SCLK_GPIO
|
||||||
int "SPI SCLK GPIO number"
|
int "SPI SCLK GPIO number"
|
||||||
range 0 33
|
range EXAMPLE_GPIO_RANGE_MIN EXAMPLE_GPIO_RANGE_MAX
|
||||||
default 20
|
default 14
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI SCLK.
|
Set the GPIO number used by SPI SCLK.
|
||||||
|
|
||||||
config EXAMPLE_ETH_SPI_MOSI_GPIO
|
config EXAMPLE_ETH_SPI_MOSI_GPIO
|
||||||
int "SPI MOSI GPIO number"
|
int "SPI MOSI GPIO number"
|
||||||
range 0 33
|
range EXAMPLE_GPIO_RANGE_MIN EXAMPLE_GPIO_RANGE_MAX
|
||||||
default 19
|
default 13
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI MOSI.
|
Set the GPIO number used by SPI MOSI.
|
||||||
|
|
||||||
config EXAMPLE_ETH_SPI_MISO_GPIO
|
config EXAMPLE_ETH_SPI_MISO_GPIO
|
||||||
int "SPI MISO GPIO number"
|
int "SPI MISO GPIO number"
|
||||||
range 0 33
|
range EXAMPLE_GPIO_RANGE_MIN EXAMPLE_GPIO_RANGE_MAX
|
||||||
default 18
|
default 12
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI MISO.
|
Set the GPIO number used by SPI MISO.
|
||||||
|
|
||||||
config EXAMPLE_ETH_SPI_CS_GPIO
|
config EXAMPLE_ETH_SPI_CS_GPIO
|
||||||
int "SPI CS GPIO number"
|
int "SPI CS GPIO number"
|
||||||
range 0 33
|
range EXAMPLE_GPIO_RANGE_MIN EXAMPLE_GPIO_RANGE_MAX
|
||||||
default 21
|
default 15
|
||||||
help
|
help
|
||||||
Set the GPIO number used by SPI CS.
|
Set the GPIO number used by SPI CS.
|
||||||
|
|
||||||
config EXAMPLE_ETH_SPI_CLOCK_MHZ
|
config EXAMPLE_ETH_SPI_CLOCK_MHZ
|
||||||
int "SPI clock speed (MHz)"
|
int "SPI clock speed (MHz)"
|
||||||
range 20 80
|
range 5 80
|
||||||
default 36
|
default 36
|
||||||
help
|
help
|
||||||
Set the clock speed (MHz) of SPI interface.
|
Set the clock speed (MHz) of SPI interface.
|
||||||
|
|
||||||
config EXAMPLE_ETH_SPI_INT_GPIO
|
config EXAMPLE_ETH_SPI_INT_GPIO
|
||||||
int "Interrupt GPIO number"
|
int "Interrupt GPIO number"
|
||||||
|
range EXAMPLE_GPIO_RANGE_MIN EXAMPLE_GPIO_RANGE_MAX
|
||||||
default 4
|
default 4
|
||||||
help
|
help
|
||||||
Set the GPIO number used by the SPI Ethernet module interrupt line.
|
Set the GPIO number used by the SPI Ethernet module interrupt line.
|
||||||
@ -247,6 +261,7 @@ menu "Example Connection Configuration"
|
|||||||
|
|
||||||
config EXAMPLE_ETH_PHY_RST_GPIO
|
config EXAMPLE_ETH_PHY_RST_GPIO
|
||||||
int "PHY Reset GPIO number"
|
int "PHY Reset GPIO number"
|
||||||
|
range -1 EXAMPLE_GPIO_RANGE_MAX
|
||||||
default 5
|
default 5
|
||||||
help
|
help
|
||||||
Set the GPIO number used to reset PHY chip.
|
Set the GPIO number used to reset PHY chip.
|
||||||
|
Reference in New Issue
Block a user