summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2023-10-10 18:25:42 +0200
committerHiFiPhile <[email protected]>2023-10-10 18:25:42 +0200
commit504d29cf7ae9f40a56c73a2e666564b9b4ab9efd (patch)
tree6a43b8241d821fd4d48bcde3e9ea668c4644001b /examples
parent20699e30dd7847a7177d91dc76791248a788f3dc (diff)
Update make & cmake file.
Diffstat (limited to 'examples')
-rw-r--r--examples/device/audio_4_channel_mic/CMakeLists.txt7
-rw-r--r--examples/device/audio_4_channel_mic/Makefile11
2 files changed, 17 insertions, 1 deletions
diff --git a/examples/device/audio_4_channel_mic/CMakeLists.txt b/examples/device/audio_4_channel_mic/CMakeLists.txt
index f61e1b640..ae6bf0142 100644
--- a/examples/device/audio_4_channel_mic/CMakeLists.txt
+++ b/examples/device/audio_4_channel_mic/CMakeLists.txt
@@ -23,9 +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
)
# Configure compilation flags and libraries for the example without RTOS.
diff --git a/examples/device/audio_4_channel_mic/Makefile b/examples/device/audio_4_channel_mic/Makefile
index 2a3d854fb..97e4118c0 100644
--- a/examples/device/audio_4_channel_mic/Makefile
+++ b/examples/device/audio_4_channel_mic/Makefile
@@ -3,9 +3,18 @@ include ../../make.mk
INC += \
src \
$(TOP)/hw \
+ $(TOP)/lib/CMSIS_5/CMSIS/DSP/Include \
# Example source
-EXAMPLE_SOURCE += $(wildcard src/*.c)
+EXAMPLE_SOURCE += \
+ src/main.c \
+ src/usb_descriptors.c \
+
+# CMSIS sources
+SRC_C += \
+ lib/CMSIS_5/CMSIS/DSP/Source/CommonTables/arm_common_tables.c \
+ lib/CMSIS_5/CMSIS/DSP/Source/FastMathFunctions/arm_sin_q15.c \
+
SRC_C += $(addprefix $(CURRENT_PATH)/, $(EXAMPLE_SOURCE))
include ../../rules.mk