From aa75cab12e97f7b9dea2219fecfe8c5188863297 Mon Sep 17 00:00:00 2001 From: arighi Date: Mon, 29 Mar 2010 22:11:08 +0000 Subject: [PATCH] ARM: add LM3S Cortex-M3 core family detection. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3317 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/detect.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bertos/cpu/detect.h b/bertos/cpu/detect.h index 19fb80b7..3c4712d2 100644 --- a/bertos/cpu/detect.h +++ b/bertos/cpu/detect.h @@ -39,7 +39,13 @@ #if defined(__arm__) /* GCC */ \ || defined(__ARM4TM__) /* IAR: defined for all cores >= 4tm */ #define CPU_ARM 1 - #define CPU_ID arm + + // Cortex-M3 core family + #if defined(__ARM_LM3S1968__) + #define CPU_ID lm3s + #else + #define CPU_ID arm + #endif // AT91SAM7S core family #if defined(__ARM_AT91SAM7S32__) -- 2.25.1