esp_eth: Update esp32's EMAC API to decouple driver and vendor config

This commit is contained in:
David Cermak
2022-01-24 15:40:11 +01:00
committed by David Čermák
parent 1dc60730ee
commit 8da2e4088c
16 changed files with 125 additions and 105 deletions
@@ -101,7 +101,6 @@ void app_main(void)
enc28j60_config.int_gpio_num = CONFIG_EXAMPLE_ENC28J60_INT_GPIO;
eth_mac_config_t mac_config = ETH_MAC_DEFAULT_CONFIG();
mac_config.p_custom_mac = NULL; // ENC28J60 MAC doesn't use any specific config
esp_eth_mac_t *mac = esp_eth_mac_new_enc28j60(&enc28j60_config, &mac_config);
eth_phy_config_t phy_config = ETH_PHY_DEFAULT_CONFIG();