|
@@ -9,17 +9,15 @@
|
|
|
*/
|
|
|
|
|
|
#include <board.h>
|
|
|
+#include <drivers/drv_comm.h>
|
|
|
#include <drivers/adc.h>
|
|
|
-#include <rtdbg.h>
|
|
|
|
|
|
-#ifdef RT_USING_ADC
|
|
|
+#define DBG_TAG "drv.adc"
|
|
|
+#define DBG_LVL DBG_INFO
|
|
|
|
|
|
-//#define DRV_DEBUG
|
|
|
-#define LOG_TAG "drv.adc"
|
|
|
+#include <rtdbg.h>
|
|
|
|
|
|
-#ifndef ARRAY_SIZE
|
|
|
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
|
|
-#endif
|
|
|
+#ifdef RT_USING_ADC
|
|
|
|
|
|
#define MAX_EXTERN_ADC_CHANNEL 16
|
|
|
|