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 __ADC_CONFIG_H__
12 #define __ADC_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 #if defined(BSP_USING_ADC0) || defined(BSP_USING_ADC1)
22 
23 struct rt_adc_dev
24 {
25     struct rt_adc_ops ops;
26     struct rt_adc_device adc_device;
27 };
28 
29 struct ra_adc_map
30 {
31     const char *device_name;
32     const adc_cfg_t *g_cfg;
33     const adc_ctrl_t *g_ctrl;
34     const adc_channel_cfg_t   *g_channel_cfg;
35 };
36 #endif
37 #endif
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43