eth: hide spi configuration when using internal emac

* Original commit: espressif/esp-idf@8d0a0537cc
This commit is contained in:
morris
2020-11-27 11:44:42 +08:00
committed by suren-gabrielyan-espressif
parent df6a208f45
commit e2653e7fb0

View File

@ -30,7 +30,10 @@ menu "Example Connection Configuration"
Choose this option to connect with Ethernet Choose this option to connect with Ethernet
if EXAMPLE_CONNECT_ETHERNET if EXAMPLE_CONNECT_ETHERNET
choice EXAMPLE_USE_ETHERNET config EXAMPLE_USE_SPI_ETHERNET
bool
choice EXAMPLE_ETHERNET_TYPE
prompt "Ethernet Type" prompt "Ethernet Type"
default EXAMPLE_USE_INTERNAL_ETHERNET if IDF_TARGET_ESP32 default EXAMPLE_USE_INTERNAL_ETHERNET if IDF_TARGET_ESP32
default EXAMPLE_USE_W5500 default EXAMPLE_USE_W5500
@ -46,6 +49,7 @@ menu "Example Connection Configuration"
config EXAMPLE_USE_DM9051 config EXAMPLE_USE_DM9051
bool "DM9051 Module" bool "DM9051 Module"
select EXAMPLE_USE_SPI_ETHERNET
select ETH_USE_SPI_ETHERNET select ETH_USE_SPI_ETHERNET
select ETH_SPI_ETHERNET_DM9051 select ETH_SPI_ETHERNET_DM9051
help help
@ -53,6 +57,7 @@ menu "Example Connection Configuration"
config EXAMPLE_USE_W5500 config EXAMPLE_USE_W5500
bool "W5500 Module" bool "W5500 Module"
select EXAMPLE_USE_SPI_ETHERNET
select ETH_USE_SPI_ETHERNET select ETH_USE_SPI_ETHERNET
select ETH_SPI_ETHERNET_W5500 select ETH_SPI_ETHERNET_W5500
help help
@ -68,7 +73,7 @@ menu "Example Connection Configuration"
not officially supported. Examples built with this option enabled not officially supported. Examples built with this option enabled
will not run on a real ESP32 chip. will not run on a real ESP32 chip.
endchoice endchoice # EXAMPLE_ETHERNET_TYPE
if EXAMPLE_USE_INTERNAL_ETHERNET if EXAMPLE_USE_INTERNAL_ETHERNET
choice EXAMPLE_ETH_PHY_MODEL choice EXAMPLE_ETH_PHY_MODEL
@ -115,7 +120,7 @@ menu "Example Connection Configuration"
Set the GPIO number used by SMI MDIO. Set the GPIO number used by SMI MDIO.
endif endif
if ETH_USE_SPI_ETHERNET if EXAMPLE_USE_SPI_ETHERNET
config EXAMPLE_ETH_SPI_HOST config EXAMPLE_ETH_SPI_HOST
int "SPI Host Number" int "SPI Host Number"
range 0 2 range 0 2
@ -163,7 +168,7 @@ menu "Example Connection Configuration"
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.
endif # ETH_USE_SPI_ETHERNET endif # EXAMPLE_USE_SPI_ETHERNET
config EXAMPLE_ETH_PHY_RST_GPIO config EXAMPLE_ETH_PHY_RST_GPIO
int "PHY Reset GPIO number" int "PHY Reset GPIO number"
@ -178,7 +183,7 @@ menu "Example Connection Configuration"
default 1 default 1
help help
Set PHY address according your board schematic. Set PHY address according your board schematic.
endif endif # EXAMPLE_CONNECT_ETHERNET
config EXAMPLE_CONNECT_IPV6 config EXAMPLE_CONNECT_IPV6
bool "Obtain IPv6 address" bool "Obtain IPv6 address"