use spi dma chan auto for esp32s3
This commit is contained in:
parent
aa1dae2076
commit
f22026caf7
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ bool lvgl_spi_driver_init(int host,
|
||||||
};
|
};
|
||||||
|
|
||||||
ESP_LOGI(TAG, "Initializing SPI bus...");
|
ESP_LOGI(TAG, "Initializing SPI bus...");
|
||||||
#if defined (CONFIG_IDF_TARGET_ESP32C3)
|
#if defined (CONFIG_IDF_TARGET_ESP32C3) || defined(CONFIG_IDF_TARGET_ESP32S3)
|
||||||
dma_channel = SPI_DMA_CH_AUTO;
|
dma_channel = SPI_DMA_CH_AUTO;
|
||||||
#endif
|
#endif
|
||||||
esp_err_t ret = spi_bus_initialize(host, &buscfg, (spi_dma_chan_t)dma_channel);
|
esp_err_t ret = spi_bus_initialize(host, &buscfg, (spi_dma_chan_t)dma_channel);
|
||||||
|
|
Loading…
Reference in a new issue