From: arighi Date: Mon, 29 Mar 2010 22:11:08 +0000 (+0000) Subject: ARM: add LM3S Cortex-M3 core family detection. X-Git-Tag: 2.5.0~591 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=aa75cab12e97f7b9dea2219fecfe8c5188863297;p=bertos.git ARM: add LM3S Cortex-M3 core family detection. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3317 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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__)