4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-03-03 19:45:29 +08:00

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

This commit is contained in:
Meco Man 2023-04-08 04:07:30 -04:00 committed by Man, Jianting (Meco)
parent ccd6bd26ec
commit 505023b656

View File

@ -14,6 +14,10 @@
#define __ADC_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_ops
{