mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-30 17:46:32 +03:00
because bitscrambler can't live without DMA, it's highly binded with the GDMA peripheral.
17 lines
542 B
CMake
17 lines
542 B
CMake
idf_build_get_property(target IDF_TARGET)
|
|
if(${target} STREQUAL "linux")
|
|
return() # This component is not supported by the POSIX/Linux simulator
|
|
endif()
|
|
|
|
set(srcs)
|
|
|
|
if(CONFIG_SOC_BITSCRAMBLER_SUPPORTED)
|
|
list(APPEND srcs "src/bitscrambler.c" "src/bitscrambler_loopback.c" "src/bitscrambler_${target}.c")
|
|
endif()
|
|
|
|
idf_component_register(SRCS ${srcs}
|
|
REQUIRES "esp_hal_dma"
|
|
PRIV_REQUIRES "esp_mm"
|
|
INCLUDE_DIRS "include"
|
|
LDFRAGMENTS "linker.lf")
|