summaryrefslogtreecommitdiff
path: root/examples/build_system/make/cpu
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-04-28 11:14:08 +0200
committerGitHub <[email protected]>2024-04-28 11:14:08 +0200
commitee008620d2bd55ef3add37d372205cdde43d0e17 (patch)
tree85b2ef0ad86106da7f3f0b5335c5a83eadb4bc20 /examples/build_system/make/cpu
parent31b559370d29f5093979fc50de2ae415fa6612ce (diff)
parentef7be4c2ffa0061aec2ea32f530a4037f7309f1e (diff)
Merge pull request #1709 from kaspernyhus/audio_test_freertos
Add audio_test_freertos & audio_4_channel_mic_freertos
Diffstat (limited to 'examples/build_system/make/cpu')
-rw-r--r--examples/build_system/make/cpu/cortex-m7-fpsp.mk27
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/build_system/make/cpu/cortex-m7-fpsp.mk b/examples/build_system/make/cpu/cortex-m7-fpsp.mk
new file mode 100644
index 000000000..cd42c6fb8
--- /dev/null
+++ b/examples/build_system/make/cpu/cortex-m7-fpsp.mk
@@ -0,0 +1,27 @@
+ifeq ($(TOOLCHAIN),gcc)
+ CFLAGS += \
+ -mthumb \
+ -mcpu=cortex-m7 \
+ -mfloat-abi=hard \
+ -mfpu=fpv5-sp-d16 \
+
+else ifeq ($(TOOLCHAIN),clang)
+ CFLAGS += \
+ --target=arm-none-eabi \
+ -mcpu=cortex-m7 \
+ -mfpu=fpv5-sp-d16 \
+
+else ifeq ($(TOOLCHAIN),iar)
+ CFLAGS += \
+ --cpu cortex-m7 \
+ --fpu VFPv5_sp \
+
+ ASFLAGS += \
+ --cpu cortex-m7 \
+ --fpu VFPv5_sp \
+
+else
+ $(error "TOOLCHAIN is not supported")
+endif
+
+FREERTOS_PORTABLE_SRC ?= $(FREERTOS_PORTABLE_PATH)/ARM_CM7/r0p1