Refactor to not automatically include adc cpu modules; supply a backward compatible...
[bertos.git] / bertos / drv / adc.c
index 7fbf7f2cbb1e51fc7f3840784bb2d5699b5dc3bd..fd2cff1c3fbe3649cdab7db93faf99c8a853ecf3 100644 (file)
  *
  * -->
  *
- * \version $Id$
- *
  * \brief ADC driver (implementation)
  *
  * \version $Id$
  * \author Francesco Sacchi <batt@develer.com>
  */
 
-
 #include <drv/adc.h>
-#include <drv/timer.h>
 
-#include CPU_CSOURCE(adc)
+#ifndef WIZ_AUTOGEN
+       #warning Deprecated: now you should include adc_<cpu> directly in the makefile. Remove this line and the following once done.
+       #include CPU_CSOURCE(adc)
+#else
+       #include CPU_HEADER(adc)
+#endif
 
 #include <cfg/debug.h>     // ASSERT()
 #include <cfg/macros.h>    // MIN()