Skip to content

Commit

Permalink
use spi dma chan auto for esp32s3
Browse files Browse the repository at this point in the history
  • Loading branch information
hiruna committed May 30, 2023
1 parent aa1dae2 commit f22026c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lvgl_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ bool lvgl_spi_driver_init(int host,
};

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;
#endif
esp_err_t ret = spi_bus_initialize(host, &buscfg, (spi_dma_chan_t)dma_channel);
Expand Down

0 comments on commit f22026c

Please sign in to comment.