summaryrefslogtreecommitdiff
path: root/tools/make/cpu/cortex-m0.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-m0.mk
parentedbf06aaab9ac7cf098f1170a7a9861f5cf3572e (diff)
update all stm32 to use new enhance make
Diffstat (limited to 'tools/make/cpu/cortex-m0.mk')
-rw-r--r--tools/make/cpu/cortex-m0.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/make/cpu/cortex-m0.mk b/tools/make/cpu/cortex-m0.mk
new file mode 100644
index 000000000..c264802c8
--- /dev/null
+++ b/tools/make/cpu/cortex-m0.mk
@@ -0,0 +1,14 @@
+ifeq ($(TOOLCHAIN),gcc)
+ CFLAGS += \
+ -mthumb \
+ -mcpu=cortex-m0 \
+ -mfloat-abi=soft \
+
+else ifeq ($(TOOLCHAIN),iar)
+ # IAR Flags
+ CFLAGS += --cpu cortex-m0
+ ASFLAGS += --cpu cortex-m0
+endif
+
+# For freeRTOS port source
+FREERTOS_PORTABLE_SRC = $(FREERTOS_PORTABLE_PATH)/ARM_CM0