Make this repository a single ESP-IDF component
This commit is contained in:
parent
37715bc2b7
commit
34d520c7ee
7 changed files with 122 additions and 123 deletions
|
@ -1,34 +0,0 @@
|
|||
if(ESP_PLATFORM)
|
||||
|
||||
set(SOURCES "touch_driver.c")
|
||||
|
||||
# Include only the source file of the selected
|
||||
# display controller.
|
||||
if(CONFIG_LV_TOUCH_CONTROLLER_XPT2046)
|
||||
list(APPEND SOURCES "xpt2046.c")
|
||||
elseif(CONFIG_LV_TOUCH_CONTROLLER_FT6X06)
|
||||
list(APPEND SOURCES "ft6x36.c")
|
||||
elseif(CONFIG_LV_TOUCH_CONTROLLER_STMPE610)
|
||||
list(APPEND SOURCES "stmpe610")
|
||||
elseif(CONFIG_LV_TOUCH_CONTROLLER_ADCRAW)
|
||||
list(APPEND SOURCES "adcraw.c")
|
||||
elseif(CONFIG_LV_TOUCH_CONTROLLER_FT81X)
|
||||
list(APPEND SOURCES "FT81x.c")
|
||||
elseif(CONFIG_LV_TOUCH_CONTROLLER_RA8875)
|
||||
list(APPEND SOURCES "ra8875_touch.c")
|
||||
endif()
|
||||
|
||||
if(CONFIG_LV_TOUCH_DRIVER_PROTOCOL_SPI)
|
||||
list(APPEND SOURCES "tp_spi.c")
|
||||
elseif(CONFIG_LV_TOUCH_DRIVER_PROTOCOL_I2C)
|
||||
list(APPEND SOURCES "tp_i2c.c")
|
||||
endif()
|
||||
|
||||
# Print the included source files
|
||||
message("SOURCES contents: " "${SOURCES}")
|
||||
|
||||
idf_component_register(SRCS ${SOURCES}
|
||||
INCLUDE_DIRS .
|
||||
REQUIRES lvgl)
|
||||
|
||||
endif()
|
|
@ -1,4 +0,0 @@
|
|||
# Touch drivers
|
||||
|
||||
COMPONENT_SRCDIRS := .
|
||||
COMPONENT_ADD_INCLUDEDIRS := .
|
Loading…
Add table
Add a link
Reference in a new issue