feat(ulp): build legacy ULP APIs through CMake v2 shim

This commit is contained in:
Renz Bagaporo
2026-06-29 13:23:30 +09:00
parent 82b28b2641
commit 288b9a6e00
21 changed files with 465 additions and 46 deletions

View File

@@ -7,6 +7,15 @@ if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${target}/include")
list(APPEND includes "${target}/include")
endif()
# TODO(IDF-15986): potentially remove __ULP_BUILD handling from esp_hal_gpspi
if(__ULP_BUILD)
# LP-core SPI code includes SPI HAL headers from
# ulp/lp_core/lp_core/lp_core_spi.c.
idf_component_register(INCLUDE_DIRS ${includes}
REQUIRES soc hal esp_hal_dma)
return()
endif()
if(CONFIG_SOC_GPSPI_SUPPORTED)
list(APPEND srcs
"${target}/spi_periph.c"