Fix invalid ETH_MAC_DEFAULT_CONFIG macro in C++

This commit is contained in:
Ondrej Kosta 2021-07-19 09:56:07 +02:00
parent 7c3a4bc26b
commit 02a432b8d3

View File

@ -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