diff options
| author | Stanley Lwin <[email protected]> | 2022-05-18 19:36:50 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-05-19 10:36:50 +0800 |
| commit | f92c26a60b8a1e83d3cb7974f7af799674435a69 (patch) | |
| tree | 5ff9760ec3ea5309f2b6e342e70ac8e02acf9f64 /components/drivers/include | |
| parent | c147ff417cd8f36a96e4bbee55c76092b85513e3 (diff) | |
[adc.c] add finsh voltage conversion command (#5937)
* Update adc.c
add finsh voltage conversion command
Diffstat (limited to 'components/drivers/include')
| -rw-r--r-- | components/drivers/include/drivers/adc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/adc.h b/components/drivers/include/drivers/adc.h index d251a33a53..2a4bdceb46 100644 --- a/components/drivers/include/drivers/adc.h +++ b/components/drivers/include/drivers/adc.h @@ -7,6 +7,7 @@ * Date Author Notes * 2018-05-07 aozima the first version * 2018-11-16 Ernest Chen add finsh command and update adc function + * 2022-05-11 Stanley Lwin add finsh voltage conversion command */ #ifndef __ADC_H__ @@ -40,5 +41,6 @@ rt_err_t rt_hw_adc_register(rt_adc_device_t adc,const char *name, const struct r rt_uint32_t rt_adc_read(rt_adc_device_t dev, rt_uint32_t channel); rt_err_t rt_adc_enable(rt_adc_device_t dev, rt_uint32_t channel); rt_err_t rt_adc_disable(rt_adc_device_t dev, rt_uint32_t channel); +rt_uint32_t rt_adc_voltage(rt_adc_device_t dev, rt_uint32_t channel); #endif /* __ADC_H__ */ |
