lvgl_helpers: Replace spi_common_dma_t values with integers
This enum was introduced in ESP-IDF v4.3 and can't be used in older versions of ESP-IDF.
This commit is contained in:
parent
0cec50473a
commit
ceaade41a5
|
@ -80,9 +80,9 @@ void lvgl_interface_init(void)
|
||||||
/* SPI DMA Channel selection
|
/* SPI DMA Channel selection
|
||||||
* SPI_DMA_CH1 is only defined for ESP32, so let the driver choose which
|
* SPI_DMA_CH1 is only defined for ESP32, so let the driver choose which
|
||||||
* channel to use, and use the proven channel 1 on esp32 targets */
|
* channel to use, and use the proven channel 1 on esp32 targets */
|
||||||
int dma_channel = SPI_DMA_CH_AUTO;
|
int dma_channel = 3;
|
||||||
#if defined (CONFIG_IDF_TARGET_ESP32)
|
#if defined (CONFIG_IDF_TARGET_ESP32)
|
||||||
dma_channel = SPI_DMA_CH1;
|
dma_channel = 1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (CONFIG_LV_TFT_DISPLAY_CONTROLLER_FT81X)
|
#if defined (CONFIG_LV_TFT_DISPLAY_CONTROLLER_FT81X)
|
||||||
|
@ -126,7 +126,7 @@ void lvgl_interface_init(void)
|
||||||
ESP_LOGI(TAG, "Initializing SPI master for touch");
|
ESP_LOGI(TAG, "Initializing SPI master for touch");
|
||||||
|
|
||||||
#if defined (CONFIG_IDF_TARGET_ESP32)
|
#if defined (CONFIG_IDF_TARGET_ESP32)
|
||||||
dma_channel = SPI_DMA_CH2;
|
dma_channel = 2;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
lvgl_spi_driver_init(TOUCH_SPI_HOST, TP_SPI_MISO, TP_SPI_MOSI, TP_SPI_CLK,
|
lvgl_spi_driver_init(TOUCH_SPI_HOST, TP_SPI_MISO, TP_SPI_MOSI, TP_SPI_CLK,
|
||||||
|
|
Loading…
Reference in a new issue