From: batt Date: Fri, 5 Sep 2008 14:44:06 +0000 (+0000) Subject: Add detect for ATMega32. X-Git-Tag: 2.0.0~146 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b4173170de087062ee074009a02dd25a2e06fd3d;p=bertos.git Add detect for ATMega32. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1788 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/detect.h b/bertos/cpu/detect.h index 3b9ac1cf..f37d9525 100644 --- a/bertos/cpu/detect.h +++ b/bertos/cpu/detect.h @@ -179,6 +179,12 @@ #define CPU_AVR 1 #define CPU_ID avr + #if defined(__AVR_ATmega32__) + #define CPU_AVR_ATMEGA32 1 + #else + #define CPU_AVR_ATMEGA32 0 + #endif + #if defined(__AVR_ATmega64__) #define CPU_AVR_ATMEGA64 1 #else @@ -215,7 +221,7 @@ #define CPU_AVR_ATMEGA1281 0 #endif - #if CPU_AVR_ATMEGA64 + CPU_AVR_ATMEGA103 + CPU_AVR_ATMEGA128 \ + #if CPU_AVR_ATMEGA32 + CPU_AVR_ATMEGA64 + CPU_AVR_ATMEGA103 + CPU_AVR_ATMEGA128 \ + CPU_AVR_ATMEGA8 + CPU_AVR_ATMEGA168 + CPU_AVR_ATMEGA1281 != 1 #error AVR CPU configuration error #endif @@ -223,6 +229,7 @@ #define CPU_AVR 0 #define CPU_AVR_ATMEGA8 0 #define CPU_AVR_ATMEGA168 0 + #define CPU_AVR_ATMEGA32 0 #define CPU_AVR_ATMEGA64 0 #define CPU_AVR_ATMEGA103 0 #define CPU_AVR_ATMEGA128 0