From 745780cdc49cd151635d9db2a44049ff667dcbcd Mon Sep 17 00:00:00 2001 From: xieqinan Date: Mon, 3 Apr 2023 14:48:22 +0800 Subject: [PATCH] comm_components: eth_start initializes spi bus with SPI_DMA_CH_AUTO Close https://github.com/espressif/esp-idf/issues/11083 --- .../common_components/protocol_examples_common/eth_connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common_components/protocol_examples_common/eth_connect.c b/examples/common_components/protocol_examples_common/eth_connect.c index fce806c6aa..72cfa8987b 100644 --- a/examples/common_components/protocol_examples_common/eth_connect.c +++ b/examples/common_components/protocol_examples_common/eth_connect.c @@ -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,