mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-19 23:45:28 +02:00
esp_eth: Update esp32's EMAC API to decouple driver and vendor config
This commit is contained in:
committed by
David Čermák
parent
1dc60730ee
commit
8da2e4088c
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user