X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fdetect.h;fp=bertos%2Fcpu%2Fdetect.h;h=e14ca222a7b57ce138c0f0dc1dd0a88a59e65285;hb=111bf6c8f1d9ef14df24586fa67500fdc997163c;hp=ce462b2ea4b441f1b770a7c9a034cfac5450422b;hpb=1dca602965917c8691de8b7337a7770ecde46b31;p=bertos.git diff --git a/bertos/cpu/detect.h b/bertos/cpu/detect.h index ce462b2e..e14ca222 100644 --- a/bertos/cpu/detect.h +++ b/bertos/cpu/detect.h @@ -432,9 +432,16 @@ #define CPU_AVR_ATMEGA1280 0 #endif + #if defined(__AVR_ATmega2560__) + #define CPU_AVR_ATMEGA2560 1 + #define CPU_NAME "ATmega2560" + #else + #define CPU_AVR_ATMEGA2560 0 + #endif + #if CPU_AVR_ATMEGA32 + CPU_AVR_ATMEGA64 + CPU_AVR_ATMEGA103 + CPU_AVR_ATMEGA128 \ + CPU_AVR_ATMEGA8 + CPU_AVR_ATMEGA168 + CPU_AVR_ATMEGA328P + CPU_AVR_ATMEGA1281 \ - + CPU_AVR_ATMEGA1280 != 1 + + CPU_AVR_ATMEGA1280 + CPU_AVR_ATMEGA2560 != 1 #error AVR CPU configuration error #endif #else @@ -448,6 +455,7 @@ #define CPU_AVR_ATMEGA128 0 #define CPU_AVR_ATMEGA1281 0 #define CPU_AVR_ATMEGA1280 0 + #define CPU_AVR_ATMEGA2560 0 #endif #if defined (__MSP430__)