summaryrefslogtreecommitdiff
path: root/bsp/tm4c123bsp/libraries/Drivers/config/adc_config.h
blob: bdb9d7e9bc8ea9b98abc510e9e024f07e39540d5 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-06-27     AHTYDHD      the first version
 */

#ifndef __ADC_CONFIG_H__
#define __ADC_CONFIG_H__

#ifdef __cplusplus
extern "C" {
#endif

#ifdef BSP_USING_ADC0
#ifndef ADC0_CONFIG
#define ADC0_CONFIG                             \
    {                                           \
        .name                    ="adc0",       \
        .adcbase                 = ADC0_BASE,    \
        .channel                 = 0 ,           \
        .sequence                = 2 ,           \
        .trigermode              = ADC_TRIGGER_PROCESSOR,   \
        .sequencepriority        = 0             \
    }
#endif /* ADC0_CONFIG */
#endif /* BSP_USING_ADC0 */

#ifdef BSP_USING_ADC1
#ifndef ADC1_CONFIG
#define ADC1_CONFIG                             \
    {                                           \
        .name                    = "adc1",       \
        .adcbase                 = ADC1_BASE,    \
        .channel                 = 0     ,        \
        .sequence                = 3     ,        \
        .syncMode                = ADC_TRIGGER_PROCESSOR,   \
        .sequencepriority        = 0              \
    }
#endif /* ADC1_CONFIG */
#endif /* BSP_USING_ADC1 */

#ifdef __cplusplus
}
#endif

#endif /*__ADC_CONFIG_H__*/

/************************** end of file ******************/