summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-05-10 18:15:48 +0700
committerhathach <[email protected]>2023-05-13 13:23:59 +0700
commit2c745d1b1eb6c57235372e2f8fe4a8a806a8f4f7 (patch)
tree39f0294c55e8d2732fd047bbae6f69690d508de2 /examples
parentf1bef8d8dde1b0e1b7227347606eac37163595fa (diff)
able to build lpc55
Diffstat (limited to 'examples')
-rw-r--r--examples/cmake/cpu/cortex-m33.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/examples/cmake/cpu/cortex-m33.cmake b/examples/cmake/cpu/cortex-m33.cmake
new file mode 100644
index 000000000..fbd5027b1
--- /dev/null
+++ b/examples/cmake/cpu/cortex-m33.cmake
@@ -0,0 +1,12 @@
+if (TOOLCHAIN STREQUAL "gcc")
+ list(APPEND TOOLCHAIN_COMMON_FLAGS
+ -mthumb
+ -mcpu=cortex-m33
+ -mfloat-abi=hard
+ -mfpu=fpv5-d16
+ )
+
+ set(FREERTOS_PORT GCC_ARM_CM33_NONSECURE CACHE INTERNAL "")
+else ()
+ # TODO support IAR
+endif ()