Refactor to not automatically include adc cpu modules; supply a backward compatible...
[bertos.git] / bertos / drv / adc.c
index f8a06045fae45b34d010cdcf48ba9aff869a04dd..fd2cff1c3fbe3649cdab7db93faf99c8a853ecf3 100644 (file)
 
 #include <drv/adc.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()