Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
adc_pal_mapping.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017 NXP
3
* All rights reserved.
4
*
5
* THIS SOFTWARE IS PROVIDED BY NXP "AS IS" AND ANY EXPRESSED OR
6
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
7
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
8
* IN NO EVENT SHALL NXP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
9
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
10
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
11
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
12
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
13
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
14
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
15
* THE POSSIBILITY OF SUCH DAMAGE.
16
*/
17
18
#ifndef ADC_PAL_MAPPING_H
19
#define ADC_PAL_MAPPING_H
20
21
#include "adc_pal_cfg.h"
22
#include "
device_registers.h
"
23
24
/* Include peripheral drivers */
25
#if defined(ADC_PAL_S32K1xx)
26
27
#include "
adc_driver.h
"
28
#include "adc_hw_access.h"
29
#include "
trgmux_driver.h
"
30
#include "
pdb_driver.h
"
31
32
#endif
/* defined(ADC_PAL_S32K1xx) */
33
34
#if defined(ADC_PAL_MPC574xC_G_R)
35
36
#include "adc_c55_driver.h"
37
#include "bctu_driver.h"
38
39
#endif
/* defined(ADC_PAL_MPC574xC_G_R) */
40
41
#if defined(ADC_PAL_MPC574xP)
42
43
#include "adc_c55_driver.h"
44
#include "ctu_driver.h"
45
46
#endif
/* defined(ADC_PAL_MPC574xP) */
47
48
55
typedef
enum
{
56
#if (defined(PDB_INSTANCE_COUNT) && defined(TRGMUX_INSTANCE_COUNT))
57
ADC_INST_TYPE_ADC_S32K1xx
= 0u,
58
#endif
/* (defined(PDB_INSTANCE_COUNT) && defined(TRGMUX_INSTANCE_COUNT)) */
59
60
#if defined(BCTU_INSTANCE_COUNT)
61
ADC_INST_TYPE_ADC_MPC574xC_G_R = 1u,
62
#endif
/* defined(BCTU_INSTANCE_COUNT) */
63
64
#if defined(CTU_INSTANCE_COUNT)
65
ADC_INST_TYPE_ADC_MPC574xP = 2u
66
#endif
/* defined(CTU_INSTANCE_COUNT) */
67
}
adc_inst_type_t
;
68
69
76
typedef
struct
{
77
adc_inst_type_t
instType
;
78
uint32_t
instIdx
;
79
}
adc_instance_t
;
80
81
82
#endif
/* ADC_PAL_MAPPING_H */
ADC_INST_TYPE_ADC_S32K1xx
Definition:
adc_pal_mapping.h:57
pdb_driver.h
device_registers.h
trgmux_driver.h
adc_driver.h
adc_instance_t::instIdx
uint32_t instIdx
Definition:
adc_pal_mapping.h:78
adc_instance_t::instType
adc_inst_type_t instType
Definition:
adc_pal_mapping.h:77
adc_instance_t
Structure storing PAL instance information.
Definition:
adc_pal_mapping.h:76
adc_inst_type_t
adc_inst_type_t
Enumeration with the types of ADC peripherals supported by ADC PAL.
Definition:
adc_pal_mapping.h:55
platform
pal
adc
inc
adc_pal_mapping.h
Generated on Fri Apr 27 2018 19:10:06 for S32 SDK by
1.8.10