diff options
| author | Maripo GODA <avenafatua@gmail.com> | 2023-01-13 15:24:15 +0900 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-01-19 13:13:42 +1100 |
| commit | fb0dd86b39950f78de0b360a436b99fccc80c9a9 (patch) | |
| tree | bf9c7e00f72e8046f868c17ee3a7bf714eb4c8a3 | |
| parent | 67097d8c2b3887f7b177564c230d0bf34d23bb43 (diff) | |
esp32/machine_sdcard: Change dma_channel to SPI_DMA_CH_AUTO for ESP32S3.
Specifying DMA channel 2 causes an "invalid dma channel" error. In
ESP-IDF, the only available channel for ESP32S3 is SPI_DMA_CH_AUTO=3.
| -rw-r--r-- | ports/esp32/machine_sdcard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/machine_sdcard.c b/ports/esp32/machine_sdcard.c index 801a26f37..5b495f849 100644 --- a/ports/esp32/machine_sdcard.c +++ b/ports/esp32/machine_sdcard.c @@ -211,7 +211,7 @@ STATIC mp_obj_t machine_sdcard_make_new(const mp_obj_type_t *type, size_t n_args .gpio_cs = GPIO_NUM_34, .gpio_cd = SDSPI_SLOT_NO_CD, .gpio_wp = SDSPI_SLOT_NO_WP, - .dma_channel = 2 + .dma_channel = SPI_DMA_CH_AUTO }, SDSPI_SLOT_CONFIG_DEFAULT() }; |
