1 /*
2  * Copyright (c) 2020-2021, Bluetrum Development Team
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
6  * Change Logs:
7  * Date           Author            Notes
8  * 2021-02-01     greedyhao         first version
9  */
10 
11 #ifndef __ADC_CONFIG_H__
12 #define __ADC_CONFIG_H__
13 
14 #include <rtthread.h>
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #ifdef BSP_USING_ADC0
21 #ifndef ADC0_CONFIG
22 #define ADC0_CONFIG                                     \
23     {                                                   \
24        .adc_dat_handle      = (hal_sfr_t)&SADCDAT0,     \
25        .name                = "adc0",                   \
26     }
27 #endif /* ADC0_CONFIG */
28 #endif /* BSP_USING_ADC0 */
29 
30 #ifdef __cplusplus
31 }
32 #endif
33 
34 #endif
35