diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-09 07:32:12 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-08-09 07:32:12 +0000 |
commit | cb453a3a12464dd71856b1354d083b5b02260870 (patch) | |
tree | f6b75472c5fe4967bac8a0cd35e694fae979dd03 | |
parent | 4b363412c9348457ebce2cf96f25a9c2802b0116 (diff) | |
download | ChibiOS-cb453a3a12464dd71856b1354d083b5b02260870.tar.gz ChibiOS-cb453a3a12464dd71856b1354d083b5b02260870.tar.bz2 ChibiOS-cb453a3a12464dd71856b1354d083b5b02260870.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6107 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/kernel/ports/ARMCMx/chcore.h | 13 |
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
/** @} */
/**
|