1 /*
2  * Copyright (c) 2006-2025, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2021-08-19     Mr.Tiger     first version
9  */
10 
11 #ifndef __DAC_CONFIG_H__
12 #define __DAC_CONFIG_H__
13 
14 #include <rtthread.h>
15 #include <rtdevice.h>
16 #include "hal_data.h"
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 #ifdef BSP_USING_DAC
22 struct ra_dac_map
23 {
24     char name;
25     const struct st_dac_cfg *g_cfg;
26     const struct st_dac_instance_ctrl *g_ctrl;
27 };
28 
29 struct ra_dac_dev
30 {
31     rt_dac_device_t       ra_dac_device_t;
32     struct ra_dac_map    *ra_dac_map_dev;
33 };
34 #endif
35 
36 #endif
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 
42