fix SPI names for touch
with ESP32-C3 specific auto-dma proper selection
This commit is contained in:
parent
c78e9fe169
commit
b9377200a6
|
@ -203,6 +203,10 @@ bool lvgl_spi_driver_init(int host,
|
|||
};
|
||||
|
||||
ESP_LOGI(TAG, "Initializing SPI bus...");
|
||||
#if defined (CONFIG_IDF_TARGET_ESP32C3)
|
||||
dma_channel = 3;
|
||||
#endif
|
||||
|
||||
esp_err_t ret = spi_bus_initialize(host, &buscfg, (spi_dma_chan_t)dma_channel);
|
||||
assert(ret == ESP_OK);
|
||||
|
||||
|
|
|
@ -1008,6 +1008,3 @@ menu "LVGL TFT Display controller"
|
|||
default 0
|
||||
|
||||
endmenu
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue