X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=inline;f=bertos%2Fcpu%2Fdetect.h;h=c6de054b189732fcbec2a8d0507232dffde62bf1;hb=4daefac32ad5a2198f911584f1e5abea001d6062;hp=6c0d8f6e35f4fd606e9a148b952997c19e756f8d;hpb=32eebaf8bf80d1ffd417bfe6d2c34e6cd3684f87;p=bertos.git diff --git a/bertos/cpu/detect.h b/bertos/cpu/detect.h index 6c0d8f6e..c6de054b 100644 --- a/bertos/cpu/detect.h +++ b/bertos/cpu/detect.h @@ -265,6 +265,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 +278,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