ESPHome
2026.4.0-dev
Loading...
Searching...
No Matches
esphome
components
ethernet
ethernet_helpers.c
Go to the documentation of this file.
1
#include "
esphome/core/defines.h
"
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
9
eth_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
defines.h
eth_esp32_emac_default_config
eth_esp32_emac_config_t eth_esp32_emac_default_config(void)
Definition
ethernet_helpers.c:9
Generated by
1.12.0