summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-11-15 16:07:44 +0700
committerhathach <[email protected]>2023-11-15 16:07:44 +0700
commite0d632a954349229e934bbb00352581a9be2ef3b (patch)
tree66ac4730afc45b963dedec2b79270bc4c3a64b15 /tools
parentf84eafcaa2138a360e0baf8271b28f45cf120961 (diff)
add ra2a1 ek
also make some other changes
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 ()