summaryrefslogtreecommitdiff
path: root/bsp/bluetrum/libraries/hal_drivers/config/adc_config.h
blob: 22cd84da5bcfb4655933ab796dfece6000f09ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Copyright (c) 2020-2021, Bluetrum Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author            Notes
 * 2021-02-01     greedyhao         first version
 */

#ifndef __ADC_CONFIG_H__
#define __ADC_CONFIG_H__

#include <rtthread.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifdef BSP_USING_ADC0
#ifndef ADC0_CONFIG
#define ADC0_CONFIG                                     \
    {                                                   \
       .adc_dat_handle      = (hal_sfr_t)&SADCDAT0,     \
       .name                = "adc0",                   \
    }
#endif /* ADC0_CONFIG */
#endif /* BSP_USING_ADC0 */

#ifdef __cplusplus
}
#endif

#endif