summaryrefslogtreecommitdiff
path: root/examples/build_system/cmake/cpu
diff options
context:
space:
mode:
authorhathach <[email protected]>2024-04-11 21:49:55 +0700
committerhathach <[email protected]>2024-04-12 11:45:36 +0700
commitabddc850ac8bc1377d8c1785a76bbba22405c5e8 (patch)
treedbbf42d931bfb7273ab7e3b931e134b8c73130e2 /examples/build_system/cmake/cpu
parent5d3b0896e1eeb1bd45bcb4f2031c7a571f1a16cb (diff)
add cmake support for msp430
Diffstat (limited to 'examples/build_system/cmake/cpu')
-rw-r--r--examples/build_system/cmake/cpu/msp430.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/build_system/cmake/cpu/msp430.cmake b/examples/build_system/cmake/cpu/msp430.cmake
new file mode 100644
index 000000000..b4b47a2e8
--- /dev/null
+++ b/examples/build_system/cmake/cpu/msp430.cmake
@@ -0,0 +1,7 @@
+if (TOOLCHAIN STREQUAL "gcc")
+ set(FREERTOS_PORT GCC_MSP430F449 CACHE INTERNAL "")
+
+elseif (TOOLCHAIN STREQUAL "iar")
+ set(FREERTOS_PORT IAR_MSP430 CACHE INTERNAL "")
+
+endif ()