File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -65,15 +65,13 @@ extern "C" {
65
65
#define ENABLE_TOUCH_INPUT CONFIG_LV_ENABLE_TOUCH
66
66
67
67
#if defined (CONFIG_LV_TFT_DISPLAY_SPI_HSPI )
68
- #if defined (CONFIG_IDF_TARGET_ESP32C3 )
69
- #define TFT_SPI_HOST SPI2_HOST
70
- #else
71
68
#define TFT_SPI_HOST HSPI_HOST
72
- #endif
73
69
#elif defined (CONFIG_LV_TFT_DISPLAY_SPI_VSPI )
74
70
#define TFT_SPI_HOST VSPI_HOST
75
71
#elif defined (CONFIG_LV_TFT_DISPLAY_SPI_FSPI )
76
72
#define TFT_SPI_HOST FSPI_HOST
73
+ #elif defined (CONFIG_LV_TFT_DISPLAY_SPI2 )
74
+ #define TFT_SPI_HOST SPI2_HOST
77
75
#endif
78
76
79
77
#if defined (CONFIG_LV_TFT_DISPLAY_SPI_HALF_DUPLEX )
Original file line number Diff line number Diff line change @@ -476,11 +476,13 @@ menu "LVGL TFT Display controller"
476
476
Select the SPI Bus the TFT Display is attached to.
477
477
478
478
config LV_TFT_DISPLAY_SPI_HSPI
479
- bool "HSPI"
479
+ bool "HSPI" if IDF_TARGET_ESP32
480
480
config LV_TFT_DISPLAY_SPI_VSPI
481
- bool "VSPI" if !IDF_TARGET_ESP32S2
481
+ bool "VSPI" if IDF_TARGET_ESP32
482
482
config LV_TFT_DISPLAY_SPI_FSPI
483
483
bool "FSPI" if IDF_TARGET_ESP32S2
484
+ config LV_TFT_DISPLAY_SPI2
485
+ bool "SPI2" if IDF_TARGET_ESP32C3
484
486
endchoice
485
487
486
488
choice
You can’t perform that action at this time.
0 commit comments