X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fdetect.h;h=19fb80b73c51154e387a1dbcdf1aa517193e109b;hb=73a7e9cb144007905b5b9de8e3086423e79b6d71;hp=6c0d8f6e35f4fd606e9a148b952997c19e756f8d;hpb=32eebaf8bf80d1ffd417bfe6d2c34e6cd3684f87;p=bertos.git diff --git a/bertos/cpu/detect.h b/bertos/cpu/detect.h index 6c0d8f6e..19fb80b7 100644 --- a/bertos/cpu/detect.h +++ b/bertos/cpu/detect.h @@ -114,6 +114,13 @@ #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 @@ -132,20 +139,31 @@ #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 @@ -154,6 +172,7 @@ /* 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 @@ -170,6 +189,8 @@ #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)) \ @@ -265,6 +286,12 @@ #define CPU_AVR_ATMEGA168 0 #endif + #if defined(__AVR_ATmega328P__) + #define CPU_AVR_ATMEGA328P 1 + #else + #define CPU_AVR_ATMEGA328P 0 + #endif + #if defined(__AVR_ATmega1281__) #define CPU_AVR_ATMEGA1281 1 #else @@ -272,13 +299,14 @@ #endif #if CPU_AVR_ATMEGA32 + CPU_AVR_ATMEGA64 + CPU_AVR_ATMEGA103 + CPU_AVR_ATMEGA128 \ - + CPU_AVR_ATMEGA8 + CPU_AVR_ATMEGA168 + CPU_AVR_ATMEGA1281 != 1 + + CPU_AVR_ATMEGA8 + CPU_AVR_ATMEGA168 + CPU_AVR_ATMEGA328P + CPU_AVR_ATMEGA1281 != 1 #error AVR CPU configuration error #endif #else #define CPU_AVR 0 #define CPU_AVR_ATMEGA8 0 #define CPU_AVR_ATMEGA168 0 + #define CPU_AVR_ATMEGA328P 0 #define CPU_AVR_ATMEGA32 0 #define CPU_AVR_ATMEGA64 0 #define CPU_AVR_ATMEGA103 0