Rafactor ARM modules to be compiled explicitly (without C file stub).
[bertos.git] / bertos / cpu / arm / drv / stepper_arm.c
index a51abf842e6b120cd59a8161fc5344303bd45036..485a39036b00297b79e5ed78d2306275c2fcda01 100644 (file)
  *
  * \author Daniele Basile <asterix@develer.com>
  *
- * This module is automatically included so no need to include 
+ * This module is automatically included so no need to include
  * in test list.
  * notest: arm
  */
+#ifndef WIZ_AUTOGEN
+       #warning This file is deprecated, you should use stepper_at91.c
 
-#include <cpu/detect.h>
+       #include <cpu/detect.h>
 
-#if CPU_ARM_AT91
-       #include "stepper_at91.c"
-/*#elif  Add other ARM families here */
-#else
-       #error Unknown CPU
-#endif
+       #if CPU_ARM_AT91
+               #include "stepper_at91.c"
+       /*#elif  Add other ARM families here */
+       #else
+               #error Unknown CPU
+       #endif
+#endif /* WIZ_AUTOGEN */
\ No newline at end of file