X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cfg%2Fcpu_detect.h;h=3af28a1e575824a89a9d059e0e21a4cdd24f6226;hb=5bdb9b134855486842dd4d1d3150ac237a06010e;hp=2a285ba3cb8e6416be48bc1c586c0f6aeb8c2a6d;hpb=bcf38f772b397e7a8ba781a69aacb9380e54b32a;p=bertos.git diff --git a/cfg/cpu_detect.h b/cfg/cpu_detect.h index 2a285ba3..3af28a1e 100755 --- a/cfg/cpu_detect.h +++ b/cfg/cpu_detect.h @@ -12,6 +12,12 @@ /*#* *#* $Log$ + *#* Revision 1.6 2007/06/07 14:42:54 batt + *#* Merge from project_ks. + *#* + *#* Revision 1.5 2007/01/27 20:48:36 batt + *#* Add support for ATMEGA1281. + *#* *#* Revision 1.4 2006/07/19 12:56:25 bernie *#* Convert to new Doxygen style. *#* @@ -130,12 +136,26 @@ #else #define CPU_AVR_ATMEGA8 0 #endif + + #if defined(__AVR_ATmega168__) + #define CPU_AVR_ATMEGA168 1 + #else + #define CPU_AVR_ATMEGA168 0 + #endif + + #if defined(__AVR_ATmega1281__) + #define CPU_AVR_ATMEGA1281 1 + #else + #define CPU_AVR_ATMEGA1281 0 + #endif #else #define CPU_AVR 0 #define CPU_AVR_ATMEGA8 0 + #define CPU_AVR_ATMEGA168 0 #define CPU_AVR_ATMEGA64 0 #define CPU_AVR_ATMEGA103 0 #define CPU_AVR_ATMEGA128 0 + #define CPU_AVR_ATMEGA1281 0 #endif