/*********************************************************************************************************************** * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. **********************************************************************************************************************/ /* clang-format off */ /* * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* !!GlobalInfo product: Pins v13.1 processor: LPC55S69 package_id: LPC55S69JBD100 mcu_data: ksdk2_0 processor_version: 13.0.1 pin_labels: - {pin_num: '22', pin_signal: PIO0_15/FC6_CTS_SDA_SSEL0/UTICK_CAP2/CT_INP16/SCT0_OUT2/SD0_WR_PRT/SECURE_GPIO0_15/ADC0_2, label: Rotary SW interrupt} - {pin_num: '27', pin_signal: PIO0_27/FC2_TXD_SCL_MISO_WS/CTIMER3_MAT2/SCT0_OUT6/FC7_RXD_SDA_MOSI_DATA/PLU_OUT0/SECURE_GPIO0_27, label: PushButton interrupt} - {pin_num: '62', pin_signal: PIO1_3/SCT0_OUT4/HS_SPI_MISO/USB0_PORTPWRN/PLU_OUT6, label: LCD MISO} - {pin_num: '61', pin_signal: PIO1_2/CTIMER0_MAT3/SCT_GPI6/HS_SPI_SCK/USB1_PORTPWRN/PLU_OUT5, label: LCD CLK} - {pin_num: '60', pin_signal: PIO0_26/FC2_RXD_SDA_MOSI_DATA/CLKOUT/CT_INP14/SCT0_OUT5/USB0_IDVALUE/FC0_SCK/HS_SPI_MOSI/SECURE_GPIO0_26, label: LCD MOSI} - {pin_num: '59', pin_signal: PIO1_1/FC3_RXD_SDA_MOSI_DATA/CT_INP3/SCT_GPI5/HS_SPI_SSEL1/USB1_OVERCURRENTN/PLU_OUT4, label: LCD CSn} - {pin_num: '24', pin_signal: PIO1_8/FC0_CTS_SDA_SSEL0/SD0_CLK/SCT0_OUT1/FC4_SSEL2/ADC0_4, label: LCD RESn} - {pin_num: '31', pin_signal: PIO1_5/FC0_RXD_SDA_MOSI_DATA/SD0_D2/CTIMER2_MAT0/SCT_GPI0, label: LCD_PWM} - {pin_num: '14', pin_signal: PIO0_16/FC4_TXD_SCL_MISO_WS/CLKOUT/CT_INP4/SECURE_GPIO0_16/ADC0_8, label: For troubleshooting} * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** */ /* clang-format on */ #include "fsl_common.h" #include "pin_mux.h" /* FUNCTION ************************************************************************************************************ * * Function Name : BOARD_InitBootPins * Description : Calls initialization functions. * * END ****************************************************************************************************************/ void BOARD_InitBootPins(void) { BOARD_InitPins(); } /* clang-format off */ /* * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* BOARD_InitPins: - options: {callFromInitBoot: 'true', coreID: cm33_core0, enableClock: 'true'} - pin_list: - {pin_num: '62', peripheral: FLEXCOMM8, signal: HS_SPI_MISO, pin_signal: PIO1_3/SCT0_OUT4/HS_SPI_MISO/USB0_PORTPWRN/PLU_OUT6} - {pin_num: '60', peripheral: FLEXCOMM8, signal: HS_SPI_MOSI, pin_signal: PIO0_26/FC2_RXD_SDA_MOSI_DATA/CLKOUT/CT_INP14/SCT0_OUT5/USB0_IDVALUE/FC0_SCK/HS_SPI_MOSI/SECURE_GPIO0_26} - {pin_num: '24', peripheral: GPIO, signal: 'PIO1, 8', pin_signal: PIO1_8/FC0_CTS_SDA_SSEL0/SD0_CLK/SCT0_OUT1/FC4_SSEL2/ADC0_4} - {pin_num: '31', peripheral: CTIMER2, signal: 'MATCH, 0', pin_signal: PIO1_5/FC0_RXD_SDA_MOSI_DATA/SD0_D2/CTIMER2_MAT0/SCT_GPI0} - {pin_num: '14', peripheral: SYSCON, signal: CLKOUT, pin_signal: PIO0_16/FC4_TXD_SCL_MISO_WS/CLKOUT/CT_INP4/SECURE_GPIO0_16/ADC0_8} - {pin_num: '3', peripheral: GPIO, signal: 'PIO1, 24', pin_signal: PIO1_24/FC2_RXD_SDA_MOSI_DATA/SCT0_OUT1/SD1_D1/FC3_SSEL3/PLU_OUT6} - {pin_num: '59', peripheral: FLEXCOMM8, signal: HS_SPI_SSEL1, pin_signal: PIO1_1/FC3_RXD_SDA_MOSI_DATA/CT_INP3/SCT_GPI5/HS_SPI_SSEL1/USB1_OVERCURRENTN/PLU_OUT4} - {pin_num: '61', peripheral: FLEXCOMM8, signal: HS_SPI_SCK, pin_signal: PIO1_2/CTIMER0_MAT3/SCT_GPI6/HS_SPI_SCK/USB1_PORTPWRN/PLU_OUT5} - {pin_num: '22', peripheral: GPIO, signal: 'PIO0, 15', pin_signal: PIO0_15/FC6_CTS_SDA_SSEL0/UTICK_CAP2/CT_INP16/SCT0_OUT2/SD0_WR_PRT/SECURE_GPIO0_15/ADC0_2} - {pin_num: '27', peripheral: GPIO, signal: 'PIO0, 27', pin_signal: PIO0_27/FC2_TXD_SCL_MISO_WS/CTIMER3_MAT2/SCT0_OUT6/FC7_RXD_SDA_MOSI_DATA/PLU_OUT0/SECURE_GPIO0_27} * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** */ /* clang-format on */ /* FUNCTION ************************************************************************************************************ * * Function Name : BOARD_InitPins * Description : Configures pin routing and optionally pin electrical features. * * END ****************************************************************************************************************/ /* Function assigned for the Cortex-M33 (Core #0) */ void BOARD_InitPins(void) { /* Enables the clock for the I/O controller.: Enable Clock. */ CLOCK_EnableClock(kCLOCK_Iocon); if (Chip_GetVersion()==1) { IOCON->PIO[0][15] = ((IOCON->PIO[0][15] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT015 (pin 22) is configured as PIO0_15. */ | IOCON_PIO_FUNC(PIO0_15_FUNC_ALT0) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO0_15_DIGIMODE_DIGITAL)); } else { IOCON->PIO[0][15] = ((IOCON->PIO[0][15] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT015 (pin 22) is configured as PIO0_15. */ | IOCON_PIO_FUNC(PIO0_15_FUNC_ALT0) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO0_15_DIGIMODE_DIGITAL)); } IOCON->PIO[0][16] = ((IOCON->PIO[0][16] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT016 (pin 14) is configured as CLKOUT. */ | IOCON_PIO_FUNC(PIO0_16_FUNC_ALT2) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO0_16_DIGIMODE_DIGITAL)); IOCON->PIO[0][26] = ((IOCON->PIO[0][26] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT026 (pin 60) is configured as HS_SPI_MOSI. */ | IOCON_PIO_FUNC(0x09u) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO0_26_DIGIMODE_DIGITAL)); IOCON->PIO[0][27] = ((IOCON->PIO[0][27] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT027 (pin 27) is configured as PIO0_27. */ | IOCON_PIO_FUNC(PIO0_27_FUNC_ALT0) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO0_27_DIGIMODE_DIGITAL)); IOCON->PIO[1][1] = ((IOCON->PIO[1][1] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT11 (pin 59) is configured as HS_SPI_SSEL1. */ | IOCON_PIO_FUNC(PIO1_1_FUNC_ALT5) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO1_1_DIGIMODE_DIGITAL)); IOCON->PIO[1][2] = ((IOCON->PIO[1][2] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT12 (pin 61) is configured as HS_SPI_SCK. */ | IOCON_PIO_FUNC(PIO1_2_FUNC_ALT6) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO1_2_DIGIMODE_DIGITAL)); IOCON->PIO[1][24] = ((IOCON->PIO[1][24] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT124 (pin 3) is configured as PIO1_24. */ | IOCON_PIO_FUNC(PIO1_24_FUNC_ALT0) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO1_24_DIGIMODE_DIGITAL)); IOCON->PIO[1][3] = ((IOCON->PIO[1][3] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT13 (pin 62) is configured as HS_SPI_MISO. */ | IOCON_PIO_FUNC(PIO1_3_FUNC_ALT6) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO1_3_DIGIMODE_DIGITAL)); IOCON->PIO[1][5] = ((IOCON->PIO[1][5] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT15 (pin 31) is configured as CTIMER2_MAT0. */ | IOCON_PIO_FUNC(PIO1_5_FUNC_ALT3) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO1_5_DIGIMODE_DIGITAL)); IOCON->PIO[1][8] = ((IOCON->PIO[1][8] & /* Mask bits to zero which are setting */ (~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK))) /* Selects pin function. * : PORT18 (pin 24) is configured as PIO1_8. */ | IOCON_PIO_FUNC(PIO1_8_FUNC_ALT0) /* Select Digital mode. * : Enable Digital mode. * Digital input is enabled. */ | IOCON_PIO_DIGIMODE(PIO1_8_DIGIMODE_DIGITAL)); } /*********************************************************************************************************************** * EOF **********************************************************************************************************************/