Moving ESP-IDF specific files to lv_port
(#175)
* Move disp_spi.c and tp_spi.c to lv_port * Move esp_lcd_backlight to lv_port * Move disp_spi.h and tp_spi.h to lv_port
This commit is contained in:
parent
463721e291
commit
28d663f6b6
|
@ -3,7 +3,7 @@ if(ESP_PLATFORM)
|
||||||
file(GLOB SOURCES *.c)
|
file(GLOB SOURCES *.c)
|
||||||
set(LVGL_INCLUDE_DIRS . lvgl_tft)
|
set(LVGL_INCLUDE_DIRS . lvgl_tft)
|
||||||
list(APPEND SOURCES "lvgl_tft/disp_driver.c")
|
list(APPEND SOURCES "lvgl_tft/disp_driver.c")
|
||||||
list(APPEND SOURCES "lvgl_tft/esp_lcd_backlight.c")
|
list(APPEND SOURCES "lv_port/esp_lcd_backlight.c")
|
||||||
|
|
||||||
# This are the source files used for mcu abstraction
|
# This are the source files used for mcu abstraction
|
||||||
set(LV_PORT_PATH "lv_port")
|
set(LV_PORT_PATH "lv_port")
|
||||||
|
@ -34,7 +34,7 @@ list(APPEND SOURCES "${LV_PORT_PATH}/lv_port_display_espressif.c")
|
||||||
list(APPEND SOURCES "lvgl_tft/pcd8544.c")
|
list(APPEND SOURCES "lvgl_tft/pcd8544.c")
|
||||||
|
|
||||||
if(CONFIG_LV_TFT_DISPLAY_PROTOCOL_SPI)
|
if(CONFIG_LV_TFT_DISPLAY_PROTOCOL_SPI)
|
||||||
list(APPEND SOURCES "lvgl_tft/disp_spi.c")
|
list(APPEND SOURCES "lv_port/disp_spi.c")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Add touch driver to compilation only if it is selected in menuconfig
|
# Add touch driver to compilation only if it is selected in menuconfig
|
||||||
|
@ -61,7 +61,7 @@ if(CONFIG_LV_TOUCH_CONTROLLER)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_LV_TOUCH_DRIVER_PROTOCOL_SPI)
|
if(CONFIG_LV_TOUCH_DRIVER_PROTOCOL_SPI)
|
||||||
list(APPEND SOURCES "lvgl_touch/tp_spi.c")
|
list(APPEND SOURCES "lv_port/tp_spi.c")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -69,6 +69,8 @@ if(CONFIG_LV_I2C)
|
||||||
list(APPEND SOURCES "lvgl_i2c/i2c_manager.c")
|
list(APPEND SOURCES "lvgl_i2c/i2c_manager.c")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
list(APPEND LVGL_INCLUDE_DIRS lv_port)
|
||||||
|
|
||||||
idf_component_register(SRCS ${SOURCES}
|
idf_component_register(SRCS ${SOURCES}
|
||||||
INCLUDE_DIRS ${LVGL_INCLUDE_DIRS}
|
INCLUDE_DIRS ${LVGL_INCLUDE_DIRS}
|
||||||
REQUIRES lvgl)
|
REQUIRES lvgl)
|
||||||
|
|
|
@ -14,8 +14,8 @@
|
||||||
#include "esp_log.h"
|
#include "esp_log.h"
|
||||||
#include "esp_idf_version.h"
|
#include "esp_idf_version.h"
|
||||||
|
|
||||||
#include "lvgl_tft/disp_spi.h"
|
#include "disp_spi.h"
|
||||||
#include "lvgl_touch/tp_spi.h"
|
#include "tp_spi.h"
|
||||||
|
|
||||||
#include "lvgl_spi_conf.h"
|
#include "lvgl_spi_conf.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue