Refactor to use new protocol module and sipo.
[bertos.git] / bertos / cpu / arm / drv / timer_arm.c
index 405366cea1081134486e7c9778b9c6d37d457194..6a7339f13a7496ebe09cdcee4162b6f2fd7716e2 100644 (file)
  *
  * -->
  *
- * \version $Id$
  *
  * \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>
+#ifndef WIZ_AUTOGEN
+       #warning This file is deprecated, you should use timer_at91.c
+
+       #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 /* WIZ_AUTOGEN */