瀏覽代碼

[adc] 增加ADC内置通道通用通道号标识

Meco Man 2 年之前
父節點
當前提交
505023b656
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      components/drivers/include/drivers/adc.h

+ 4 - 0
components/drivers/include/drivers/adc.h

@@ -14,6 +14,10 @@
 #define __ADC_H__
 #define __ADC_H__
 #include <rtthread.h>
 #include <rtthread.h>
 
 
+#define RT_ADC_INTERN_CH_TEMPER ((rt_uint32_t)-1)
+#define RT_ADC_INTERN_CH_VREF   ((rt_uint32_t)-2)
+#define RT_ADC_INTERN_CH_VBAT   ((rt_uint32_t)-3)
+
 struct rt_adc_device;
 struct rt_adc_device;
 struct rt_adc_ops
 struct rt_adc_ops
 {
 {