forked from espressif/esp-idf
esp_eth: fix default PHY reset gpio
Closes https://github.com/espressif/esp-idf/issues/7034
This commit is contained in:
@@ -5,7 +5,7 @@ COMPONENT_ADD_INCLUDEDIRS := include
|
||||
COMPONENT_SRCDIRS := src
|
||||
|
||||
ifndef CONFIG_ETH_USE_ESP32_EMAC
|
||||
COMPONENT_OBJEXCLUDE += src/esp_eth_mac_esp32.o
|
||||
COMPONENT_OBJEXCLUDE += src/esp_eth_mac_esp.o
|
||||
endif
|
||||
|
||||
ifndef CONFIG_ETH_SPI_ETHERNET_DM9051
|
||||
|
@@ -145,7 +145,7 @@ menu "Example Configuration"
|
||||
range 0 34 if IDF_TARGET_ESP32
|
||||
range 0 46 if IDF_TARGET_ESP32S2
|
||||
range 0 19 if IDF_TARGET_ESP32C3
|
||||
default 5 if IDF_TARGET_ESP32
|
||||
default 16 if IDF_TARGET_ESP32
|
||||
default 21 if IDF_TARGET_ESP32S2
|
||||
default 10 if IDF_TARGET_ESP32C3
|
||||
help
|
||||
@@ -169,8 +169,7 @@ menu "Example Configuration"
|
||||
|
||||
config EXAMPLE_ETH_PHY_RST_GPIO
|
||||
int "PHY Reset GPIO number"
|
||||
default 16 if IDF_TARGET_ESP32
|
||||
default 5 if IDF_TARGET_ESP32S2 || IDF_TARGET_ESP32C3
|
||||
default 5
|
||||
help
|
||||
Set the GPIO number used to reset PHY chip.
|
||||
Set to -1 to disable PHY chip hardware reset.
|
||||
|
Reference in New Issue
Block a user