ISSDK  1.8
IoT Sensing Software Development Kit
pin_mux.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015, Freescale Semiconductor, Inc.
3  * Copyright 2016-2017 NXP
4  * All rights reserved.
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  */
8 
9 #ifndef _PIN_MUX_H_
10 #define _PIN_MUX_H_
11 #define PIN0_IDX 0u /*!< Pin number for pin 0 in a port */
12 #define PIN1_IDX 1u /*!< Pin number for pin 1 in a port */
13 #define PIN2_IDX 2u /*!< Pin number for pin 2 in a port */
14 #define PIN3_IDX 3u /*!< Pin number for pin 3 in a port */
15 #define PIN4_IDX 4u /*!< Pin number for pin 4 in a port */
16 #define PIN5_IDX 5u /*!< Pin number for pin 5 in a port */
17 #define PIN6_IDX 6u /*!< Pin number for pin 6 in a port */
18 #define PIN7_IDX 7u /*!< Pin number for pin 7 in a port */
19 #define PIN9_IDX 9u /*!< Pin number for pin 9 in a port */
20 #define PIN10_IDX 10u /*!< Pin number for pin 10 in a port */
21 #define PIN11_IDX 11u /*!< Pin number for pin 11 in a port */
22 #define PIN16_IDX 16u /*!< Pin number for pin 16 in a port */
23 #define PIN17_IDX 17u /*!< Pin number for pin 17 in a port */
24 #define PIN21_IDX 21u /*!< Pin number for pin 21 in a port */
25 #define PIN22_IDX 22u /*!< Pin number for pin 22 in a port */
26 #define PIN23_IDX 23u /*!< Pin number for pin 23 in a port */
27 #define PIN24_IDX 24u /*!< Pin number for pin 24 in a port */
28 #define PIN25_IDX 25u /*!< Pin number for pin 25 in a port */
29 #define PIN26_IDX 26u /*!< Pin number for pin 26 in a port */
30 
31 
32 /*******************************************************************************
33  * Definitions
34  ******************************************************************************/
35 
36 /*! @brief Direction type */
37 typedef enum _pin_mux_direction
38 {
39  kPIN_MUX_DirectionInput = 0U, /* Input direction */
40  kPIN_MUX_DirectionOutput = 1U, /* Output direction */
41  kPIN_MUX_DirectionInputOrOutput = 2U /* Input or output direction */
43 
44 /*!
45  * @addtogroup pin_mux
46  * @{
47  */
48 
49 /*******************************************************************************
50  * API
51  ******************************************************************************/
52 
53 #if defined(__cplusplus)
54 extern "C" {
55 #endif
56 
57 
58 /*!
59  * @brief Configures pin routing and optionally pin electrical features.
60  *
61  */
62 void BOARD_InitPins(void);
63 
64 /*!
65  * @brief Configures pin routing and optionally pin electrical features.
66  *
67  */
68 void I2C0_InitPins(void);
69 
70 /*!
71  * @brief Configures pin routing and optionally pin electrical features.
72  *
73  */
74 void I2C0_DeinitPins(void);
75 
76 /*!
77  * @brief Configures pin routing and optionally pin electrical features.
78  *
79  */
80 void I2C1_InitPins(void);
81 
82 /*!
83  * @brief Configures pin routing and optionally pin electrical features.
84  *
85  */
86 void I2C1_DeinitPins(void);
87 
88 /*!
89  * @brief Configures pin routing and optionally pin electrical features.
90  *
91  */
92 void SPI0_InitPins(void);
93 
94 /*!
95  * @brief Configures pin routing and optionally pin electrical features.
96  *
97  */
98 void SPI0_DeinitPins(void);
99 
100 /*!
101  * @brief Configures pin routing and optionally pin electrical features.
102  *
103  */
104 void SPI1_InitPins(void);
105 
106 /*!
107  * @brief Configures pin routing and optionally pin electrical features.
108  *
109  */
110 void SPI1_DeinitPins(void);
111 
112 /*!
113  * @brief Configures pin routing and optionally pin electrical features.
114  *
115  */
116 void UART0_InitPins(void);
117 
118 /*!
119  * @brief Configures pin routing and optionally pin electrical features.
120  *
121  */
122 void UART0_DeinitPins(void);
123 
124 /*!
125  * @brief Configures pin routing and optionally pin electrical features.
126  *
127  */
128 void UART1_InitPins(void);
129 
130 /*!
131  * @brief Configures pin routing and optionally pin electrical features.
132  *
133  */
134 void UART1_DeinitPins(void);
135 
136 /*!
137  * @brief Configures pin routing and optionally pin electrical features.
138  *
139  */
140 void UART2_InitPins(void);
141 
142 /*!
143  * @brief Configures pin routing and optionally pin electrical features.
144  *
145  */
146 void UART2_DeinitPins(void);
147 #if defined(__cplusplus)
148 }
149 #endif
150 
151 /*!
152  * @}
153  */
154 #endif /* _PIN_MUX_H_ */
155 
156 /*******************************************************************************
157  * EOF
158  ******************************************************************************/
void SPI1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:308
void I2C0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:366
void I2C1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:487
void SPI0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:248
void UART2_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:229
void UART2_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:201
void I2C0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:412
void I2C1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:441
void SPI1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:276
_pin_mux_direction
Direction type.
Definition: pin_mux.h:18
void UART1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:174
void UART0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:81
void BOARD_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:47
void UART0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:113
enum _pin_mux_direction pin_mux_direction_t
Direction type.
void UART1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:142
void SPI0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:216