Rafactor ARM modules to be compiled explicitly (without C file stub).
[bertos.git] / bertos / cpu / arm / drv / ser_arm.c
index 5ae158687f249139983aa9452ec148e2ca65e036..44cb894df1b2dcf8e98e72a9670127a3f5e46228 100644 (file)
  *
  * \brief Low-level serial module for ARM (inplementation).
  *
- * \version $Id: timer_arm.c 18260 2007-10-11 14:08:10Z batt $
+ * \version $Id$
  *
  * \author Daniele Basile <asterix@develer.com>
  *
+ * 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 ser_at91.c
+
+       #include <cpu/detect.h>
 
-#if CPU_ARM_AT91
-       #include "ser_at91.c"
-/*#elif  Add other ARM families here */
-#else
-       #error Unknown CPU
-#endif
+       #if CPU_ARM_AT91
+               #include "ser_at91.c"
+       /*#elif  Add other ARM families here */
+       #else
+               #error Unknown CPU
+       #endif
+#endif /* WIZ_AUTOGEN */