ARM: add LM3S Cortex-M3 core family detection.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 29 Mar 2010 22:11:08 +0000 (22:11 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 29 Mar 2010 22:11:08 +0000 (22:11 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3317 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/detect.h

index 19fb80b73c51154e387a1dbcdf1aa517193e109b..3c4712d25f1fd72f8fbcfcd7657f75274a05d0b3 100644 (file)
 #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__)