Home
last modified time | relevance | path

Searched refs:adc_device (Results 1 – 1 of 1) sorted by relevance

/components/drivers/misc/
A Dadc.c204 static rt_adc_device_t adc_device = RT_NULL; in adc() local
213 adc_device = (rt_adc_device_t)rt_device_find(argv[2]); in adc()
214 result_str = (adc_device == RT_NULL) ? "failure" : "success"; in adc()
224 if (adc_device == RT_NULL) in adc()
233 result = rt_adc_enable(adc_device, atoi(argv[2])); in adc()
235 …rt_kprintf("%s channel %d enables %s \n", adc_device->parent.parent.name, (rt_base_t)atoi(argv[2])… in adc()
246 value = rt_adc_read(adc_device, atoi(argv[2])); in adc()
247 …rt_kprintf("%s channel %d read value is 0x%08X \n", adc_device->parent.parent.name, (rt_base_t)at… in adc()
258 result = rt_adc_disable(adc_device, atoi(argv[2])); in adc()
260 …rt_kprintf("%s channel %d disable %s \n", adc_device->parent.parent.name, (rt_base_t)atoi(argv[2])… in adc()
[all …]

Completed in 2 milliseconds