1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 */ 4 5 #include <stdio.h> 6 #include <aos/errno.h> 7 #include "aos_hal_adc.h" 8 aos_hal_adc_init(adc_dev_t * adc)9int32_t aos_hal_adc_init(adc_dev_t *adc) 10 { 11 if(NULL == adc) { 12 printf("parameter is invalid!\n\r"); 13 return -1; 14 } 15 printf("[%s] sampling_cycle = %d \r\n", __FUNCTION__, adc->config.sampling_cycle); 16 return 0; 17 } 18 aos_hal_adc_value_get(adc_dev_t * adc,uint32_t * output,uint32_t timeout)19int32_t aos_hal_adc_value_get(adc_dev_t *adc, uint32_t *output, uint32_t timeout) 20 { 21 printf ("[%s] \r\n", __FUNCTION__); 22 return 0; 23 } 24 aos_hal_adc_finalize(adc_dev_t * adc)25int32_t aos_hal_adc_finalize(adc_dev_t *adc) 26 { 27 28 printf ("[%s] \r\n", __FUNCTION__); 29 return 0; 30 }