2023-03-09 14:51:36 +00:00
|
|
|
/***********************************************************************************************************************
|
|
|
|
* 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
|
2023-03-10 01:43:53 +00:00
|
|
|
product: Pins v13.0
|
2023-03-09 14:51:36 +00:00
|
|
|
processor: LPC55S69
|
|
|
|
package_id: LPC55S69JBD100
|
|
|
|
mcu_data: ksdk2_0
|
2023-03-10 01:43:53 +00:00
|
|
|
processor_version: 13.0.1
|
2023-03-09 14:51:36 +00:00
|
|
|
board: LPCXpresso55S69
|
2023-03-10 01:43:53 +00:00
|
|
|
pin_labels:
|
|
|
|
- {pin_num: '31', pin_signal: PIO1_5/FC0_RXD_SDA_MOSI_DATA/SD0_D2/CTIMER2_MAT0/SCT_GPI0, label: 'P17[17]/P24[1]/PIO1_5_GPIO_ARD', identifier: F_WP}
|
|
|
|
- {pin_num: '24', pin_signal: PIO1_8/FC0_CTS_SDA_SSEL0/SD0_CLK/SCT0_OUT1/FC4_SSEL2/ADC0_4, label: 'P17[19]/PIO1_8_GPIO_ARD', identifier: F_HOLD}
|
2023-03-09 14:51:36 +00:00
|
|
|
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
|
|
|
|
*/
|
|
|
|
/* clang-format on */
|
|
|
|
|
|
|
|
#include "fsl_common.h"
|
|
|
|
#include "fsl_gpio.h"
|
|
|
|
#include "pin_mux.h"
|
|
|
|
|
|
|
|
/* FUNCTION ************************************************************************************************************
|
|
|
|
*
|
|
|
|
* Function Name : BOARD_InitBootPins
|
|
|
|
* Description : Calls initialization functions.
|
|
|
|
*
|
|
|
|
* END ****************************************************************************************************************/
|
|
|
|
void BOARD_InitBootPins(void)
|
|
|
|
{
|
2023-03-10 01:43:53 +00:00
|
|
|
BOARD_InitPins_Core1();
|
|
|
|
BOARD_InitSPIFPins();
|
2023-03-09 14:51:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* clang-format off */
|
|
|
|
/*
|
|
|
|
* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
|
2023-03-10 01:43:53 +00:00
|
|
|
BOARD_InitPins_Core1:
|
|
|
|
- options: {callFromInitBoot: 'true', coreID: cm33_core1, enableClock: 'true'}
|
|
|
|
- pin_list: []
|
2023-03-09 14:51:36 +00:00
|
|
|
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
|
|
|
|
*/
|
|
|
|
/* clang-format on */
|
|
|
|
|
|
|
|
/* FUNCTION ************************************************************************************************************
|
|
|
|
*
|
2023-03-10 01:43:53 +00:00
|
|
|
* Function Name : BOARD_InitPins_Core1
|
2023-03-09 14:51:36 +00:00
|
|
|
* Description : Configures pin routing and optionally pin electrical features.
|
|
|
|
*
|
|
|
|
* END ****************************************************************************************************************/
|
2023-03-10 01:43:53 +00:00
|
|
|
/* Function assigned for the Cortex-M33 (Core #1) */
|
|
|
|
void BOARD_InitPins_Core1(void)
|
2023-03-09 14:51:36 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/* clang-format off */
|
|
|
|
/*
|
|
|
|
* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
|
2023-03-10 01:43:53 +00:00
|
|
|
BOARD_InitSPIFPins:
|
|
|
|
- options: {callFromInitBoot: 'true', coreID: cm33_core1, enableClock: 'true'}
|
2023-03-09 14:51:36 +00:00
|
|
|
- pin_list:
|
2023-03-10 01:43:53 +00:00
|
|
|
- {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: '62', peripheral: FLEXCOMM8, signal: HS_SPI_MISO, pin_signal: PIO1_3/SCT0_OUT4/HS_SPI_MISO/USB0_PORTPWRN/PLU_OUT6}
|
|
|
|
- {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: '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: '31', peripheral: GPIO, signal: 'PIO1, 5', pin_signal: PIO1_5/FC0_RXD_SDA_MOSI_DATA/SD0_D2/CTIMER2_MAT0/SCT_GPI0, direction: OUTPUT, gpio_init_state: 'true'}
|
|
|
|
- {pin_num: '24', peripheral: GPIO, signal: 'PIO1, 8', pin_signal: PIO1_8/FC0_CTS_SDA_SSEL0/SD0_CLK/SCT0_OUT1/FC4_SSEL2/ADC0_4, direction: OUTPUT, gpio_init_state: 'true'}
|
2023-03-09 14:51:36 +00:00
|
|
|
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
|
|
|
|
*/
|
|
|
|
/* clang-format on */
|
|
|
|
|
|
|
|
/* FUNCTION ************************************************************************************************************
|
|
|
|
*
|
2023-03-10 01:43:53 +00:00
|
|
|
* Function Name : BOARD_InitSPIFPins
|
2023-03-09 14:51:36 +00:00
|
|
|
* Description : Configures pin routing and optionally pin electrical features.
|
|
|
|
*
|
|
|
|
* END ****************************************************************************************************************/
|
2023-03-10 01:43:53 +00:00
|
|
|
/* Function assigned for the Cortex-M33 (Core #1) */
|
|
|
|
void BOARD_InitSPIFPins(void)
|
2023-03-09 14:51:36 +00:00
|
|
|
{
|
|
|
|
/* Enables the clock for the I/O controller.: Enable Clock. */
|
|
|
|
CLOCK_EnableClock(kCLOCK_Iocon);
|
|
|
|
|
|
|
|
/* Enables the clock for the GPIO1 module */
|
|
|
|
CLOCK_EnableClock(kCLOCK_Gpio1);
|
|
|
|
|
2023-03-10 01:43:53 +00:00
|
|
|
gpio_pin_config_t F_WP_config = {
|
2023-03-09 14:51:36 +00:00
|
|
|
.pinDirection = kGPIO_DigitalOutput,
|
|
|
|
.outputLogic = 1U
|
|
|
|
};
|
2023-03-10 01:43:53 +00:00
|
|
|
/* Initialize GPIO functionality on pin PIO1_5 (pin 31) */
|
|
|
|
GPIO_PinInit(BOARD_INITSPIFPINS_F_WP_GPIO, BOARD_INITSPIFPINS_F_WP_PORT, BOARD_INITSPIFPINS_F_WP_PIN, &F_WP_config);
|
2023-03-09 14:51:36 +00:00
|
|
|
|
2023-03-10 01:43:53 +00:00
|
|
|
gpio_pin_config_t F_HOLD_config = {
|
2023-03-09 14:51:36 +00:00
|
|
|
.pinDirection = kGPIO_DigitalOutput,
|
|
|
|
.outputLogic = 1U
|
|
|
|
};
|
2023-03-10 01:43:53 +00:00
|
|
|
/* Initialize GPIO functionality on pin PIO1_8 (pin 24) */
|
|
|
|
GPIO_PinInit(BOARD_INITSPIFPINS_F_HOLD_GPIO, BOARD_INITSPIFPINS_F_HOLD_PORT, BOARD_INITSPIFPINS_F_HOLD_PIN, &F_HOLD_config);
|
2023-03-09 14:51:36 +00:00
|
|
|
|
2023-03-10 01:43:53 +00:00
|
|
|
IOCON->PIO[0][26] = ((IOCON->PIO[0][26] &
|
|
|
|
/* Mask bits to zero which are setting */
|
|
|
|
(~(IOCON_PIO_FUNC_MASK | IOCON_PIO_DIGIMODE_MASK)))
|
2023-03-09 14:51:36 +00:00
|
|
|
|
2023-03-10 01:43:53 +00:00
|
|
|
/* Selects pin function.
|
|
|
|
* : PORT026 (pin 60) is configured as HS_SPI_MOSI. */
|
|
|
|
| IOCON_PIO_FUNC(0x09u)
|
2023-03-09 14:51:36 +00:00
|
|
|
|
2023-03-10 01:43:53 +00:00
|
|
|
/* Select Digital mode.
|
|
|
|
* : Enable Digital mode.
|
|
|
|
* Digital input is enabled. */
|
|
|
|
| IOCON_PIO_DIGIMODE(PIO0_26_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][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 PIO1_5. */
|
|
|
|
| IOCON_PIO_FUNC(PIO1_5_FUNC_ALT0)
|
|
|
|
|
|
|
|
/* 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));
|
2023-03-09 14:51:36 +00:00
|
|
|
}
|
|
|
|
/***********************************************************************************************************************
|
|
|
|
* EOF
|
|
|
|
**********************************************************************************************************************/
|