5 * SPDX-License-Identifier: BSD-3-Clause
9 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
15 processor_version: 0.0.0
16 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
19 #include "fsl_common.h"
23 /*FUNCTION**********************************************************************
25 * Function Name : BOARD_InitBootPins
26 * Description : Calls initialization functions.
28 *END**************************************************************************/
29 void BOARD_InitBootPins(void) {
33 #define PIN7_IDX 7u /*!< Pin number for pin 7 in a port */
34 #define PIN8_IDX 8u /*!< Pin number for pin 8 in a port */
37 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
39 - options: {callFromInitBoot: 'true', coreID: cm4, enableClock: 'true'}
41 - {pin_num: N2, peripheral: LPUART0, signal: RX, pin_signal: LPCMP0_IN0/PTC7/LLWU_P15/LPSPI0_PCS3/LPUART0_RX/LPI2C1_HREQ/TPM0_CH0/LPTMR1_ALT1}
42 - {pin_num: P3, peripheral: LPUART0, signal: TX, pin_signal: LPCMP0_IN1/PTC8/LPSPI0_SCK/LPUART0_TX/LPI2C0_HREQ/TPM0_CH1}
43 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
46 /*FUNCTION**********************************************************************
48 * Function Name : BOARD_InitPins
49 * Description : Configures pin routing and optionally pin electrical features.
51 *END**************************************************************************/
52 void BOARD_InitPins(void) {
53 CLOCK_EnableClock(kCLOCK_PortC); /* Clock Gate Control: 0x01u */
55 PORT_SetPinMux(PORTC, PIN7_IDX, kPORT_MuxAlt3); /* PORTC7 (pin N2) is configured as LPUART0_RX */
56 PORT_SetPinMux(PORTC, PIN8_IDX, kPORT_MuxAlt3); /* PORTC8 (pin P3) is configured as LPUART0_TX */
59 /*******************************************************************************
61 ******************************************************************************/