fix(eth): Set default clock in pin value to zero · espressif/arduino-esp32@62d2441 (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 62d2441

fix(eth): Set default clock in pin value to zero

When Arduino is used as component, `CONFIG_ETH_RMII_CLK_IN_GPIO` might not be defined, so we set it to const `0` to clear the issue.

File tree

1 file changed

lines changed

1 file changed

lines changed

Lines changed: 1 addition & 1 deletion

Original file line number Diff line number Diff line change
@@ -210,7 +210,7 @@ bool ETHClass::begin(eth_phy_type_t type, int32_t phy_addr, int mdc, int mdio, i
210 210
211 211 #if CONFIG_IDF_TARGET_ESP32
212 212 #undef DEFAULT_RMII_CLK_GPIO
213 -#define DEFAULT_RMII_CLK_GPIO (emac_rmii_clock_gpio_t)(CONFIG_ETH_RMII_CLK_IN_GPIO)
213 +#define DEFAULT_RMII_CLK_GPIO (emac_rmii_clock_gpio_t)(0)
214 214 #endif
215 215
216 216 eth_esp32_emac_config_t mac_config = ETH_EMAC_DEFAULT_CONFIG();