fix(esp_eth): fix C++ invalid type conversion error

Closes https://github.com/espressif/esp-idf/issues/14265
This commit is contained in:
David Roman 2024-07-30 12:32:34 +02:00
parent 23e4823f17
commit b3f0559b2f

View File

@ -230,7 +230,7 @@ typedef enum {
.rmii = \ .rmii = \
{ \ { \
.clock_mode = DEFAULT_RMII_CLK_MODE, \ .clock_mode = DEFAULT_RMII_CLK_MODE, \
.clock_gpio = DEFAULT_RMII_CLK_GPIO \ .clock_gpio = (emac_rmii_clock_gpio_t) DEFAULT_RMII_CLK_GPIO \
} \ } \
}, \ }, \
.dma_burst_len = ETH_DMA_BURST_LEN_32, \ .dma_burst_len = ETH_DMA_BURST_LEN_32, \
@ -250,7 +250,7 @@ typedef enum {
.rmii = \ .rmii = \
{ \ { \
.clock_mode = EMAC_CLK_EXT_IN, \ .clock_mode = EMAC_CLK_EXT_IN, \
.clock_gpio = 50 \ .clock_gpio = (emac_rmii_clock_gpio_t) 50 \
} \ } \
}, \ }, \
.clock_config_out_in = \ .clock_config_out_in = \
@ -258,7 +258,7 @@ typedef enum {
.rmii = \ .rmii = \
{ \ { \
.clock_mode = EMAC_CLK_EXT_IN, \ .clock_mode = EMAC_CLK_EXT_IN, \
.clock_gpio = -1 \ .clock_gpio = (emac_rmii_clock_gpio_t) -1 \
} \ } \
}, \ }, \
.dma_burst_len = ETH_DMA_BURST_LEN_32, \ .dma_burst_len = ETH_DMA_BURST_LEN_32, \