aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/kernel/ports/ARMCMx/chcore.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/os/kernel/ports/ARMCMx/chcore.h b/os/kernel/ports/ARMCMx/chcore.h
index 84de8c382..9efb2c1bb 100644
--- a/os/kernel/ports/ARMCMx/chcore.h
+++ b/os/kernel/ports/ARMCMx/chcore.h
@@ -43,9 +43,20 @@
#define CH_ARCHITECTURE_ARM
/**
- * @brief Name of the compiler supported by this port.
+ * @brief Compiler name and version.
*/
+#if defined(__GNUC__) || defined(__DOXYGEN__)
#define CH_COMPILER_NAME "GCC " __VERSION__
+
+#elif defined(__ICCARM__)
+#define CH_COMPILER_NAME "IAR"
+
+#elif defined(__CC_ARM)
+#define CH_COMPILER_NAME "RVCT"
+
+#else
+#error "unsupported compiler"
+#endif
/** @} */
/**