blob: 72da2569a534eb7f84327128af25826dc69385c4 (
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
53
54
|
/*
* Copyright (c) 2006-2022, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022-10-07 qiyu first version
*/
#ifndef DRIVERS_CONFIG_ADC_CONFIG_H_
#define DRIVERS_CONFIG_ADC_CONFIG_H_
#include "F28x_Project.h" // Device Headerfile and Examples Include File
#include "F2837xD_adc.h"
#include "rtthread.h"
#include "drv_config.h"
#define BSP_USING_ADC1
#ifdef __cplusplus
extern "C" {
#endif
#ifdef BSP_USING_ADC1
#ifndef ADC1_CONFIG
#define ADC1_CONFIG \
{ \
.name = "adc1", \
.adc_regs = &AdcaRegs, \
.adc_results = &AdcaResultRegs, \
}
#endif
#endif
#ifdef BSP_USING_ADC2
#ifndef ADC2_CONFIG
#define ADC2_CONFIG \
{ \
.name = "adc2", \
.adc_regs = &AdcbRegs, \
.adc_results = &AdcbResultRegs \
}
#endif
#endif
#ifdef BSP_USING_ADC3
#ifndef ADC3_CONFIG
#define ADC3_CONFIG \
{ \
.name = "adc3", \
.adc_regs = &AdccRegs, \
.adc_results = &AdccResultRegs \
}
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif /* DRIVERS_CONFIG_ADC_CONFIG_H_ */
|