ISSDK  1.7
IoT Sensing Software Development Kit
pin_mux.h
Go to the documentation of this file.
1 /*
2  * The Clear BSD License
3  * Copyright (c) 2016, Freescale Semiconductor, Inc.
4  * Copyright 2016-2017 NXP
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without modification,
8  * are permitted (subject to the limitations in the disclaimer below) provided
9  * that the following conditions are met:
10  *
11  * o Redistributions of source code must retain the above copyright notice, this list
12  * of conditions and the following disclaimer.
13  *
14  * o Redistributions in binary form must reproduce the above copyright notice, this
15  * list of conditions and the following disclaimer in the documentation and/or
16  * other materials provided with the distribution.
17  *
18  * o Neither the name of the copyright holder nor the names of its
19  * contributors may be used to endorse or promote products derived from this
20  * software without specific prior written permission.
21  *
22  * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS LICENSE.
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
24  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
27  * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
30  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33  */
34 
35 #ifndef _PIN_MUX_H_
36 #define _PIN_MUX_H_
37 
38 
39 /*******************************************************************************
40  * Definitions
41  ******************************************************************************/
42 
43 /*! @brief Direction type */
44 typedef enum _pin_mux_direction
45 {
46  kPIN_MUX_DirectionInput = 0U, /* Input direction */
47  kPIN_MUX_DirectionOutput = 1U, /* Output direction */
48  kPIN_MUX_DirectionInputOrOutput = 2U /* Input or output direction */
50 
51 /*!
52  * @addtogroup pin_mux
53  * @{
54  */
55 
56 /*******************************************************************************
57  * API
58  ******************************************************************************/
59 
60 #if defined(__cplusplus)
61 extern "C" {
62 #endif
63 
64 
65 /*!
66  * @brief Configures pin routing and optionally pin electrical features.
67  *
68  */
69 void BOARD_InitPins(void);
70 
71 
72 /*!
73  * @brief Configures pin routing and optionally pin electrical features.
74  *
75  */
76 void LPI2C0_InitPins(void);
77 
78 
79 /*!
80  * @brief Configures pin routing and optionally pin electrical features.
81  *
82  */
83 void LPI2C0_DeinitPins(void);
84 
85 
86 /*!
87  * @brief Configures pin routing and optionally pin electrical features.
88  *
89  */
90 void LPI2C1_InitPins(void);
91 
92 
93 /*!
94  * @brief Configures pin routing and optionally pin electrical features.
95  *
96  */
97 void LPI2C1_DeinitPins(void);
98 
99 /*!
100  * @brief Configures pin routing and optionally pin electrical features.
101  *
102  */
103 void LPSPI0_InitPins(void);
104 
105 
106 /*!
107  * @brief Configures pin routing and optionally pin electrical features.
108  *
109  */
110 void LPSPI0_DeinitPins(void);
111 
112 
113 /*!
114  * @brief Configures pin routing and optionally pin electrical features.
115  *
116  */
117 void LPSPI1_InitPins(void);
118 
119 
120 /*!
121  * @brief Configures pin routing and optionally pin electrical features.
122  *
123  */
124 void LPSPI1_DeinitPins(void);
125 
126 /*!
127  * @brief Configures pin routing and optionally pin electrical features.
128  *
129  */
130 void LPUART0_InitPins(void);
131 
132 
133 /*!
134  * @brief Configures pin routing and optionally pin electrical features.
135  *
136  */
137 void LPUART0_DeinitPins(void);
138 
139 
140 /*!
141  * @brief Configures pin routing and optionally pin electrical features.
142  *
143  */
144 void LPUART1_InitPins(void);
145 
146 
147 /*!
148  * @brief Configures pin routing and optionally pin electrical features.
149  *
150  */
151 void LPUART1_DeinitPins(void);
152 
153 
154 /*!
155  * @brief Configures pin routing and optionally pin electrical features.
156  *
157  */
158 void LPUART2_InitPins(void);
159 
160 
161 /*!
162  * @brief Configures pin routing and optionally pin electrical features.
163  *
164  */
165 void LPUART2_DeinitPins(void);
166 
167 #if defined(__cplusplus)
168 }
169 #endif
170 
171 /*!
172  * @}
173  */
174 #endif /* _PIN_MUX_H_ */
175 
176 /*******************************************************************************
177  * EOF
178  ******************************************************************************/
void LPI2C1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:337
void LPI2C0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:310
void LPUART2_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:214
void LPUART1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:447
void LPSPI1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:495
void LPI2C0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:270
_pin_mux_direction
Direction type.
Definition: pin_mux.h:44
void LPUART1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:413
void LPI2C1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:377
void LPSPI1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:466
void LPSPI0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:436
enum _pin_mux_direction pin_mux_direction_t
Direction type.
void LPSPI0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:407
void LPUART0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:382
void LPUART2_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:240
void BOARD_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:73
void LPUART0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:349