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) 2015, 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  * @brief Configures pin routing and optionally pin electrical features.
73  *
74  */
75 void I2C0_InitPins(void);
76 
77 /*!
78  * @brief Configures pin routing and optionally pin electrical features.
79  *
80  */
81 void I2C0_DeinitPins(void);
82 
83 /*!
84  * @brief Configures pin routing and optionally pin electrical features.
85  *
86  */
87 void I2C1_InitPins(void);
88 
89 /*!
90  * @brief Configures pin routing and optionally pin electrical features.
91  *
92  */
93 void I2C1_DeinitPins(void);
94 
95 /*!
96  * @brief Configures pin routing and optionally pin electrical features.
97  *
98  */
99 void SPI0_InitPins(void);
100 
101 /*!
102  * @brief Configures pin routing and optionally pin electrical features.
103  *
104  */
105 void SPI0_DeinitPins(void);
106 
107 /*!
108  * @brief Configures pin routing and optionally pin electrical features.
109  *
110  */
111 void SPI1_InitPins(void);
112 
113 /*!
114  * @brief Configures pin routing and optionally pin electrical features.
115  *
116  */
117 void SPI1_DeinitPins(void);
118 
119 /*!
120  * @brief Configures pin routing and optionally pin electrical features.
121  *
122  */
123 void LPUART0_InitPins(void);
124 
125 /*!
126  * @brief Configures pin routing and optionally pin electrical features.
127  *
128  */
129 void LPUART0_DeinitPins(void);
130 
131 /*!
132  * @brief Configures pin routing and optionally pin electrical features.
133  *
134  */
135 void LPUART1_InitPins(void);
136 
137 /*!
138  * @brief Configures pin routing and optionally pin electrical features.
139  *
140  */
141 void LPUART1_DeinitPins(void);
142 
143 /*!
144  * @brief Configures pin routing and optionally pin electrical features.
145  *
146  */
147 void UART2_InitPins(void);
148 
149 /*!
150  * @brief Configures pin routing and optionally pin electrical features.
151  *
152  */
153 void UART2_DeinitPins(void);
154 #if defined(__cplusplus)
155 }
156 #endif
157 
158 /*!
159  * @}
160  */
161 #endif /* _PIN_MUX_H_ */
162 
163 /*******************************************************************************
164  * EOF
165  ******************************************************************************/
void I2C0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:438
void UART2_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:255
void I2C0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:392
void LPUART1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:447
void I2C1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:513
_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 UART2_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:227
void SPI1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:302
void SPI0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:274
enum _pin_mux_direction pin_mux_direction_t
Direction type.
void LPUART0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:382
void I2C1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:467
void BOARD_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:73
void SPI1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:334
void LPUART0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:349
void SPI0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:242