From 505023b65639fc6f2aa9fb76f6f0ca1632823947 Mon Sep 17 00:00:00 2001 From: Meco Man <920369182@qq.com> Date: Sat, 8 Apr 2023 04:07:30 -0400 Subject: [adc] 增加ADC内置通道通用通道号标识 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/drivers/include/drivers/adc.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'components') diff --git a/components/drivers/include/drivers/adc.h b/components/drivers/include/drivers/adc.h index 601e16292e..2e4da26819 100644 --- a/components/drivers/include/drivers/adc.h +++ b/components/drivers/include/drivers/adc.h @@ -14,6 +14,10 @@ #define __ADC_H__ #include +#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_ops { -- cgit v1.3.1