Merge branch 'feature/set_phy_loopback' into 'master'

esp_eth: add PHY loopback control via esp_eth_ioctl

Closes IDF-3865

See merge request espressif/esp-idf!15096
This commit is contained in:
Ondrej Kosta
2021-09-15 13:07:21 +00:00
13 changed files with 202 additions and 7 deletions

View File

@@ -242,7 +242,8 @@ static void initialize_ethernet(void)
0x02, 0x00, 0x00, 0x12, 0x34, 0x56
}));
#endif
esp_eth_ioctl(s_eth_handle, ETH_CMD_S_PROMISCUOUS, (void *)true);
bool eth_promiscuous = true;
esp_eth_ioctl(s_eth_handle, ETH_CMD_S_PROMISCUOUS, &eth_promiscuous);
esp_eth_start(s_eth_handle);
}