Add LPC2378 CPU detection.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 29 Mar 2010 21:55:09 +0000 (21:55 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 29 Mar 2010 21:55:09 +0000 (21:55 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3312 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/detect.h

index c6de054b189732fcbec2a8d0507232dffde62bf1..19fb80b73c51154e387a1dbcdf1aa517193e109b 100644 (file)
                #define CPU_ARM_LM3S1968    0
        #endif
 
+       #if defined(__ARM_LPC2378__)
+               #define CPU_ARM_LPC2        1
+               #define CPU_ARM_LPC2378     1
+       #else
+               #define CPU_ARM_LPC2378     0
+       #endif  
+
        #if !defined(CPU_ARM_SAM7S_LARGE)
                #define CPU_ARM_SAM7S_LARGE 0
        #endif
                        #error ARM CPU configuration error
                #endif
                #define CPU_ARM_LM3S        0
+               #define CPU_ARM_LPC2        0
 
        #elif defined (CPU_ARM_LM3S)
                #if CPU_ARM_LM3S1968 + 0 != 1
                        #error Luminary ARM CPU configuration error
                #endif
                #define CPU_ARM_AT91        0
+               #define CPU_ARM_LPC2        0
+       #elif defined (CPU_ARM_LPC2)
+               
+               #if CPU_ARM_LPC2378 + 0 != 1
+                       #error NXP LPC2xxx ARM CPU configuration error
+               #endif
+               #define CPU_ARM_AT91        0
+               #define CPU_ARM_LM3S        0
        /* #elif Add other ARM families here */
        #else
                #define CPU_ARM_AT91        0
                #define CPU_ARM_LM3S        0
+               #define CPU_ARM_LPC2        0
        #endif
 
 
-       #if CPU_ARM_AT91 + CPU_ARM_LM3S + 0 /* Add other ARM families here */ != 1
+       #if CPU_ARM_AT91 + CPU_ARM_LM3S \
+               + CPU_ARM_LPC2 + 0 /* Add other ARM families here */ != 1
                #error ARM CPU configuration error
        #endif
 #else
        /* ARM Families */
        #define CPU_ARM_AT91            0
        #define CPU_ARM_LM3S            0
+       #define CPU_ARM_LPC2            0
 
        /* SAM7 sub-families */
        #define CPU_ARM_SAM7S_LARGE     0
        #define CPU_ARM_AT91SAM7X512    0
 
        #define CPU_ARM_LM3S1968        0
+
+       #define CPU_ARM_LPC2378         0
 #endif
 
 #if (defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)) \
        #define CPU_AVR                 0
        #define CPU_AVR_ATMEGA8         0
        #define CPU_AVR_ATMEGA168       0
-       #define CPU_AVR_ATMEGA328P       0
+       #define CPU_AVR_ATMEGA328P      0
        #define CPU_AVR_ATMEGA32        0
        #define CPU_AVR_ATMEGA64        0
        #define CPU_AVR_ATMEGA103       0