ethernet:add start stop control

This commit is contained in:
morris
2019-11-28 13:42:14 +08:00
parent 37154d4c08
commit 96e6049dab
12 changed files with 142 additions and 20 deletions

View File

@@ -228,6 +228,7 @@ void register_ethernet()
#endif
esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy);
ESP_ERROR_CHECK(esp_eth_driver_install(&config, &eth_handle));
ESP_ERROR_CHECK(esp_eth_start(eth_handle));
eth_control_args.control = arg_str1(NULL, NULL, "<info>", "Get info of Ethernet");
eth_control_args.end = arg_end(1);