summaryrefslogtreecommitdiff
path: root/examples/cmake
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-05-15 14:25:42 +0700
committerhathach <[email protected]>2023-05-15 14:25:42 +0700
commit9fd0fee458759c49acbeab6b9382df287620e532 (patch)
treea5406dac284e04b4dd6cac3f5289814fb365a04a /examples/cmake
parenta57ba87859c90ae7e5d8419685fffef87db67b21 (diff)
adding nrf
Diffstat (limited to 'examples/cmake')
-rw-r--r--examples/cmake/cpu/cortex-m4.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/cmake/cpu/cortex-m4.cmake b/examples/cmake/cpu/cortex-m4.cmake
new file mode 100644
index 000000000..5a2d16c05
--- /dev/null
+++ b/examples/cmake/cpu/cortex-m4.cmake
@@ -0,0 +1,12 @@
+if (TOOLCHAIN STREQUAL "gcc")
+ list(APPEND TOOLCHAIN_COMMON_FLAGS
+ -mthumb
+ -mcpu=cortex-m4
+ -mfloat-abi=hard
+ -mfpu=fpv4-sp-d16
+ )
+
+ set(FREERTOS_PORT GCC_ARM_CM4F CACHE INTERNAL "")
+else ()
+ # TODO support IAR
+endif ()