summaryrefslogtreecommitdiff
path: root/tools/make/cpu/cortex-m3.mk
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-06-24 18:09:05 +0700
committerhathach <[email protected]>2023-06-24 18:09:05 +0700
commitdbf7534cd4bcc3a11c1159a42f252d4166bf3afb (patch)
treea17776930d9c26d67478629f34d135a73b074605 /tools/make/cpu/cortex-m3.mk
parentedbf06aaab9ac7cf098f1170a7a9861f5cf3572e (diff)
update all stm32 to use new enhance make
Diffstat (limited to 'tools/make/cpu/cortex-m3.mk')
-rw-r--r--tools/make/cpu/cortex-m3.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/make/cpu/cortex-m3.mk b/tools/make/cpu/cortex-m3.mk
new file mode 100644
index 000000000..c81cbace6
--- /dev/null
+++ b/tools/make/cpu/cortex-m3.mk
@@ -0,0 +1,17 @@
+ifeq ($(TOOLCHAIN),gcc)
+ CFLAGS += \
+ -mthumb \
+ -mcpu=cortex-m3 \
+ -mfloat-abi=soft \
+
+else ifeq ($(TOOLCHAIN),iar)
+ # IAR Flags
+ CFLAGS += \
+ --cpu cortex-m3 \
+
+ ASFLAGS += \
+ --cpu cortex-m3
+endif
+
+# For freeRTOS port source
+FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM3