ESPHome 2026.4.0-dev
Loading...
Searching...
No Matches
ethernet_helpers.c
Go to the documentation of this file.
2#ifdef USE_ESP32
3#include "esp_eth_mac_esp.h"
4
5// ETH_ESP32_EMAC_DEFAULT_CONFIG() uses out-of-order designated initializers
6// which are valid in C but not in C++. This wrapper allows C++ code to get
7// the default config without replicating the macro's contents.
8#if CONFIG_ETH_USE_ESP32_EMAC
9eth_esp32_emac_config_t eth_esp32_emac_default_config(void) {
10 return (eth_esp32_emac_config_t) ETH_ESP32_EMAC_DEFAULT_CONFIG();
11}
12#endif
13#endif // USE_ESP32
eth_esp32_emac_config_t eth_esp32_emac_default_config(void)