mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-10 04:43:33 +00:00
ethernet: not using test MAC address for EMAC example
This commit is contained in:
@@ -145,7 +145,7 @@ void app_main(void)
|
|||||||
esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy);
|
esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy);
|
||||||
esp_eth_handle_t eth_handle = NULL;
|
esp_eth_handle_t eth_handle = NULL;
|
||||||
ESP_ERROR_CHECK(esp_eth_driver_install(&config, ð_handle));
|
ESP_ERROR_CHECK(esp_eth_driver_install(&config, ð_handle));
|
||||||
#if CONFIG_ETH_USE_SPI_ETHERNET
|
#if !CONFIG_EXAMPLE_USE_INTERNAL_ETHERNET
|
||||||
/* The SPI Ethernet module might doesn't have a burned factory MAC address, we cat to set it manually.
|
/* The SPI Ethernet module might doesn't have a burned factory MAC address, we cat to set it manually.
|
||||||
02:00:00 is a Locally Administered OUI range so should not be used except when testing on a LAN under your control.
|
02:00:00 is a Locally Administered OUI range so should not be used except when testing on a LAN under your control.
|
||||||
*/
|
*/
|
||||||
|
@@ -218,7 +218,7 @@ static void initialize_ethernet(void)
|
|||||||
esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy);
|
esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy);
|
||||||
config.stack_input = pkt_eth2wifi;
|
config.stack_input = pkt_eth2wifi;
|
||||||
ESP_ERROR_CHECK(esp_eth_driver_install(&config, &s_eth_handle));
|
ESP_ERROR_CHECK(esp_eth_driver_install(&config, &s_eth_handle));
|
||||||
#if CONFIG_ETH_USE_SPI_ETHERNET
|
#if !CONFIG_EXAMPLE_USE_INTERNAL_ETHERNET
|
||||||
/* The SPI Ethernet module might doesn't have a burned factory MAC address, we cat to set it manually.
|
/* The SPI Ethernet module might doesn't have a burned factory MAC address, we cat to set it manually.
|
||||||
02:00:00 is a Locally Administered OUI range so should not be used except when testing on a LAN under your control.
|
02:00:00 is a Locally Administered OUI range so should not be used except when testing on a LAN under your control.
|
||||||
*/
|
*/
|
||||||
|
@@ -253,7 +253,7 @@ void register_ethernet(void)
|
|||||||
#endif // CONFIG_ETH_USE_SPI_ETHERNET
|
#endif // CONFIG_ETH_USE_SPI_ETHERNET
|
||||||
esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy);
|
esp_eth_config_t config = ETH_DEFAULT_CONFIG(mac, phy);
|
||||||
ESP_ERROR_CHECK(esp_eth_driver_install(&config, ð_handle));
|
ESP_ERROR_CHECK(esp_eth_driver_install(&config, ð_handle));
|
||||||
#if CONFIG_ETH_USE_SPI_ETHERNET
|
#if !CONFIG_EXAMPLE_USE_INTERNAL_ETHERNET
|
||||||
/* The SPI Ethernet module might doesn't have a burned factory MAC address, we cat to set it manually.
|
/* The SPI Ethernet module might doesn't have a burned factory MAC address, we cat to set it manually.
|
||||||
02:00:00 is a Locally Administered OUI range so should not be used except when testing on a LAN under your control.
|
02:00:00 is a Locally Administered OUI range so should not be used except when testing on a LAN under your control.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user