From cb453a3a12464dd71856b1354d083b5b02260870 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 9 Aug 2013 07:32:12 +0000 Subject: [PATCH] git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6107 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/kernel/ports/ARMCMx/chcore.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 /** @} */ /**