Do not compile twice arm C files in nighttest.
[bertos.git] / 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) */