Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
oc_pal_mapping.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017-2018 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
23
#ifndef OC_PAL_MAPPING_H
24
#define OC_PAL_MAPPING_H
25
26
#include "
device_registers.h
"
27
#include "oc_pal_cfg.h"
28
29
/* Include peripheral drivers */
30
#if (defined(OC_PAL_OVER_FTM))
31
#include "
ftm_oc_driver.h
"
32
#include "
ftm_mc_driver.h
"
33
34
/* The maximum of channel in each instance */
35
#define OC_PAL_NUM_OF_CHANNEL_MAX FEATURE_FTM_CHANNEL_COUNT
36
/* The number of instances are available */
37
#define NUMBER_OF_OC_PAL_INSTANCES NO_OF_FTM_INSTS_FOR_OC
38
/* The maximum of instances in FTM */
39
#define OC_PAL_INSTANCES_MAX FTM_INSTANCE_COUNT
40
#endif
/* defined(OC_PAL_OVER_FTM) */
41
42
#if (defined(OC_PAL_OVER_EMIOS))
43
#include "emios_mc_driver.h"
44
#include "emios_oc_driver.h"
45
46
/* The maximum of channel in each instance */
47
#define OC_PAL_NUM_OF_CHANNEL_MAX eMIOS_UC_COUNT
48
/* The number of instances are available */
49
#define NUMBER_OF_OC_PAL_INSTANCES NO_OF_EMIOS_INSTS_FOR_OC
50
/* The maximum of instances in eMIOS */
51
#define OC_PAL_INSTANCES_MAX eMIOS_INSTANCE_COUNT
52
#endif
/* defined(OC_PAL_OVER_EMIOS) */
53
54
#if defined(OC_PAL_OVER_ETIMER)
55
56
#include "etimer_driver.h"
57
58
/* The maximum of channel in each instance */
59
#define OC_PAL_NUM_OF_CHANNEL_MAX ETIMER_CH_COUNT
60
/* The number of instances are available */
61
#define NUMBER_OF_OC_PAL_INSTANCES NO_OF_ETIMER_INSTS_FOR_OC
62
/* The maximum of instance in ETIMER */
63
#define OC_PAL_INSTANCES_MAX ETIMER_INSTANCE_COUNT
64
#endif
/* End of definition for Panther */
65
72
typedef
enum
{
73
#if defined(FTM_INSTANCE_COUNT)
74
OC_INST_TYPE_FTM
= 0u,
75
#endif
/* defined(FTM_INSTANCE_COUNT) */
76
77
#if defined(eMIOS_INSTANCE_COUNT)
78
OC_INST_TYPE_EMIOS = 1u,
79
#endif
/* defined(eMIOS_INSTANCE_COUNT) */
80
81
#if defined(ETIMER_INSTANCE_COUNT)
82
OC_INST_TYPE_ETIMER = 2u,
83
#endif
/* defined(ETIMER_INSTANCE_COUNT) */
84
}
oc_inst_type_t
;
85
86
93
typedef
struct
{
94
oc_inst_type_t
instType
;
95
uint32_t
instIdx
;
96
}
oc_instance_t
;
97
98
99
#endif
/* OC_PAL_MAPPING_H */
oc_inst_type_t
oc_inst_type_t
Enumeration with the types of peripherals supported by OC_PAL.
Definition:
oc_pal_mapping.h:72
device_registers.h
oc_instance_t::instIdx
uint32_t instIdx
Definition:
oc_pal_mapping.h:95
oc_instance_t::instType
oc_inst_type_t instType
Definition:
oc_pal_mapping.h:94
ftm_oc_driver.h
OC_INST_TYPE_FTM
Definition:
oc_pal_mapping.h:74
ftm_mc_driver.h
oc_instance_t
Structure storing PAL instance information.
Definition:
oc_pal_mapping.h:93
platform
pal
oc
inc
oc_pal_mapping.h
Generated on Fri Apr 27 2018 19:10:06 for S32 SDK by
1.8.10