2023-08-28 02:02:08 -04:00
|
|
|
idf_build_get_property(target IDF_TARGET)
|
|
|
|
|
|
|
|
if(${target} STREQUAL "linux")
|
|
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
|
|
endif()
|
|
|
|
|
2021-05-11 23:26:07 -04:00
|
|
|
set(srcs "src/esp_lcd_common.c"
|
|
|
|
"src/esp_lcd_panel_io.c"
|
2021-08-04 08:11:31 -04:00
|
|
|
"src/esp_lcd_panel_nt35510.c"
|
2021-05-11 23:26:07 -04:00
|
|
|
"src/esp_lcd_panel_ssd1306.c"
|
|
|
|
"src/esp_lcd_panel_st7789.c"
|
2022-03-07 05:04:02 -05:00
|
|
|
"src/esp_lcd_panel_ops.c")
|
2021-05-11 23:26:07 -04:00
|
|
|
set(includes "include" "interface")
|
2024-05-29 10:16:50 -04:00
|
|
|
set(priv_requires "esp_mm" "esp_psram" "esp_pm" "esp_driver_i2s")
|
|
|
|
set(public_requires "driver" "esp_driver_gpio" "esp_driver_i2c" "esp_driver_spi")
|
2024-01-11 05:25:08 -05:00
|
|
|
|
2024-01-26 05:30:31 -05:00
|
|
|
if(CONFIG_SOC_DMA2D_SUPPORTED)
|
|
|
|
list(APPEND srcs "src/esp_async_fbcpy.c")
|
|
|
|
endif()
|
|
|
|
|
2024-01-11 05:25:08 -05:00
|
|
|
if(CONFIG_SOC_I2C_SUPPORTED)
|
|
|
|
list(APPEND srcs "i2c/esp_lcd_panel_io_i2c_v1.c" "i2c/esp_lcd_panel_io_i2c_v2.c")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_SOC_GPSPI_SUPPORTED)
|
|
|
|
list(APPEND srcs "spi/esp_lcd_panel_io_spi.c")
|
|
|
|
endif()
|
2021-05-11 23:26:07 -04:00
|
|
|
|
2022-03-07 05:04:02 -05:00
|
|
|
if(CONFIG_SOC_I2S_LCD_I80_VARIANT)
|
2024-01-11 05:25:08 -05:00
|
|
|
list(APPEND srcs "i80/esp_lcd_panel_io_i2s.c")
|
2022-03-07 05:04:02 -05:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CONFIG_SOC_LCDCAM_SUPPORTED)
|
2024-01-11 05:25:08 -05:00
|
|
|
list(APPEND includes "rgb/include")
|
|
|
|
list(APPEND srcs "i80/esp_lcd_panel_io_i80.c" "rgb/esp_lcd_panel_rgb.c")
|
2022-03-07 05:04:02 -05:00
|
|
|
endif()
|
|
|
|
|
2023-12-20 00:28:00 -05:00
|
|
|
if(CONFIG_SOC_MIPI_DSI_SUPPORTED)
|
|
|
|
list(APPEND includes "dsi/include")
|
|
|
|
list(APPEND srcs "dsi/esp_lcd_mipi_dsi_bus.c" "dsi/esp_lcd_panel_io_dbi.c" "dsi/esp_lcd_panel_dpi.c")
|
|
|
|
endif()
|
|
|
|
|
2021-05-11 23:26:07 -04:00
|
|
|
idf_component_register(SRCS ${srcs}
|
|
|
|
INCLUDE_DIRS ${includes}
|
2024-01-11 05:25:08 -05:00
|
|
|
PRIV_INCLUDE_DIRS "priv_include"
|
2022-03-07 05:04:02 -05:00
|
|
|
PRIV_REQUIRES ${priv_requires}
|
2024-01-11 05:25:08 -05:00
|
|
|
REQUIRES ${public_requires}
|
2022-03-07 05:04:02 -05:00
|
|
|
LDFRAGMENTS linker.lf)
|