ISSDK  1.8
IoT Sensing Software Development Kit
pin_mux.h
Go to the documentation of this file.
1 /*
2  * Copyright 2019 NXP
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 /***********************************************************************************************************************
9  * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file
10  * will be overwritten if the respective MCUXpresso Config Tools is used to update this file.
11  **********************************************************************************************************************/
12 
13 #ifndef _PIN_MUX_H_
14 #define _PIN_MUX_H_
15 
16 /***********************************************************************************************************************
17  * Definitions
18  **********************************************************************************************************************/
19 
20 /*! @brief Direction type */
21 typedef enum _pin_mux_direction
22 {
23  kPIN_MUX_DirectionInput = 0U, /* Input direction */
24  kPIN_MUX_DirectionOutput = 1U, /* Output direction */
25  kPIN_MUX_DirectionInputOrOutput = 2U /* Input or output direction */
27 
28 /*!
29  * @addtogroup pin_mux
30  * @{
31  */
32 
33 /***********************************************************************************************************************
34  * API
35  **********************************************************************************************************************/
36 
37 #if defined(__cplusplus)
38 extern "C" {
39 #endif
40 
41 /*!
42  * @brief Calls initialization functions.
43  *
44  */
45 void BOARD_InitBootPins(void);
46 
47 #define IOPCTL_PIO_ANAMUX_DI 0x00u /*!<@brief Analog mux is disabled */
48 #define IOPCTL_PIO_FULLDRIVE_DI 0x00u /*!<@brief Normal drive */
49 #define IOPCTL_PIO_FULLDRIVE_EN 0x0100u /*!<@brief Full drive enable */
50 #define IOPCTL_PIO_FUNC1 0x01u /*!<@brief Selects pin function 1 */
51 #define IOPCTL_PIO_INBUF_DI 0x00u /*!<@brief Disable input buffer function */
52 #define IOPCTL_PIO_INBUF_EN 0x40u /*!<@brief Enables input buffer function */
53 #define IOPCTL_PIO_INV_DI 0x00u /*!<@brief Input function is not inverted */
54 #define IOPCTL_PIO_PSEDRAIN_DI 0x00u /*!<@brief Pseudo Output Drain is disabled */
55 #define IOPCTL_PIO_PULLDOWN_EN 0x00u /*!<@brief Enable pull-down function */
56 #define IOPCTL_PIO_PUPD_DI 0x00u /*!<@brief Disable pull-up / pull-down function */
57 #define IOPCTL_PIO_SLEW_RATE_NORMAL 0x00u /*!<@brief Normal mode */
58 
59 /*!
60  * @brief Configures pin routing and optionally pin electrical features.
61  *
62  */
63 void BOARD_InitPins(void); /* Function assigned for the Cortex-M33 */
64 
65 #define IOPCTL_PIO_ANAMUX_DI 0x00u /*!<@brief Analog mux is disabled */
66 #define IOPCTL_PIO_FULLDRIVE_DI 0x00u /*!<@brief Normal drive */
67 #define IOPCTL_PIO_FUNC1 0x01u /*!<@brief Selects pin function 1 */
68 #define IOPCTL_PIO_INBUF_EN 0x40u /*!<@brief Enables input buffer function */
69 #define IOPCTL_PIO_INV_DI 0x00u /*!<@brief Input function is not inverted */
70 #define IOPCTL_PIO_PSEDRAIN_EN 0x0400u /*!<@brief Pseudo Output Drain is enabled */
71 #define IOPCTL_PIO_PULLUP_EN 0x20u /*!<@brief Enable pull-up function */
72 #define IOPCTL_PIO_PUPD_EN 0x10u /*!<@brief Enable pull-up / pull-down function */
73 #define IOPCTL_PIO_SLEW_RATE_NORMAL 0x00u /*!<@brief Normal mode */
74 
75 /*!
76  * @brief Configures pin routing and optionally pin electrical features.
77  *
78  */
79 void I2C4_InitPins(void); /* Function assigned for the Cortex-M33 */
80 
81 #define IOPCTL_PIO_ANAMUX_DI 0x00u /*!<@brief Analog mux is disabled */
82 #define IOPCTL_PIO_FULLDRIVE_DI 0x00u /*!<@brief Normal drive */
83 #define IOPCTL_PIO_FUNC0 0x00u /*!<@brief Selects pin function 0 */
84 #define IOPCTL_PIO_INBUF_DI 0x00u /*!<@brief Disable input buffer function */
85 #define IOPCTL_PIO_INV_DI 0x00u /*!<@brief Input function is not inverted */
86 #define IOPCTL_PIO_PSEDRAIN_DI 0x00u /*!<@brief Pseudo Output Drain is disabled */
87 #define IOPCTL_PIO_PULLDOWN_EN 0x00u /*!<@brief Enable pull-down function */
88 #define IOPCTL_PIO_PUPD_DI 0x00u /*!<@brief Disable pull-up / pull-down function */
89 #define IOPCTL_PIO_SLEW_RATE_NORMAL 0x00u /*!<@brief Normal mode */
90 
91 /*!
92  * @brief Configures pin routing and optionally pin electrical features.
93  *
94  */
95 void I2C4_DeinitPins(void); /* Function assigned for the Cortex-M33 */
96 
97 #define IOPCTL_PIO_ANAMUX_DI 0x00u /*!<@brief Analog mux is disabled */
98 #define IOPCTL_PIO_FULLDRIVE_DI 0x00u /*!<@brief Normal drive */
99 #define IOPCTL_PIO_FUNC1 0x01u /*!<@brief Selects pin function 1 */
100 #define IOPCTL_PIO_INBUF_DI 0x00u /*!<@brief Disable input buffer function */
101 #define IOPCTL_PIO_INBUF_EN 0x40u /*!<@brief Enables input buffer function */
102 #define IOPCTL_PIO_INV_DI 0x00u /*!<@brief Input function is not inverted */
103 #define IOPCTL_PIO_PSEDRAIN_DI 0x00u /*!<@brief Pseudo Output Drain is disabled */
104 #define IOPCTL_PIO_PULLDOWN_EN 0x00u /*!<@brief Enable pull-down function */
105 #define IOPCTL_PIO_PUPD_DI 0x00u /*!<@brief Disable pull-up / pull-down function */
106 #define IOPCTL_PIO_SLEW_RATE_NORMAL 0x00u /*!<@brief Normal mode */
107 
108 /*!
109  * @brief Configures pin routing and optionally pin electrical features.
110  *
111  */
112 void USART0_InitPins(void); /* Function assigned for the Cortex-M33 */
113 
114 #define IOPCTL_PIO_ANAMUX_DI 0x00u /*!<@brief Analog mux is disabled */
115 #define IOPCTL_PIO_FULLDRIVE_DI 0x00u /*!<@brief Normal drive */
116 #define IOPCTL_PIO_FUNC0 0x00u /*!<@brief Selects pin function 0 */
117 #define IOPCTL_PIO_INBUF_DI 0x00u /*!<@brief Disable input buffer function */
118 #define IOPCTL_PIO_INV_DI 0x00u /*!<@brief Input function is not inverted */
119 #define IOPCTL_PIO_PSEDRAIN_DI 0x00u /*!<@brief Pseudo Output Drain is disabled */
120 #define IOPCTL_PIO_PULLDOWN_EN 0x00u /*!<@brief Enable pull-down function */
121 #define IOPCTL_PIO_PUPD_DI 0x00u /*!<@brief Disable pull-up / pull-down function */
122 #define IOPCTL_PIO_SLEW_RATE_NORMAL 0x00u /*!<@brief Normal mode */
123 
124 /*!
125  * @brief Configures pin routing and optionally pin electrical features.
126  *
127  */
128 void USART0_DeinitPins(void); /* Function assigned for the Cortex-M33 */
129 
130 #define IOPCTL_PIO_ANAMUX_DI 0x00u /*!<@brief Analog mux is disabled */
131 #define IOPCTL_PIO_FULLDRIVE_DI 0x00u /*!<@brief Normal drive */
132 #define IOPCTL_PIO_FUNC1 0x01u /*!<@brief Selects pin function 1 */
133 #define IOPCTL_PIO_INBUF_EN 0x40u /*!<@brief Enables input buffer function */
134 #define IOPCTL_PIO_INV_DI 0x00u /*!<@brief Input function is not inverted */
135 #define IOPCTL_PIO_PSEDRAIN_DI 0x00u /*!<@brief Pseudo Output Drain is disabled */
136 #define IOPCTL_PIO_PULLDOWN_EN 0x00u /*!<@brief Enable pull-down function */
137 #define IOPCTL_PIO_PUPD_DI 0x00u /*!<@brief Disable pull-up / pull-down function */
138 #define IOPCTL_PIO_SLEW_RATE_NORMAL 0x00u /*!<@brief Normal mode */
139 
140 /*!
141  * @brief Configures pin routing and optionally pin electrical features.
142  *
143  */
144 void SPI5_InitPins(void); /* Function assigned for the Cortex-M33 */
145 
146 #define IOPCTL_PIO_ANAMUX_DI 0x00u /*!<@brief Analog mux is disabled */
147 #define IOPCTL_PIO_FULLDRIVE_DI 0x00u /*!<@brief Normal drive */
148 #define IOPCTL_PIO_FUNC0 0x00u /*!<@brief Selects pin function 0 */
149 #define IOPCTL_PIO_INBUF_DI 0x00u /*!<@brief Disable input buffer function */
150 #define IOPCTL_PIO_INV_DI 0x00u /*!<@brief Input function is not inverted */
151 #define IOPCTL_PIO_PSEDRAIN_DI 0x00u /*!<@brief Pseudo Output Drain is disabled */
152 #define IOPCTL_PIO_PULLDOWN_EN 0x00u /*!<@brief Enable pull-down function */
153 #define IOPCTL_PIO_PUPD_DI 0x00u /*!<@brief Disable pull-up / pull-down function */
154 #define IOPCTL_PIO_SLEW_RATE_NORMAL 0x00u /*!<@brief Normal mode */
155 
156 /*!
157  * @brief Configures pin routing and optionally pin electrical features.
158  *
159  */
160 void SPI5_DeinitPins(void); /* Function assigned for the Cortex-M33 */
161 
162 #if defined(__cplusplus)
163 }
164 #endif
165 
166 /*!
167  * @}
168  */
169 #endif /* _PIN_MUX_H_ */
170 
171 /***********************************************************************************************************************
172  * EOF
173  **********************************************************************************************************************/
void SPI5_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:570
_pin_mux_direction
Direction type.
Definition: pin_mux.h:18
void BOARD_InitBootPins(void)
Calls initialization functions.
Definition: pin_mux.c:36
void USART0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:157
void BOARD_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:47
void I2C4_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:249
void SPI5_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:654
enum _pin_mux_direction pin_mux_direction_t
Direction type.
void I2C4_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:202
void USART0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:110