Refactor to get rid of CMSIS DSP lib.

This commit is contained in:
HiFiPhile
2023-10-10 19:08:25 +02:00
parent e2852da668
commit c8430f5f85
5 changed files with 40 additions and 39 deletions

View File

@@ -23,18 +23,16 @@ target_sources(${PROJECT} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/src/usb_descriptors.c
)
# CMSIS sources
target_sources(${PROJECT} PUBLIC
${TOP}/lib/CMSIS_5/CMSIS/DSP/Source/CommonTables/arm_common_tables.c
${TOP}/lib/CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_sin_q15.c
)
# Example include
target_include_directories(${PROJECT} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/src
${TOP}/lib/CMSIS_5/CMSIS/DSP/Include
)
# Add libm for GCC
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
target_link_libraries(${PROJECT} PUBLIC m)
endif()
# Configure compilation flags and libraries for the example without RTOS.
# See the corresponding function in hw/bsp/FAMILY/family.cmake for details.
family_configure_device_example(${PROJECT} noos)