lvgl_spi_conf: Define TFT_SPI_HOST even when no SPI is choosen

This commit is contained in:
C47D 2022-01-11 19:41:27 -06:00
parent 9b4eedd00f
commit 75685f6040

View file

@ -68,6 +68,9 @@ extern "C" {
#define TFT_SPI_HOST SPI2_HOST #define TFT_SPI_HOST SPI2_HOST
#elif defined (CONFIG_LV_TFT_DISPLAY_SPI3_HOST) #elif defined (CONFIG_LV_TFT_DISPLAY_SPI3_HOST)
#define TFT_SPI_HOST SPI3_HOST #define TFT_SPI_HOST SPI3_HOST
#else
/* FIXME: This is not expected to work, only a placeholder */
#define TFT_SPI_HOST 0
#endif #endif
#if defined (CONFIG_LV_TFT_DISPLAY_SPI_HALF_DUPLEX) #if defined (CONFIG_LV_TFT_DISPLAY_SPI_HALF_DUPLEX)