Skip to content

Commit

Permalink
esp32/machine_hw_spi: Use automatic DMA channel selection for SPI on C3.
Browse files Browse the repository at this point in the history
Addresses issue #8204.
  • Loading branch information
robert-hh authored and dpgeorge committed Mar 21, 2022
1 parent 1a0bd35 commit 09b55dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/esp32/machine_hw_spi.c
Expand Up @@ -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;
Expand Down

0 comments on commit 09b55dc

Please sign in to comment.