From 83f2d802ce4d613a60fa223066eebd949c7d0acb Mon Sep 17 00:00:00 2001 From: morris Date: Tue, 18 May 2021 10:50:01 +0800 Subject: [PATCH] esp_eth: fix default PHY reset gpio Closes https://github.com/espressif/esp-idf/issues/7034 --- components/esp_eth/component.mk | 2 +- examples/ethernet/basic/main/Kconfig.projbuild | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/components/esp_eth/component.mk b/components/esp_eth/component.mk index 4650d5f5c4..3426f54cde 100644 --- a/components/esp_eth/component.mk +++ b/components/esp_eth/component.mk @@ -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 diff --git a/examples/ethernet/basic/main/Kconfig.projbuild b/examples/ethernet/basic/main/Kconfig.projbuild index 2d01147086..be155389b2 100644 --- a/examples/ethernet/basic/main/Kconfig.projbuild +++ b/examples/ethernet/basic/main/Kconfig.projbuild @@ -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.