fix(eth): Set default clock in pin value to zero · espressif/arduino-esp32@62d2441 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
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(); |