Home
last modified time | relevance | path

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

/AliOS-Things-master/hardware/chip/haas1000/hal/
A Dadc.c14 static enum HAL_GPADC_CHAN_T __hal_adc_port2chan(uint8_t port) in __hal_adc_port2chan() function
30 hal_gpadc_open(__hal_adc_port2chan(adc->port), HAL_GPADC_ATP_NULL, NULL); in hal_adc_init()
32 hal_gpadc_open(__hal_adc_port2chan(adc->port), HAL_GPADC_ATP_ONESHOT, __hal_adc_irqhandler); in hal_adc_init()
50 hal_gpadc_open(__hal_adc_port2chan(adc->port), HAL_GPADC_ATP_ONESHOT, NULL); in hal_adc_value_get()
53 if (output && hal_gpadc_get_volt(__hal_adc_port2chan(adc->port), &volt)) { in hal_adc_value_get()
70 hal_gpadc_close(__hal_adc_port2chan(adc->port)); in hal_adc_finalize()

Completed in 3 milliseconds