1 /*
2  * Copyright (c) 2006-2022, RT-Thread Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author       Notes
8  * 2022-10-07     qiyu         first version
9  */
10 
11 #ifndef DRIVERS_DRV_ADC_H_
12 #define DRIVERS_DRV_ADC_H_
13 #ifdef BSP_ADC_USING_12BIT
14 #define ADC_RESOLUTION ADC_RESOLUTION_12BIT
15 #else
16 #define ADC_RESOLUTION ADC_RESOLUTION_16BIT
17 #endif
18 #include "rtdevice.h"
19 #ifdef BSP_USING_ADC
20 
21 struct c28x_adc
22 {
23     struct rt_adc_device c28x_adc_device;
24     volatile struct ADC_REGS *adc_regs;
25     volatile struct ADC_RESULT_REGS *adc_results;
26     const char *name;
27 };
28 #endif /* BSP_USING_ADC */
29 
30 #endif /* DRIVERS_DRV_ADC_H_ */
31