Do not compile twice arm C files in nighttest.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 17 Apr 2009 15:16:59 +0000 (15:16 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 17 Apr 2009 15:16:59 +0000 (15:16 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2547 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/arm/drv/timer_arm.c

index 405366cea1081134486e7c9778b9c6d37d457194..b6f4d845f1db8c7fee2e6b21e82c46da5e922185 100644 (file)
@@ -38,6 +38,9 @@
  */
 
 #include <cpu/detect.h>
+#include <cfg/cfg_arch.h>
+
+#if !(ARCH & ARCH_NIGHTTEST)
 
 #if CPU_ARM_AT91
        #include "timer_at91.c"
@@ -45,3 +48,5 @@
 #else
        #error Unknown CPU
 #endif
+
+#endif /* (ARCH & ARCH_NIGHTLYTEST) */