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_dac.h"
8 
aos_hal_dac_init(dac_dev_t * dac)9 int32_t aos_hal_dac_init(dac_dev_t *dac)
10 {
11     if(NULL == dac) {
12         printf("parameter is invalid!\n\r");
13         return -1;
14     }
15     printf("[%s] \r\n", __FUNCTION__);
16     return 0;
17 }
18 
aos_hal_dac_start(dac_dev_t * dac,uint32_t channel)19 int32_t aos_hal_dac_start(dac_dev_t *dac, uint32_t channel)
20 {
21     printf("[%s] \r\n", __FUNCTION__);
22     return 0;
23 }
24 
aos_hal_dac_stop(dac_dev_t * dac,uint32_t channel)25 int32_t aos_hal_dac_stop(dac_dev_t *dac, uint32_t channel)
26 {
27     printf("[%s] \r\n", __FUNCTION__);
28     return 0;
29 }
30 
aos_hal_dac_set_value(dac_dev_t * dac,uint32_t channel,uint32_t data)31 int32_t aos_hal_dac_set_value(dac_dev_t *dac, uint32_t channel, uint32_t data)
32 {
33     printf("[%s] \r\n", __FUNCTION__);
34     return 0;
35 }
36 
aos_hal_dac_get_value(dac_dev_t * dac,uint32_t channel)37 int32_t aos_hal_dac_get_value(dac_dev_t *dac, uint32_t channel)
38 {
39     printf("[%s] \r\n", __FUNCTION__);
40     return 0;
41 }
42 
aos_hal_dac_finalize(dac_dev_t * dac)43 int32_t aos_hal_dac_finalize(dac_dev_t *dac)
44 {
45     printf("[%s] \r\n", __FUNCTION__);
46     return 0;
47 }
48