fix SPI names for touch
with ESP32-C3 specific auto-dma proper selection
This commit is contained in:
parent
762bb35265
commit
8cbbc299e9
5 changed files with 65 additions and 94 deletions
|
@ -64,9 +64,7 @@ extern "C" {
|
|||
|
||||
#define ENABLE_TOUCH_INPUT CONFIG_LV_ENABLE_TOUCH
|
||||
|
||||
#if defined (CONFIG_LV_TFT_DISPLAY_SPI1_HOST)
|
||||
#define TFT_SPI_HOST SPI1_HOST
|
||||
#elif defined (CONFIG_LV_TFT_DISPLAY_SPI2_HOST)
|
||||
#if defined (CONFIG_LV_TFT_DISPLAY_SPI2_HOST)
|
||||
#define TFT_SPI_HOST SPI2_HOST
|
||||
#elif defined (CONFIG_LV_TFT_DISPLAY_SPI3_HOST)
|
||||
#define TFT_SPI_HOST SPI3_HOST
|
||||
|
@ -86,12 +84,10 @@ extern "C" {
|
|||
#define DISP_SPI_TRANS_MODE_SIO
|
||||
#endif
|
||||
|
||||
#if defined (CONFIG_LV_TOUCH_CONTROLLER_SPI_HSPI)
|
||||
#define TOUCH_SPI_HOST HSPI_HOST
|
||||
#elif defined (CONFIG_LV_TOUCH_CONTROLLER_SPI_VSPI)
|
||||
#define TOUCH_SPI_HOST VSPI_HOST
|
||||
#elif defined (CONFIG_LV_TOUCH_CONTROLLER_SPI_FSPI)
|
||||
#define TOUCH_SPI_HOST FSPI_HOST
|
||||
#if defined (CONFIG_LV_TOUCH_CONTROLLER_SPI2_HOST)
|
||||
#define TOUCH_SPI_HOST SPI2_HOST
|
||||
#elif defined (CONFIG_LV_TOUCH_CONTROLLER_SPI3_HOST)
|
||||
#define TOUCH_SPI_HOST SPI3_HOST
|
||||
#endif
|
||||
|
||||
/* Handle the FT81X Special case */
|
||||
|
@ -107,7 +103,7 @@ extern "C" {
|
|||
// Detect the use of a shared SPI Bus and verify the user specified the same SPI bus for both touch and tft
|
||||
#if defined (CONFIG_LV_TOUCH_DRIVER_PROTOCOL_SPI) && TP_SPI_MOSI == DISP_SPI_MOSI && TP_SPI_CLK == DISP_SPI_CLK
|
||||
#if TFT_SPI_HOST != TOUCH_SPI_HOST
|
||||
#error You must specify the same SPI host (HSPI, VSPI or FSPI) for both display and touch driver
|
||||
#error You must specify the same SPI host (SPIx_HOST) for both display and touch driver
|
||||
#endif
|
||||
|
||||
#define SHARED_SPI_BUS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue