Fix Luminary LM3S detection.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 2 Oct 2008 08:44:15 +0000 (08:44 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 2 Oct 2008 08:44:15 +0000 (08:44 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1866 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/detect.h

index f37d952574038199116e9de25d6051051e1a0367..c6a48b993b37ddd7152c6ca748673041656b9fe3 100644 (file)
                #define CPU_ARM_AT91SAM7X256 0
        #endif
 
+       #if defined (__ARM_LM3S1968__)
+               #define CPU_ARM_LM3S        1
+               #define CPU_ARM_LM3S1968    1
+       #else
+               #define CPU_ARM_LM3S1968    0
+       #endif
+
+
 
        #if defined(CPU_ARM_AT91)
                #if CPU_ARM_AT91SAM7S32 + CPU_ARM_AT91SAM7S64 \
                + CPU_ARM_AT91SAM7X128 + CPU_ARM_AT91SAM7X256 != 1
                        #error ARM CPU configuration error
                #endif
+               #define CPU_ARM_LM3S        0
 
+       #elif defined (CPU_ARM_LM3S)
+               #if CPU_ARM_LM3S1968 + 0 != 1
+                       #error Luminary ARM CPU configuration error
+               #endif
+               #define CPU_ARM_AT91        0
        /* #elif Add other ARM families here */
-       #elif defined (__ARM_LM3S1968__)
-               #define CPU_ARM_LM3S            1
-               #define CPU_ARM_LM3S1968        1
-
-
        #else
-               #define CPU_ARM_AT91         0
+               #define CPU_ARM_AT91        0
+               #define CPU_ARM_LM3S        0
        #endif
 
 
 
        /* ARM Families */
        #define CPU_ARM_AT91            0
+       #define CPU_ARM_LM3S            0
 
        /* ARM CPUs */
        #define CPU_ARM_AT91SAM7S32     0
        #define CPU_ARM_AT91SAM7S256    0
        #define CPU_ARM_AT91SAM7X128    0
        #define CPU_ARM_AT91SAM7X256    0
+
+       #define CPU_ARM_LM3S1968        0
 #endif
 
 #if (defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)) \