summaryrefslogtreecommitdiff
path: root/tools/cmake
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-06-01 21:34:39 +0700
committerGitHub <[email protected]>2023-06-01 21:34:39 +0700
commitcbbd858be407bbc9e0dda81c73fa7433df19d579 (patch)
tree3a3697885f2984db26669733e889f9e0a9f631f9 /tools/cmake
parent77714e02caa6b873a78737385e603cdae1f9f109 (diff)
parentdc3afdbf3b0520caa4a8147c08219486672a6832 (diff)
Merge pull request #1942 from HubertD/feature/STM32G0
STM32G0 support
Diffstat (limited to 'tools/cmake')
-rw-r--r--tools/cmake/cpu/cortex-m0plus.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/cmake/cpu/cortex-m0plus.cmake b/tools/cmake/cpu/cortex-m0plus.cmake
new file mode 100644
index 000000000..1e316ccfc
--- /dev/null
+++ b/tools/cmake/cpu/cortex-m0plus.cmake
@@ -0,0 +1,11 @@
+if (TOOLCHAIN STREQUAL "gcc")
+ list(APPEND TOOLCHAIN_COMMON_FLAGS
+ -mthumb
+ -mcpu=cortex-m0plus
+ -mfloat-abi=soft
+ )
+
+ set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "")
+else ()
+ # TODO support IAR
+endif ()