@@ -64,11 +64,13 @@ extern "C" {
6464
6565#define ENABLE_TOUCH_INPUT CONFIG_LV_ENABLE_TOUCH
6666
67- #if CONFIG_LV_TFT_DISPLAY_SPI_HSPI == 1
67+ #if defined ( CONFIG_LV_TFT_DISPLAY_SPI_HSPI )
6868#define TFT_SPI_HOST HSPI_HOST
69- #else
69+ #elif defined ( CONFIG_LV_TFT_DISPLAY_SPI_VSPI )
7070#define TFT_SPI_HOST VSPI_HOST
71- #endif /*CONFIG_LV_TFT_DISPLAY_SPI_HSPI == 1*/
71+ #elif defined (CONFIG_LV_TFT_DISPLAY_SPI_FSPI )
72+ #define TFT_SPI_HOST FSPI_HOST
73+ #endif
7274
7375#if defined (CONFIG_LV_TFT_DISPLAY_SPI_HALF_DUPLEX )
7476#define DISP_SPI_HALF_DUPLEX
@@ -88,7 +90,9 @@ extern "C" {
8890#define TOUCH_SPI_HOST HSPI_HOST
8991#elif defined (CONFIG_LV_TOUCH_CONTROLLER_SPI_VSPI )
9092#define TOUCH_SPI_HOST VSPI_HOST
91- #endif /*CONFIG_LV_TOUCH_CONTROLLER_SPI_HSPI == 1*/
93+ #elif defined (CONFIG_LV_TOUCH_CONTROLLER_SPI_FSPI )
94+ #define TOUCH_SPI_HOST FSPI_HOST
95+ #endif
9296
9397/* Handle the FT81X Special case */
9498#if defined (CONFIG_LV_TFT_DISPLAY_CONTROLLER_FT81X )
@@ -103,7 +107,7 @@ extern "C" {
103107// Detect the use of a shared SPI Bus and verify the user specified the same SPI bus for both touch and tft
104108#if defined (CONFIG_LV_TOUCH_DRIVER_PROTOCOL_SPI ) && TP_SPI_MOSI == DISP_SPI_MOSI && TP_SPI_CLK == DISP_SPI_CLK
105109#if TFT_SPI_HOST != TOUCH_SPI_HOST
106- #error You must specify the same SPI host (HSPI or VSPI ) for both display and touch driver
110+ #error You must specify the same SPI host (HSPI, VSPI or FSPI ) for both display and touch driver
107111#endif
108112
109113#define SHARED_SPI_BUS
0 commit comments