mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 04:04:15 +08:00
[adc.c] add finsh voltage conversion command (#5937)
* Update adc.c add finsh voltage conversion command
This commit is contained in:
@@ -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__ */
|
||||
|
||||
Reference in New Issue
Block a user