From: aleph Date: Thu, 3 Mar 2011 14:00:14 +0000 (+0000) Subject: sam3 SMC definitions: sam3n/s have very different controllers from X-Git-Tag: 2.7.0~221 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=dfbf7a9feb9d1325e362c2d71290f33e832ef721;p=bertos.git sam3 SMC definitions: sam3n/s have very different controllers from sam3x/a/u: conditionally define without bothering with error, since the file is included by sam3.h even if SMC is not used on sam3n/s git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4745 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/cortex-m3/io/sam3_smc.h b/bertos/cpu/cortex-m3/io/sam3_smc.h index ead911cc..b6679b03 100644 --- a/bertos/cpu/cortex-m3/io/sam3_smc.h +++ b/bertos/cpu/cortex-m3/io/sam3_smc.h @@ -36,9 +36,10 @@ #ifndef SAM3_SMC_H #define SAM3_SMC_H -#if !CPU_CM3_SAM3X && !CPU_CM3_SAM3U - #error SMC registers undefined for current cpu -#endif +/* + * SMC registers defined only for SAM3X/A and U for now + */ +#if CPU_CM3_SAM3X || CPU_CM3_SAM3U /** SMC registers base. */ #define SMC_BASE 0x400E0000 @@ -266,4 +267,6 @@ #define SMC_MODE_TDF_MODE BV(20) /*\}*/ +#endif /* CPU_CM3_SAM3X || CPU_CM3_SAM3U */ + #endif /* SAM3_SMC_H */