Merge branch 'bugfix/eth-start-spi-initialize-failure' into 'master'

comm_components: eth_start initializes spi bus with SPI_DMA_CH_AUTO

See merge request espressif/esp-idf!23041
pull/10526/merge
Xie Qi Nan 2023-04-19 10:16:35 +08:00
commit df9310ada2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -122,7 +122,7 @@ static esp_netif_t *eth_start(void)
.quadwp_io_num = -1,
.quadhd_io_num = -1,
};
ESP_ERROR_CHECK(spi_bus_initialize(CONFIG_EXAMPLE_ETH_SPI_HOST, &buscfg, 1));
ESP_ERROR_CHECK(spi_bus_initialize(CONFIG_EXAMPLE_ETH_SPI_HOST, &buscfg, SPI_DMA_CH_AUTO));
spi_device_interface_config_t spi_devcfg = {
.mode = 0,
.clock_speed_hz = CONFIG_EXAMPLE_ETH_SPI_CLOCK_MHZ * 1000 * 1000,