mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
2e826b7a8f
esp_system: removed repeated interrupt allocator code and moved common code to esp_system xtens: moved xtensa specific code from freertos to the xtensa component hal/interrupt_controller: added interrupt controller hal and ll files docs: update the doxyfile with new location of esp_itr_alloc.h file xtensa: fixed dangerous relocation problem after moving xtensa interrupt files out of freertos docs: removed Xtensa reference from intr_allocator api-reference xtensa: pushed the interrupt function that manages non iram interrupts to the xtensa layer esp_system/test: fixed platform dependent setting for intr_allocator tests hal: rename the functions used to manage non iram interrupt mask.
32 lines
935 B
CMake
32 lines
935 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
|
|
if(BOOTLOADER_BUILD)
|
|
# bootloader only needs headers from this component
|
|
set(priv_requires soc)
|
|
else()
|
|
set(priv_requires soc freertos)
|
|
set(srcs "debug_helpers.c"
|
|
"debug_helpers_asm.S"
|
|
"expression_with_stack_xtensa.c"
|
|
"expression_with_stack_xtensa_asm.S"
|
|
"eri.c"
|
|
"trax.c"
|
|
"xtensa_intr.c"
|
|
"xtensa_intr_asm.S"
|
|
"${target}/trax_init.c"
|
|
)
|
|
|
|
if(IDF_TARGET STREQUAL "esp32s2")
|
|
list(APPEND srcs "stdatomic.c")
|
|
endif()
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
INCLUDE_DIRS include ${target}/include
|
|
LDFRAGMENTS linker.lf
|
|
PRIV_REQUIRES ${priv_requires})
|
|
|
|
if(NOT BOOTLOADER_BUILD)
|
|
target_link_libraries(${COMPONENT_LIB} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/${target}/libxt_hal.a")
|
|
endif()
|