esp32/machine_hw_spi: Use automatic DMA channel selection for SPI on C3.

Addresses issue #8204.
This commit is contained in:
robert-hh 2022-03-08 11:40:26 +01:00 committed by Damien George
parent 1a0bd352d3
commit 09b55dc297
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ STATIC void machine_hw_spi_init_internal(
// Select DMA channel based on the hardware SPI host
int dma_chan = 0;
if (self->host == HSPI_HOST) {
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3
#if CONFIG_IDF_TARGET_ESP32S2 || CONFIG_IDF_TARGET_ESP32S3 || CONFIG_IDF_TARGET_ESP32C3
dma_chan = 3;
#else
dma_chan = 1;