Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
i2c_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
28
#ifndef PAL_mapping_H
29
#define PAL_mapping_H
30
31
#include "
device_registers.h
"
32
#include "i2c_pal_cfg.h"
33
34
/* Include PD files */
35
#if (defined(I2C_OVER_LPI2C))
36
#include "
lpi2c_driver.h
"
37
#endif
38
39
#if (defined(I2C_OVER_FLEXIO))
40
#include "
flexio.h
"
41
#include "
flexio_i2c_driver.h
"
42
#endif
43
44
#if (defined(I2C_OVER_I2C))
45
#include "i2c_driver.h"
46
#endif
47
48
#if (defined(I2C_OVER_SWI2C))
49
#include "swi2c_driver.h"
50
#endif
51
52
59
typedef
enum
{
60
#if defined(LPI2C_INSTANCE_COUNT)
61
I2C_INST_TYPE_LPI2C
= 0u,
62
#endif
/* defined(LPI2C_INSTANCE_COUNT) */
63
64
#if defined(FLEXIO_INSTANCE_COUNT)
65
I2C_INST_TYPE_FLEXIO
= 1u,
66
#endif
/* defined(FLEXIO_INSTANCE_COUNT) */
67
68
#if defined(I2C_INSTANCE_COUNT)
69
I2C_INST_TYPE_I2C = 2u,
70
#endif
/* defined(I2C_INSTANCE_COUNT) */
71
72
#if defined(SWI2C_INSTANCE_COUNT)
73
I2C_INST_TYPE_SWI2C = 3u,
74
#endif
/* defined(SWI2C_INSTANCE_COUNT) */
75
76
}
i2c_inst_type_t
;
77
84
typedef
struct
{
85
i2c_inst_type_t
instType
;
86
uint32_t
instIdx
;
87
}
i2c_instance_t
;
88
89
90
#endif
/* PAL_mapping_H */
91
92
/*******************************************************************************
93
* EOF
94
******************************************************************************/
95
96
I2C_INST_TYPE_FLEXIO
Definition:
i2c_pal_mapping.h:65
flexio.h
flexio_i2c_driver.h
device_registers.h
i2c_instance_t::instType
i2c_inst_type_t instType
Definition:
i2c_pal_mapping.h:85
i2c_instance_t
Structure storing PAL instance information.
Definition:
i2c_pal_mapping.h:84
i2c_instance_t::instIdx
uint32_t instIdx
Definition:
i2c_pal_mapping.h:86
i2c_inst_type_t
i2c_inst_type_t
Enumeration with the types of peripherals supported by I2C PAL.
Definition:
i2c_pal_mapping.h:59
lpi2c_driver.h
I2C_INST_TYPE_LPI2C
Definition:
i2c_pal_mapping.h:61
platform
pal
i2c
inc
i2c_pal_mapping.h
Generated on Fri Apr 27 2018 19:10:06 for S32 SDK by
1.8.10