From: aleph Date: Tue, 12 Oct 2010 15:03:03 +0000 (+0000) Subject: sam3n port: add (unfinished) configuration check form sam3n1/2/3 cpu models X-Git-Tag: 2.6.0~5^2~102 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2a5345bb8fb2dc3d2ab553eedbacb41703bf7d9d;p=bertos.git sam3n port: add (unfinished) configuration check form sam3n1/2/3 cpu models git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4418 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/detect.h b/bertos/cpu/detect.h index 81a62bb7..e64679ba 100644 --- a/bertos/cpu/detect.h +++ b/bertos/cpu/detect.h @@ -218,6 +218,9 @@ #define CPU_CM3_AT91SAM3N 1 #define CPU_CM3_AT91SAM3N4 1 #define CPU_NAME "AT91SAM3N4" + + #define CPU_CM3_AT91SAM3N2 0 + #define CPU_CM3_AT91SAM3N1 0 #else #define CPU_CM3_AT91SAM3N4 0 #endif @@ -238,7 +241,7 @@ #if CPU_CM3_AT91SAM3N + 0 != 1 #error AT91SAM3 Cortex-M3 CPU configuration error #endif - #if CPU_CM3_AT91SAM3N4 + 0 != 1 + #if CPU_CM3_AT91SAM3N4 + CPU_CM3_AT91SAM3N2 + CPU_CM3_AT91SAM3N1 + 0 != 1 #error AT91SAM3 Cortex-M3 CPU configuration error #endif #define CPU_CM3_LM3S 0