From 02a432b8d3a9271d05865a9628b9ac4c1413d9d1 Mon Sep 17 00:00:00 2001 From: Ondrej Kosta Date: Mon, 19 Jul 2021 09:56:07 +0200 Subject: [PATCH] Fix invalid ETH_MAC_DEFAULT_CONFIG macro in C++ --- components/esp_eth/include/esp_eth_mac.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/esp_eth/include/esp_eth_mac.h b/components/esp_eth/include/esp_eth_mac.h index c725573770..f1e790c756 100644 --- a/components/esp_eth/include/esp_eth_mac.h +++ b/components/esp_eth/include/esp_eth_mac.h @@ -397,7 +397,14 @@ typedef struct { .smi_mdio_gpio_num = 18, \ .flags = 0, \ .interface = EMAC_DATA_INTERFACE_RMII, \ - .clock_config.rmii.clock_mode = EMAC_CLK_DEFAULT, \ + .clock_config = \ + { \ + .rmii = \ + { \ + .clock_mode = EMAC_CLK_DEFAULT, \ + .clock_gpio = EMAC_CLK_IN_GPIO \ + } \ + } \ } #if CONFIG_ETH_USE_ESP32_EMAC