esp_eth: add PHY loopback control via esp_eth_ioctl

Fixed esp_eth_ioctl command's data argument non-standard handling
This commit is contained in:
Ondrej Kosta
2021-09-03 17:24:01 +02:00
parent 502e132e5d
commit 76326e8268
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);
}