summaryrefslogtreecommitdiff
path: root/examples/build_system/cmake/cpu/msp430.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'examples/build_system/cmake/cpu/msp430.cmake')
-rw-r--r--examples/build_system/cmake/cpu/msp430.cmake10
1 files changed, 10 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..584ec5741
--- /dev/null
+++ b/examples/build_system/cmake/cpu/msp430.cmake
@@ -0,0 +1,10 @@
+if (TOOLCHAIN STREQUAL "gcc")
+ set(FREERTOS_PORT GCC_MSP430F449 CACHE INTERNAL "")
+
+elseif (TOOLCHAIN STREQUAL "clang")
+ message(FATAL_ERROR "Clang is not supported for this target")
+
+elseif (TOOLCHAIN STREQUAL "iar")
+ set(FREERTOS_PORT IAR_MSP430 CACHE INTERNAL "")
+
+endif ()