ISSDK  1.8
IoT Sensing Software Development Kit
pin_mux.c
Go to the documentation of this file.
1 /*
2  * Copyright 2017 NXP
3  * All rights reserved.
4  *
5  * SPDX-License-Identifier: BSD-3-Clause
6  */
7 
8 /*
9  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
10 !!GlobalInfo
11 product: Pins v3.0
12 processor: K32W042S1M2xxx
13 package_id: K32W042S1M2VPJ
14 mcu_data: ksdk2_0
15 processor_version: 0.0.0
16  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
17  */
18 
19 #include "fsl_common.h"
20 #include "fsl_port.h"
21 #include "pin_mux.h"
22 
23 
24 #define PIN7_IDX 7u /*!< Pin number for pin 7 in a port */
25 #define PIN8_IDX 8u /*!< Pin number for pin 8 in a port */
26 
27 /*
28  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
29 BOARD_InitPins:
30 - options: {callFromInitBoot: 'true', coreID: cm4, enableClock: 'true'}
31 - pin_list:
32  - {pin_num: N2, peripheral: LPUART0, signal: RX, pin_signal: LPCMP0_IN0/PTC7/LLWU_P15/LPSPI0_PCS3/LPUART0_RX/LPI2C1_HREQ/TPM0_CH0/LPTMR1_ALT1}
33  - {pin_num: P3, peripheral: LPUART0, signal: TX, pin_signal: LPCMP0_IN1/PTC8/LPSPI0_SCK/LPUART0_TX/LPI2C0_HREQ/TPM0_CH1}
34  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
35  */
36 
37 /*FUNCTION**********************************************************************
38  *
39  * Function Name : BOARD_InitPins
40  * Description : Configures pin routing and optionally pin electrical features.
41  *
42  *END**************************************************************************/
43 void BOARD_InitPins(void) {
44  CLOCK_EnableClock(kCLOCK_PortC); /* Clock Gate Control: 0x01u */
45 
46  PORT_SetPinMux(PORTC, PIN7_IDX, kPORT_MuxAlt3); /* PORTC7 (pin N2) is configured as LPUART0_RX */
47  PORT_SetPinMux(PORTC, PIN8_IDX, kPORT_MuxAlt3); /* PORTC8 (pin P3) is configured as LPUART0_TX */
48 }
49 
50 
51 #define PIN9_IDX 9u /*!< Pin number for pin 9 in a port */
52 #define PIN10_IDX 10u /*!< Pin number for pin 10 in a port */
53 
54 /*
55  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
56 LPI2C0_InitPins:
57 - options: {coreID: cm4, enableClock: 'true'}
58 - pin_list:
59  - {pin_num: R1, peripheral: LPI2C0, signal: SDA, pin_signal: ADC0_SE4/LPCMP0_IN2/PTC9/LLWU_P16/LPSPI0_SOUT/LPUART0_CTS_b/LPI2C0_SDA/TPM0_CH2/LPTMR0_ALT2, slew_rate: fast,
60  open_drain: enable, pull_select: up, pull_enable: enable}
61  - {pin_num: R2, peripheral: LPI2C0, signal: SCL, pin_signal: ADC0_SE5/PTC10/LPSPI0_PCS2/LPUART0_RTS_b/LPI2C0_SCL/TPM0_CH3, slew_rate: fast, open_drain: enable,
62  pull_select: up, pull_enable: enable}
63  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
64  */
65 
66 /*FUNCTION**********************************************************************
67  *
68  * Function Name : LPI2C0_InitPins
69  * Description : Configures pin routing and optionally pin electrical features.
70  *
71  *END**************************************************************************/
72 void LPI2C0_InitPins(void) {
73  CLOCK_EnableClock(kCLOCK_PortC); /* Clock Gate Control: 0x01u */
74 
75  PORT_SetPinMux(PORTC, PIN10_IDX, kPORT_MuxAlt4); /* PORTC10 (pin R2) is configured as LPI2C0_SCL */
76  PORTC->PCR[10] = ((PORTC->PCR[10] &
77  (~(PORT_PCR_PS_MASK | PORT_PCR_PE_MASK | PORT_PCR_SRE_MASK | PORT_PCR_ODE_MASK | PORT_PCR_ISF_MASK))) /* Mask bits to zero which are setting */
78  | PORT_PCR_PS(0x01u) /* Pull Select: 0x01u */
79  | PORT_PCR_PE(0x01u) /* Pull Enable: 0x01u */
80  | PORT_PCR_SRE(0x00u) /* Slew Rate Enable: 0x00u */
81  | PORT_PCR_ODE(0x01u) /* Open Drain Enable: 0x01u */
82  );
83  PORT_SetPinMux(PORTC, PIN9_IDX, kPORT_MuxAlt4); /* PORTC9 (pin R1) is configured as LPI2C0_SDA */
84  PORTC->PCR[9] = ((PORTC->PCR[9] &
85  (~(PORT_PCR_PS_MASK | PORT_PCR_PE_MASK | PORT_PCR_SRE_MASK | PORT_PCR_ODE_MASK | PORT_PCR_ISF_MASK))) /* Mask bits to zero which are setting */
86  | PORT_PCR_PS(0x01u) /* Pull Select: 0x01u */
87  | PORT_PCR_PE(0x01u) /* Pull Enable: 0x01u */
88  | PORT_PCR_SRE(0x00u) /* Slew Rate Enable: 0x00u */
89  | PORT_PCR_ODE(0x01u) /* Open Drain Enable: 0x01u */
90  );
91 }
92 
93 
94 
95 #define PIN9_IDX 9u /*!< Pin number for pin 9 in a port */
96 
97 #define PIN10_IDX 10u /*!< Pin number for pin 10 in a port */
98 /*
99  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
100 LPI2C0_DeinitPins:
101 - options: {coreID: cm4, enableClock: 'true'}
102 - pin_list:
103  - {pin_num: R2, peripheral: ADC0, signal: 'SE, 5', pin_signal: ADC0_SE5/PTC10/LPSPI0_PCS2/LPUART0_RTS_b/LPI2C0_SCL/TPM0_CH3}
104  - {pin_num: R1, peripheral: ADC0, signal: 'SE, 4', pin_signal: ADC0_SE4/LPCMP0_IN2/PTC9/LLWU_P16/LPSPI0_SOUT/LPUART0_CTS_b/LPI2C0_SDA/TPM0_CH2/LPTMR0_ALT2}
105  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
106  */
107 
108 /*FUNCTION**********************************************************************
109  *
110  * Function Name : LPI2C0_DeinitPins
111  * Description : Configures pin routing and optionally pin electrical features.
112  *
113  *END**************************************************************************/
114 void LPI2C0_DeinitPins(void) {
115  CLOCK_EnableClock(kCLOCK_PortC); /* Clock Gate Control: 0x01u */
116 
117  PORT_SetPinMux(PORTC, PIN10_IDX, kPORT_PinDisabledOrAnalog); /* PORTC10 (pin R2) is configured as ADC0_SE5 */
118  PORT_SetPinMux(PORTC, PIN9_IDX, kPORT_PinDisabledOrAnalog); /* PORTC9 (pin R1) is configured as ADC0_SE4 */
119 }
120 
121 
122 /*
123  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
124 LPI2C1_InitPins:
125 - options: {coreID: cm4, enableClock: 'true'}
126 - pin_list: []
127  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
128  */
129 
130 /*FUNCTION**********************************************************************
131  *
132  * Function Name : LPI2C1_InitPins
133  * Description : Configures pin routing and optionally pin electrical features.
134  *
135  *END**************************************************************************/
136 void LPI2C1_InitPins(void) {
137 }
138 
139 /*
140  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
141 LPI2C1_DeinitPins:
142 - options: {coreID: cm4, enableClock: 'true'}
143 - pin_list: []
144  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
145  */
146 
147 /*FUNCTION**********************************************************************
148  *
149  * Function Name : LPI2C1_DeinitPins
150  * Description : Configures pin routing and optionally pin electrical features.
151  *
152  *END**************************************************************************/
153 void LPI2C1_DeinitPins(void) {
154 }
155 
156 
157 /*
158  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
159 LPI2C2_InitPins:
160 - options: {coreID: cm4, enableClock: 'true'}
161 - pin_list: []
162  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
163  */
164 
165 /*FUNCTION**********************************************************************
166  *
167  * Function Name : LPI2C2_InitPins
168  * Description : Configures pin routing and optionally pin electrical features.
169  *
170  *END**************************************************************************/
171 void LPI2C2_InitPins(void) {
172 }
173 
174 
175 /*
176  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
177 LPI2C2_DeinitPins:
178 - options: {coreID: cm4, enableClock: 'true'}
179 - pin_list: []
180  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
181  */
182 
183 /*FUNCTION**********************************************************************
184  *
185  * Function Name : LPI2C2_DeinitPins
186  * Description : Configures pin routing and optionally pin electrical features.
187  *
188  *END**************************************************************************/
189 void LPI2C2_DeinitPins(void) {
190 }
191 
192 
193 #define PIN29_IDX 29u /*!< Pin number for pin 29 in a port */
194 #define PIN30_IDX 30u /*!< Pin number for pin 30 in a port */
195 
196 /*
197  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
198 LPI2C3_InitPins:
199 - options: {coreID: cm4, enableClock: 'true'}
200 - pin_list:
201  - {pin_num: G15, peripheral: LPI2C3, signal: SDA, pin_signal: PTE29/LPUART3_RX/LPI2C3_SDA/FXIO0_D30, slew_rate: fast, open_drain: enable, pull_select: up, pull_enable: enable}
202  - {pin_num: G17, peripheral: LPI2C3, signal: SCL, pin_signal: PTE30/LPUART3_TX/LPI2C3_SCL/TPM2_CLKIN/FXIO0_D31, slew_rate: fast, open_drain: enable, pull_select: up,
203  pull_enable: enable}
204  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
205  */
206 
207 /*FUNCTION**********************************************************************
208  *
209  * Function Name : LPI2C3_InitPins
210  * Description : Configures pin routing and optionally pin electrical features.
211  *
212  *END**************************************************************************/
213 void LPI2C3_InitPins(void) {
214  CLOCK_EnableClock(kCLOCK_PortE); /* Clock Gate Control: 0x01u */
215 
216  const port_pin_config_t porte29_pinG15_config = {
217  kPORT_PullUp, /* Internal pull-up resistor is enabled */
218  kPORT_FastSlewRate, /* Fast slew rate is configured */
219  kPORT_PassiveFilterDisable, /* Passive filter is disabled */
220  kPORT_OpenDrainEnable, /* Open drain is enabled */
221  kPORT_LowDriveStrength, /* Low drive strength is configured */
222  kPORT_MuxAlt3, /* Pin is configured as LPI2C3_SDA */
223  kPORT_UnlockRegister /* Pin Control Register fields [15:0] are not locked */
224  };
225  PORT_SetPinConfig(PORTE, PIN29_IDX, &porte29_pinG15_config); /* PORTE29 (pin G15) is configured as LPI2C3_SDA */
226  const port_pin_config_t porte30_pinG17_config = {
227  kPORT_PullUp, /* Internal pull-up resistor is enabled */
228  kPORT_FastSlewRate, /* Fast slew rate is configured */
229  kPORT_PassiveFilterDisable, /* Passive filter is disabled */
230  kPORT_OpenDrainEnable, /* Open drain is enabled */
231  kPORT_LowDriveStrength, /* Low drive strength is configured */
232  kPORT_MuxAlt3, /* Pin is configured as LPI2C3_SCL */
233  kPORT_UnlockRegister /* Pin Control Register fields [15:0] are not locked */
234  };
235  PORT_SetPinConfig(PORTE, PIN30_IDX, &porte30_pinG17_config); /* PORTE30 (pin G17) is configured as LPI2C3_SCL */
236 }
237 
238 
239 #define PIN29_IDX 29u /*!< Pin number for pin 29 in a port */
240 #define PIN30_IDX 30u /*!< Pin number for pin 30 in a port */
241 
242 /*
243  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
244 LPI2C3_DeinitPins:
245 - options: {coreID: cm4, enableClock: 'true'}
246 - pin_list:
247  - {pin_num: H5, peripheral: n/a, signal: disabled, pin_signal: PTB16/LLWU_P10/LPUART3_CTS_b/LPI2C3_SDA/FB_CS4_b/FB_TSIZ0/FB_BE31_24_b/FXIO0_D6}
248  - {pin_num: G1, peripheral: n/a, signal: disabled, pin_signal: PTB15/LPI2C1_HREQ/LPI2C3_SCL/FB_CS5_b/FB_TSIZ1/FB_BE23_16_b/TPM0_CLKIN/FXIO0_D5}
249  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
250  */
251 
252 /*FUNCTION**********************************************************************
253  *
254  * Function Name : LPI2C3_DeinitPins
255  * Description : Configures pin routing and optionally pin electrical features.
256  *
257  *END**************************************************************************/
258 void LPI2C3_DeinitPins(void) {
259  CLOCK_EnableClock(kCLOCK_PortE); /* Clock Gate Control: 0x01u */
260 
261  PORT_SetPinMux(PORTE, PIN29_IDX, kPORT_PinDisabledOrAnalog); /* PORTB15 (pin G1) is disabled */
262  PORT_SetPinMux(PORTE, PIN30_IDX, kPORT_PinDisabledOrAnalog); /* PORTB16 (pin H5) is disabled */
263 }
264 
265 #define PIN7_IDX 7u /*!< Pin number for pin 7 in a port */
266 
267 #define PIN8_IDX 8u /*!< Pin number for pin 8 in a port */
268 
269 /*FUNCTION**********************************************************************
270  *
271  * Function Name : LPUART0_InitPins
272  * Description : Configures pin routing and optionally pin electrical features.
273  *
274  *END**************************************************************************/
275 void LPUART0_InitPins(void) {
276  CLOCK_EnableClock(kCLOCK_PortC); /* Clock Gate Control: 0x01u */
277 
278  PORT_SetPinMux(PORTC, PIN7_IDX, kPORT_MuxAlt3); /* PORTC7 (pin N2) is configured as LPUART0_RX */
279  PORT_SetPinMux(PORTC, PIN8_IDX, kPORT_MuxAlt3); /* PORTC8 (pin P3) is configured as LPUART0_TX */
280 }
281 
282 
283 
284 #define PIN7_IDX 7u /*!< Pin number for pin 7 in a port */
285 
286 #define PIN8_IDX 8u /*!< Pin number for pin 8 in a port */
287 /*
288  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
289 LPUART0_DeinitPins:
290 - options: {coreID: cm4, enableClock: 'true'}
291 - pin_list:
292  - {pin_num: P3, peripheral: LPCMP0, signal: 'IN, 1', pin_signal: LPCMP0_IN1/PTC8/LPSPI0_SCK/LPUART0_TX/LPI2C0_HREQ/TPM0_CH1}
293  - {pin_num: N2, peripheral: LPCMP0, signal: 'IN, 0', pin_signal: LPCMP0_IN0/PTC7/LLWU_P15/LPSPI0_PCS3/LPUART0_RX/LPI2C1_HREQ/TPM0_CH0/LPTMR1_ALT1}
294  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
295  */
296 
297 /*FUNCTION**********************************************************************
298  *
299  * Function Name : LPUART0_DeinitPins
300  * Description : Configures pin routing and optionally pin electrical features.
301  *
302  *END**************************************************************************/
303 void LPUART0_DeinitPins(void) {
304  CLOCK_EnableClock(kCLOCK_PortC); /* Clock Gate Control: 0x01u */
305 
306  PORT_SetPinMux(PORTC, PIN7_IDX, kPORT_PinDisabledOrAnalog); /* PORTC7 (pin N2) is configured as LPCMP0_IN0 */
307  PORT_SetPinMux(PORTC, PIN8_IDX, kPORT_PinDisabledOrAnalog); /* PORTC8 (pin P3) is configured as LPCMP0_IN1 */
308 }
309 
310 #define PIN25_IDX 25u /*!< Pin number for pin 25 in a port */
311 #define PIN26_IDX 26u /*!< Pin number for pin 26 in a port */
312 
313 /*
314  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
315 LPUART1_InitPins:
316 - options: {coreID: cm4, enableClock: 'true'}
317 - pin_list: []
318  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
319  */
320 
321 /*FUNCTION**********************************************************************
322  *
323  * Function Name : LPUART1_InitPins
324  * Description : Configures pin routing and optionally pin electrical features.
325  *
326  *END**************************************************************************/
327 void LPUART1_InitPins(void) {
328  CLOCK_EnableClock(kCLOCK_PortA); /* Clock Gate Control: 0x01u */
329 
330  PORT_SetPinMux(PORTA, PIN25_IDX, kPORT_MuxAlt2); /* PORTA25 (pin B5) is configured as LPUART1_RX */
331  PORT_SetPinMux(PORTA, PIN26_IDX, kPORT_MuxAlt2); /* PORTA26 (pin A5) is configured as LPUART1_TX */
332 }
333 
334 
335 /*
336  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
337 LPUART1_DeinitPins:
338 - options: {coreID: cm4, enableClock: 'true'}
339 - pin_list: []
340  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
341  */
342 
343 /*FUNCTION**********************************************************************
344  *
345  * Function Name : LPUART1_DeinitPins
346  * Description : Configures pin routing and optionally pin electrical features.
347  *
348  *END**************************************************************************/
349 void LPUART1_DeinitPins(void) {
350  CLOCK_EnableClock(kCLOCK_PortA); /* Clock Gate Control: 0x01u */
351 
352  PORT_SetPinMux(PORTA, PIN25_IDX, kPORT_PinDisabledOrAnalog); /* PORTC7 (pin N2) is configured as LPCMP0_IN0 */
353  PORT_SetPinMux(PORTA, PIN26_IDX, kPORT_PinDisabledOrAnalog); /* PORTC8 (pin P3) is configured as LPCMP0_IN1 */
354 }
355 
356 
357 /*
358  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
359 LPUART2_InitPins:
360 - options: {coreID: cm4, enableClock: 'true'}
361 - pin_list: []
362  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
363  */
364 
365 /*FUNCTION**********************************************************************
366  *
367  * Function Name : LPUART2_InitPins
368  * Description : Configures pin routing and optionally pin electrical features.
369  *
370  *END**************************************************************************/
371 void LPUART2_InitPins(void) {
372 }
373 
374 
375 /*
376  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
377 LPUART2_DeinitPins:
378 - options: {coreID: cm4, enableClock: 'true'}
379 - pin_list: []
380  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
381  */
382 
383 /*FUNCTION**********************************************************************
384  *
385  * Function Name : LPUART2_DeinitPins
386  * Description : Configures pin routing and optionally pin electrical features.
387  *
388  *END**************************************************************************/
389 void LPUART2_DeinitPins(void) {
390 }
391 
392 
393 #define PIN4_IDX 4u /*!< Pin number for pin 4 in a port */
394 #define PIN5_IDX 5u /*!< Pin number for pin 5 in a port */
395 #define PIN7_IDX 7u /*!< Pin number for pin 7 in a port */
396 
397 /*
398  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
399 LPSPI0_InitPins:
400 - options: {coreID: cm4, enableClock: 'true'}
401 - pin_list:
402  - {pin_num: C2, peripheral: LPSPI0, signal: SCK, pin_signal: ADC0_SE1/PTB4/LLWU_P6/RF0_RF_OFF/RF0_DFT_RESET/LPSPI0_SCK/LPUART1_CTS_b/SAI0_TX_BCLK/FB_AD9/TPM0_CH2}
403  - {pin_num: D2, peripheral: LPSPI0, signal: OUT, pin_signal: PTB5/RF0_ACTIVE/LPSPI0_SOUT/LPUART1_RTS_b/SAI0_MCLK/FB_AD8/TPM0_CH3}
404  - {pin_num: E2, peripheral: LPSPI0, signal: IN, pin_signal: ADC0_SE2/PTB7/LLWU_P8/LPSPI0_SIN/LPI2C1_SDAS/SAI0_RX_FS/FB_AD6/TPM0_CH5/RF0_BSM_DATA}
405  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
406  */
407 
408 /*FUNCTION**********************************************************************
409  *
410  * Function Name : LPSPI0_InitPins
411  * Description : Configures pin routing and optionally pin electrical features.
412  *
413  *END**************************************************************************/
414 void LPSPI0_InitPins(void) {
415  CLOCK_EnableClock(kCLOCK_PortB); /* Clock Gate Control: 0x01u */
416 
417  PORT_SetPinMux(PORTB, PIN4_IDX, kPORT_MuxAlt2); /* PORTB4 (pin C2) is configured as LPSPI0_SCK */
418  PORT_SetPinMux(PORTB, PIN5_IDX, kPORT_MuxAlt2); /* PORTB5 (pin D2) is configured as LPSPI0_SOUT */
419  PORT_SetPinMux(PORTB, PIN7_IDX, kPORT_MuxAlt2); /* PORTB7 (pin E2) is configured as LPSPI0_SIN */
420 }
421 
422 
423 #define PIN4_IDX 4u /*!< Pin number for pin 4 in a port */
424 #define PIN5_IDX 5u /*!< Pin number for pin 5 in a port */
425 #define PIN7_IDX 7u /*!< Pin number for pin 7 in a port */
426 
427 /*
428  * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
429 LPSPI0_DeinitPins:
430 - options: {coreID: cm4, enableClock: 'true'}
431 - pin_list:
432  - {pin_num: E2, peripheral: GPIOB, signal: 'GPIO, 7', pin_signal: ADC0_SE2/PTB7/LLWU_P8/LPSPI0_SIN/LPI2C1_SDAS/SAI0_RX_FS/FB_AD6/TPM0_CH5/RF0_BSM_DATA}
433  - {pin_num: C2, peripheral: GPIOB, signal: 'GPIO, 4', pin_signal: ADC0_SE1/PTB4/LLWU_P6/RF0_RF_OFF/RF0_DFT_RESET/LPSPI0_SCK/LPUART1_CTS_b/SAI0_TX_BCLK/FB_AD9/TPM0_CH2}
434  - {pin_num: D2, peripheral: n/a, signal: disabled, pin_signal: PTB5/RF0_ACTIVE/LPSPI0_SOUT/LPUART1_RTS_b/SAI0_MCLK/FB_AD8/TPM0_CH3}
435  * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
436  */
437 
438 /*FUNCTION**********************************************************************
439  *
440  * Function Name : LPSPI0_DeinitPins
441  * Description : Configures pin routing and optionally pin electrical features.
442  *
443  *END**************************************************************************/
444 void LPSPI0_DeinitPins(void) {
445  CLOCK_EnableClock(kCLOCK_PortB); /* Clock Gate Control: 0x01u */
446 
447  PORT_SetPinMux(PORTB, PIN4_IDX, kPORT_PinDisabledOrAnalog); /* PORTB4 (pin C2) is disabled */
448  PORT_SetPinMux(PORTB, PIN5_IDX, kPORT_PinDisabledOrAnalog); /* PORTB5 (pin D2) is disabled */
449  PORT_SetPinMux(PORTB, PIN7_IDX, kPORT_PinDisabledOrAnalog); /* PORTB7 (pin E2) is disabled */
450 }
451 
452 /*******************************************************************************
453  * EOF
454  ******************************************************************************/
void LPI2C3_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:213
#define PIN8_IDX
Definition: pin_mux.c:286
void LPI2C2_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:171
void LPSPI0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:381
void LPI2C2_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:189
#define PIN25_IDX
Definition: pin_mux.c:310
void LPSPI0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:410
#define PIN9_IDX
Definition: pin_mux.c:95
void LPUART1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:387
void LPI2C1_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:311
#define PIN30_IDX
Definition: pin_mux.c:240
void LPI2C0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:244
void LPUART0_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:323
void LPUART1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:421
#define PIN10_IDX
Definition: pin_mux.c:97
#define PIN29_IDX
Definition: pin_mux.c:239
void LPI2C0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:284
void LPUART2_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:214
void LPUART2_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:188
void LPI2C3_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:258
void LPUART0_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:356
#define PIN4_IDX
Definition: pin_mux.c:423
#define PIN5_IDX
Definition: pin_mux.c:424
#define PIN26_IDX
Definition: pin_mux.c:311
void LPI2C1_DeinitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:351
#define PIN7_IDX
Definition: pin_mux.c:425
void BOARD_InitPins(void)
Configures pin routing and optionally pin electrical features.
Definition: pin_mux.c:47