summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-11-15 16:35:13 +0700
committerGitHub <[email protected]>2023-11-15 16:35:13 +0700
commit0f187b4d1c4d1cb74e453fbbabf6fdcdbf8a5745 (patch)
tree5a2cc1a32d8e9bd31fafe7d12c41279eb3cb771f /tools
parenta973887399e5bb33039ddddaf43136b63fe28776 (diff)
parente0d632a954349229e934bbb00352581a9be2ef3b (diff)
Merge pull request #2317 from hathach/add-ra2a1-ek
add ra2a1 ek
Diffstat (limited to 'tools')
-rw-r--r--tools/cmake/cpu/cortex-m23.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/cmake/cpu/cortex-m23.cmake b/tools/cmake/cpu/cortex-m23.cmake
new file mode 100644
index 000000000..3093dc99a
--- /dev/null
+++ b/tools/cmake/cpu/cortex-m23.cmake
@@ -0,0 +1,17 @@
+if (TOOLCHAIN STREQUAL "gcc")
+ set(TOOLCHAIN_COMMON_FLAGS
+ -mthumb
+ -mcpu=cortex-m23
+ -mfloat-abi=soft
+ )
+
+ set(FREERTOS_PORT GCC_ARM_CM0 CACHE INTERNAL "")
+
+elseif (TOOLCHAIN STREQUAL "iar")
+ set(TOOLCHAIN_COMMON_FLAGS
+ --cpu cortex-m23
+ )
+
+ set(FREERTOS_PORT IAR_ARM_CM0 CACHE INTERNAL "")
+
+endif ()