Rafactor ARM modules to be compiled explicitly (without C file stub).
[bertos.git] / bertos / cpu / arm / drv / timer_arm.c
index b6f4d845f1db8c7fee2e6b21e82c46da5e922185..adeee6f6a6dd1b3504322831647e8b24aa36482e 100644 (file)
  * \author Francesco Sacchi <batt@develer.com>
  *
  * \brief Low-level timer module for ARM (inplementation).
+ *
+ * This module is automatically included so no need to include
+ * in test list.
+ * notest: arm
  */
 
-#include <cpu/detect.h>
-#include <cfg/cfg_arch.h>
+#ifndef WIZ_AUTOGEN
+       #warning This file is deprecated, you should use timer_at91.c
 
-#if !(ARCH & ARCH_NIGHTTEST)
+       #include <cpu/detect.h>
+       #include <cfg/cfg_arch.h>
 
-#if CPU_ARM_AT91
-       #include "timer_at91.c"
-/*#elif  Add other ARM families here */
-#else
-       #error Unknown CPU
-#endif
+       #if CPU_ARM_AT91
+               #include "timer_at91.c"
+       /*#elif  Add other ARM families here */
+       #else
+               #error Unknown CPU
+       #endif
 
-#endif /* (ARCH & ARCH_NIGHTLYTEST) */
+#endif /* WIZ_AUTOGEN */