diff options
| author | Meco Man <[email protected]> | 2023-04-08 04:07:30 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-04-08 22:40:37 -0400 |
| commit | 505023b65639fc6f2aa9fb76f6f0ca1632823947 (patch) | |
| tree | 7897d51489d96e3768f7b92c28758daa14cf22fd /components/drivers/include | |
| parent | ccd6bd26ec3e1bb5556971ecd6e6ad879c7d80e1 (diff) | |
[adc] 增加ADC内置通道通用通道号标识
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/adc.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <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 { |
