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