Merge branch 'feat/ulp_component_split' into 'master'

refactor(ulp): separate the ULP coprocessor code from the driver

Closes IDF-15957

See merge request espressif/esp-idf!52268
This commit is contained in:
Sudeep Mohanty
2026-09-15 11:49:23 +02:00
116 changed files with 583 additions and 526 deletions
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.22)
include(${IDF_PATH}/components/ulp/cmake/ulp_project.cmake)
include(${IDF_PATH}/components/ulp/subproject/ulp_project.cmake)
project(${IDF_DEFAULT_PROJECT_NAME} ASM)
@@ -1,2 +1 @@
idf_component_register(SRCS "main.S"
REQUIRES ulp)
idf_component_register(SRCS "main.S")
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.22)
include(${IDF_PATH}/components/ulp/cmake/ulp_project.cmake)
include(${IDF_PATH}/components/ulp/subproject/ulp_project.cmake)
project(${IDF_DEFAULT_PROJECT_NAME} C CXX ASM)
@@ -1,2 +1 @@
idf_component_register(SRCS "main.c"
REQUIRES ulp)
idf_component_register(SRCS "main.c")
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.22)
include(${IDF_PATH}/components/ulp/cmake/ulp_project.cmake)
include(${IDF_PATH}/components/ulp/subproject/ulp_project.cmake)
project(${IDF_DEFAULT_PROJECT_NAME} ASM)
@@ -1,2 +1 @@
idf_component_register(SRCS "wake_up.S"
REQUIRES ulp)
idf_component_register(SRCS "wake_up.S")
@@ -2,7 +2,7 @@ set(srcs
"counter.S")
idf_component_register(SRCS ${srcs}
REQUIRES ulp ulp_wake
REQUIRES ulp_wake
LDFRAGMENTS "ulp_fsm_sections.lf")
target_compile_definitions(${COMPONENT_LIB} PRIVATE ULP_BUILD_SYSTEM_FSM_EXAMPLE=1)
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.22)
include(${IDF_PATH}/components/ulp/cmake/ulp_project.cmake)
include(${IDF_PATH}/components/ulp/subproject/ulp_project.cmake)
project(${IDF_DEFAULT_PROJECT_NAME} C CXX ASM)
@@ -1,5 +1,5 @@
idf_component_register(SRCS "main.c"
REQUIRES ulp ulp_sum ulp_math)
REQUIRES ulp_sum ulp_math)
# Linker script template processed by ldgen. The mapping[ulp_math_fast]
# marker is resolved using the .lf fragment from the ulp_math component.
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.22)
include(${IDF_PATH}/components/ulp/cmake/ulp_project.cmake)
include(${IDF_PATH}/components/ulp/subproject/ulp_project.cmake)
project(${IDF_DEFAULT_PROJECT_NAME} C CXX ASM)
@@ -1,2 +1 @@
idf_component_register(SRCS "main.c"
REQUIRES ulp)
idf_component_register(SRCS "main.c")
@@ -1,2 +1 @@
idf_component_register(SRCS "main.c"
REQUIRES ulp)
idf_component_register(SRCS "main.c")
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.22)
include(${IDF_PATH}/components/ulp/cmake/ulp_project.cmake)
include(${IDF_PATH}/components/ulp/subproject/ulp_project.cmake)
project(${IDF_DEFAULT_PROJECT_NAME} C CXX ASM)
@@ -1,5 +1,4 @@
idf_component_register(SRCS "main.c"
REQUIRES ulp
LDFRAGMENTS "ulp_riscv_sections.lf")
# Supplementary linker script template processed by ldgen. The mapping marker