Flush the transfer before exiting from write function.
[bertos.git] / bertos / cpu / arm / drv / pwm_arm.c
index 690122f9ea5a840b88e8643f119bb5f181f5b6bd..18b699ab46a4f658d898c9eb4f2d1807a7266a58 100644 (file)
@@ -32,7 +32,6 @@
  *
  * \brief Low-level PWM module for ARM (inplementation).
  *
- * \version $Id$
  *
  * \author Daniele Basile <asterix@develer.com>
  *
 
 #ifndef WIZ_AUTOGEN
        #warning This file is deprecated, you should use pwm_at91.c
-#if CPU_ARM_AT91
-       #include "pwm_at91.c"
-/*#elif  Add other ARM families here */
-#else
-       #error Unknown CPU
-#endif
+
+       #include <cpu/detect.h>
+
+       #if CPU_ARM_AT91
+               #include "pwm_at91.c"
+       /*#elif  Add other ARM families here */
+       #else
+               #error Unknown CPU
+       #endif
+#endif  /* WIZ_AUTOGEN */