aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/board.c86
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/board.h121
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/clock_config.c98
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/clock_config.h69
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/peripherals.c51
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/peripherals.h34
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/pin_mux.c61
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/pin_mux.h52
8 files changed, 572 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/board.c b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/board.c
new file mode 100644
index 000000000..32132333d
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/board.c
@@ -0,0 +1,86 @@
1/*
2 * Copyright (c) 2016, Freescale Semiconductor, Inc.
3 * Copyright 2016-2017 NXP
4 * All rights reserved.
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#include <stdint.h>
10#include "fsl_common.h"
11#include "clock_config.h"
12#include "board.h"
13#include "fsl_debug_console.h"
14
15#ifdef SDK_PRIMARY_CORE
16/* Address of RAM, where the image for core1 should be copied */
17#define CORE1_BOOT_ADDRESS (void *)0x20010000
18
19#if defined(__CC_ARM) || defined(__ARMCC_VERSION)
20extern uint32_t Image$$CORE1_REGION$$Base;
21extern uint32_t Image$$CORE1_REGION$$Length;
22#define CORE1_IMAGE_START &Image$$CORE1_REGION$$Base
23#elif defined(__ICCARM__)
24extern unsigned char core1_image_start[];
25#define CORE1_IMAGE_START core1_image_start
26#endif
27#endif
28
29/*******************************************************************************
30 * Variables
31 ******************************************************************************/
32
33/* Clock rate on the CLKIN pin */
34const uint32_t ExtClockIn = BOARD_EXTCLKINRATE;
35
36/*******************************************************************************
37 * Code
38 ******************************************************************************/
39/* Initialize debug console. */
40status_t BOARD_InitDebugConsole(void)
41{
42#if ((SDK_DEBUGCONSOLE == DEBUGCONSOLE_REDIRECT_TO_SDK) || defined(SDK_DEBUGCONSOLE_UART))
43 status_t result;
44
45 /* attach 12 MHz clock to FLEXCOMM0 (debug console) */
46 CLOCK_AttachClk(kFRO12M_to_FLEXCOMM0);
47
48 RESET_PeripheralReset(BOARD_DEBUG_UART_RST);
49 result = DbgConsole_Init(BOARD_DEBUG_UART_BASEADDR, BOARD_DEBUG_UART_BAUDRATE, DEBUG_CONSOLE_DEVICE_TYPE_FLEXCOMM,
50 BOARD_DEBUG_UART_CLK_FREQ);
51 assert(kStatus_Success == result);
52 return result;
53#else
54 return kStatus_Success;
55#endif
56}
57
58#ifdef SDK_PRIMARY_CORE
59/* Start the secondary core. */
60void BOARD_StartSecondaryCore(void)
61{
62/* Calculate size of the secondary core image - not required on MCUXpresso. MCUXpresso copies the image to RAM during
63 * startup
64 * automatically */
65#if (defined(__CC_ARM) || defined(__ARMCC_VERSION) || defined(__ICCARM__))
66#if defined(__CC_ARM) || defined(__ARMCC_VERSION)
67 uint32_t core1_image_size = (uint32_t)&Image$$CORE1_REGION$$Length;
68#elif defined(__ICCARM__)
69#pragma section = "__sec_core"
70 uint32_t core1_image_size = (uint32_t)__section_end("__sec_core") - (uint32_t)&core1_image_start;
71#endif
72
73 /* Copy core1 application from FLASH to RAM. Primary core code is executed from FLASH, Secondary from RAM
74 * for maximal effectivity.*/
75 memcpy(CORE1_BOOT_ADDRESS, (void *)CORE1_IMAGE_START, core1_image_size);
76#endif
77 /* Boot source for Core 1 from RAM */
78 SYSCON->CPBOOT = SYSCON_CPBOOT_BOOTADDR(*(uint32_t *)((uint8_t *)CORE1_BOOT_ADDRESS + 0x4));
79 SYSCON->CPSTACK = SYSCON_CPSTACK_STACKADDR(*(uint32_t *)CORE1_BOOT_ADDRESS);
80
81 uint32_t temp = SYSCON->CPUCTRL;
82 temp |= 0xc0c48000U;
83 SYSCON->CPUCTRL = temp | SYSCON_CPUCTRL_CM0RSTEN_MASK | SYSCON_CPUCTRL_CM0CLKEN_MASK;
84 SYSCON->CPUCTRL = (temp | SYSCON_CPUCTRL_CM0CLKEN_MASK) & (~SYSCON_CPUCTRL_CM0RSTEN_MASK);
85}
86#endif
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/board.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/board.h
new file mode 100644
index 000000000..6b80a2ba0
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/board.h
@@ -0,0 +1,121 @@
1/*
2 * Copyright (c) 2016, Freescale Semiconductor, Inc.
3 * Copyright 2016-2017 NXP
4 * All rights reserved.
5 *
6 * SPDX-License-Identifier: BSD-3-Clause
7 */
8
9#ifndef _BOARD_H_
10#define _BOARD_H_
11
12#include "clock_config.h"
13#include "fsl_common.h"
14#include "fsl_gpio.h"
15
16/*******************************************************************************
17 * Definitions
18 ******************************************************************************/
19/*! @brief The board name */
20#define BOARD_NAME "LPCXPRESSO54114"
21
22#define BOARD_EXTCLKINRATE (0)
23
24/*! @brief The UART to use for debug messages. */
25#define BOARD_DEBUG_UART_TYPE DEBUG_CONSOLE_DEVICE_TYPE_FLEXCOMM
26#define BOARD_DEBUG_UART_BASEADDR (uint32_t) USART0
27#define BOARD_DEBUG_UART_INSTANCE 0U
28#define BOARD_DEBUG_UART_CLK_FREQ CLOCK_GetFlexCommClkFreq(0)
29#define BOARD_DEBUG_UART_CLK_ATTACH kFRO12M_to_FLEXCOMM0
30#define BOARD_DEBUG_UART_RST kFC0_RST_SHIFT_RSTn
31
32#define BOARD_DEBUG_SPI_CLK_FREQ 12000000
33
34#ifndef BOARD_DEBUG_UART_BAUDRATE
35#define BOARD_DEBUG_UART_BAUDRATE 115200
36#endif /* BOARD_DEBUG_UART_BAUDRATE */
37
38#ifndef BOARD_LED_RED_GPIO
39#define BOARD_LED_RED_GPIO GPIO
40#endif
41#define BOARD_LED_RED_GPIO_PORT 0U
42#ifndef BOARD_LED_RED_GPIO_PIN
43#define BOARD_LED_RED_GPIO_PIN 29U
44#endif
45#ifndef BOARD_LED_GREEN_GPIO
46#define BOARD_LED_GREEN_GPIO GPIO
47#endif
48#define BOARD_LED_GREEN_GPIO_PORT 1U
49#ifndef BOARD_LED_GREEN_GPIO_PIN
50#define BOARD_LED_GREEN_GPIO_PIN 10U
51#endif
52#ifndef BOARD_LED_BLUE_GPIO
53#define BOARD_LED_BLUE_GPIO GPIO
54#endif
55#define BOARD_LED_BLUE_GPIO_PORT 1U
56#ifndef BOARD_LED_BLUE_GPIO_PIN
57#define BOARD_LED_BLUE_GPIO_PIN 9U
58#endif
59
60/* Board led color mapping */
61#define LOGIC_LED_ON 0U
62#define LOGIC_LED_OFF 1U
63
64#define LED_RED_INIT(output) \
65 GPIO_PinInit(BOARD_LED_RED_GPIO, BOARD_LED_RED_GPIO_PORT, BOARD_LED_RED_GPIO_PIN, \
66 &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED_RED */
67#define LED_RED_ON() \
68 GPIO_PortClear(BOARD_LED_RED_GPIO, BOARD_LED_RED_GPIO_PORT, \
69 1U << BOARD_LED_RED_GPIO_PIN) /*!< Turn on target LED_RED */
70#define LED_RED_OFF() \
71 GPIO_PortSet(BOARD_LED_RED_GPIO, BOARD_LED_RED_GPIO_PORT, \
72 1U << BOARD_LED_RED_GPIO_PIN) /*!< Turn off target LED_RED */
73#define LED_RED_TOGGLE() \
74 GPIO_PortToggle(BOARD_LED_RED_GPIO, BOARD_LED_RED_GPIO_PORT, \
75 1U << BOARD_LED_RED_GPIO_PIN) /*!< Toggle on target LED_RED */
76
77#define LED_GREEN_INIT(output) \
78 GPIO_PinInit(BOARD_LED_GREEN_GPIO, BOARD_LED_GREEN_GPIO_PORT, BOARD_LED_GREEN_GPIO_PIN, \
79 &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED_GREEN */
80#define LED_GREEN_ON() \
81 GPIO_PortClear(BOARD_LED_GREEN_GPIO, BOARD_LED_GREEN_GPIO_PORT, \
82 1U << BOARD_LED_GREEN_GPIO_PIN) /*!< Turn on target LED_GREEN */
83#define LED_GREEN_OFF() \
84 GPIO_PortSet(BOARD_LED_GREEN_GPIO, BOARD_LED_GREEN_GPIO_PORT, \
85 1U << BOARD_LED_GREEN_GPIO_PIN) /*!< Turn off target LED_GREEN */
86#define LED_GREEN_TOGGLE() \
87 GPIO_PortToggle(BOARD_LED_GREEN_GPIO, BOARD_LED_GREEN_GPIO_PORT, \
88 1U << BOARD_LED_GREEN_GPIO_PIN) /*!< Toggle on target LED_GREEN */
89
90#define LED_BLUE_INIT(output) \
91 GPIO_PinInit(BOARD_LED_BLUE_GPIO, BOARD_LED_BLUE_GPIO_PORT, BOARD_LED_BLUE_GPIO_PIN, \
92 &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED_BLUE */
93#define LED_BLUE_ON() \
94 GPIO_PortClear(BOARD_LED_BLUE_GPIO, BOARD_LED_BLUE_GPIO_PORT, \
95 1U << BOARD_LED_BLUE_GPIO_PIN) /*!< Turn on target LED_BLUE */
96#define LED_BLUE_OFF() \
97 GPIO_PortSet(BOARD_LED_BLUE_GPIO, BOARD_LED_BLUE_GPIO_PORT, \
98 1U << BOARD_LED_BLUE_GPIO_PIN) /*!< Turn off target LED_BLUE */
99#define LED_BLUE_TOGGLE() \
100 GPIO_PortToggle(BOARD_LED_BLUE_GPIO, BOARD_LED_BLUE_GPIO_PORT, \
101 1U << BOARD_LED_BLUE_GPIO_PIN) /*!< Toggle on target LED_BLUE */
102
103#if defined(__cplusplus)
104extern "C" {
105#endif /* __cplusplus */
106
107/*******************************************************************************
108 * API
109 ******************************************************************************/
110
111status_t BOARD_InitDebugConsole(void);
112
113#ifdef SDK_PRIMARY_CORE
114void BOARD_StartSecondaryCore(void);
115#endif
116
117#if defined(__cplusplus)
118}
119#endif /* __cplusplus */
120
121#endif /* _BOARD_H_ */
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/clock_config.c b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/clock_config.c
new file mode 100644
index 000000000..8322bdd66
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/clock_config.c
@@ -0,0 +1,98 @@
1/*
2 * Copyright 2018 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 * How to set up clock using clock driver functions:
14 *
15 * 1. Setup clock sources.
16 *
17 * 2. Setup voltage for the fastest of the clock outputs
18 *
19 * 3. Set up wait states of the flash.
20 *
21 * 4. Set up all dividers.
22 *
23 * 5. Set up all selectors to provide selected clocks.
24 */
25
26/* clang-format off */
27/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
28!!GlobalInfo
29product: Clocks v5.0
30processor: LPC54114J256
31mcu_data: ksdk2_0
32processor_version: 0.0.19
33 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
34/* clang-format on */
35
36#include "fsl_power.h"
37#include "fsl_clock.h"
38#include "clock_config.h"
39
40/*******************************************************************************
41 * Definitions
42 ******************************************************************************/
43
44/*******************************************************************************
45 * Variables
46 ******************************************************************************/
47/* System clock frequency. */
48extern uint32_t SystemCoreClock;
49
50/*******************************************************************************
51 ************************ BOARD_InitBootClocks function ************************
52 ******************************************************************************/
53void BOARD_InitBootClocks(void)
54{
55 BOARD_BootClockRUN();
56}
57
58/*******************************************************************************
59 ********************** Configuration BOARD_BootClockRUN ***********************
60 ******************************************************************************/
61/* clang-format off */
62/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
63!!Configuration
64name: BOARD_BootClockRUN
65called_from_default_init: true
66outputs:
67- {id: System_clock.outFreq, value: 12 MHz}
68 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
69/* clang-format on */
70
71/*******************************************************************************
72 * Variables for BOARD_BootClockRUN configuration
73 ******************************************************************************/
74/*******************************************************************************
75 * Code for BOARD_BootClockRUN configuration
76 ******************************************************************************/
77void BOARD_BootClockRUN(void)
78{
79#ifndef SDK_SECONDARY_CORE
80 /*!< Set up the clock sources */
81 /*!< Set up FRO */
82 POWER_DisablePD(kPDRUNCFG_PD_FRO_EN); /*!< Ensure FRO is on */
83 CLOCK_SetupFROClocking(12000000U); /*!< Set up FRO to the 12 MHz, just for sure */
84 CLOCK_AttachClk(kFRO12M_to_MAIN_CLK); /*!< Switch to FRO 12MHz first to ensure we can change voltage without accidentally
85 being below the voltage for current speed */
86 POWER_SetVoltageForFreq(12000000U); /*!< Set voltage for the one of the fastest clock outputs: System clock output */
87 CLOCK_SetFLASHAccessCyclesForFreq(12000000U); /*!< Set FLASH wait states for core */
88
89 /*!< Set up dividers */
90 CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false); /*!< Set AHBCLKDIV divider to value 1 */
91
92 /*!< Set up clock selectors - Attach clocks to the peripheries */
93 CLOCK_AttachClk(kFRO12M_to_MAIN_CLK); /*!< Switch MAIN_CLK to FRO12M */
94 /*< Set SystemCoreClock variable. */
95 SystemCoreClock = BOARD_BOOTCLOCKRUN_CORE_CLOCK;
96#endif
97}
98
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/clock_config.h
new file mode 100644
index 000000000..53392ce97
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/clock_config.h
@@ -0,0 +1,69 @@
1/*
2 * Copyright 2018 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 _CLOCK_CONFIG_H_
14#define _CLOCK_CONFIG_H_
15
16#include "fsl_common.h"
17
18/*******************************************************************************
19 * Definitions
20 ******************************************************************************/
21#define BOARD_XTAL0_CLK_HZ 12000000U /*!< Board xtal0 frequency in Hz */
22#define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32K frequency in Hz */
23
24/*******************************************************************************
25 ************************ BOARD_InitBootClocks function ************************
26 ******************************************************************************/
27
28#if defined(__cplusplus)
29extern "C" {
30#endif /* __cplusplus*/
31
32/*!
33 * @brief This function executes default configuration of clocks.
34 *
35 */
36void BOARD_InitBootClocks(void);
37
38#if defined(__cplusplus)
39}
40#endif /* __cplusplus*/
41
42/*******************************************************************************
43 ********************** Configuration BOARD_BootClockRUN ***********************
44 ******************************************************************************/
45/*******************************************************************************
46 * Definitions for BOARD_BootClockRUN configuration
47 ******************************************************************************/
48#define BOARD_BOOTCLOCKRUN_CORE_CLOCK 12000000U /*!< Core clock frequency: 12000000Hz */
49
50
51/*******************************************************************************
52 * API for BOARD_BootClockRUN configuration
53 ******************************************************************************/
54#if defined(__cplusplus)
55extern "C" {
56#endif /* __cplusplus*/
57
58/*!
59 * @brief This function executes configuration of clocks.
60 *
61 */
62void BOARD_BootClockRUN(void);
63
64#if defined(__cplusplus)
65}
66#endif /* __cplusplus*/
67
68#endif /* _CLOCK_CONFIG_H_ */
69
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/peripherals.c b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/peripherals.c
new file mode 100644
index 000000000..326b80eb8
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/peripherals.c
@@ -0,0 +1,51 @@
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/* clang-format off */
14/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
15!!GlobalInfo
16product: Peripherals v6.0
17processor: LPC54114J256
18mcu_data: ksdk2_0
19processor_version: 0.0.26
20functionalGroups:
21- name: BOARD_InitPeripherals
22 called_from_default_init: true
23 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
24
25/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
26component:
27- type: 'system'
28- type_id: 'system_54b53072540eeeb8f8e9343e71f28176'
29- global_system_definitions: []
30 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
31/* clang-format on */
32
33/***********************************************************************************************************************
34 * Included files
35 **********************************************************************************************************************/
36#include "peripherals.h"
37
38/***********************************************************************************************************************
39 * Initialization functions
40 **********************************************************************************************************************/
41void BOARD_InitPeripherals(void)
42{
43}
44
45/***********************************************************************************************************************
46 * BOARD_InitBootPeripherals function
47 **********************************************************************************************************************/
48void BOARD_InitBootPeripherals(void)
49{
50 BOARD_InitPeripherals();
51}
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/peripherals.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/peripherals.h
new file mode 100644
index 000000000..150360637
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/peripherals.h
@@ -0,0 +1,34 @@
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 _PERIPHERALS_H_
14#define _PERIPHERALS_H_
15
16#if defined(__cplusplus)
17extern "C" {
18#endif /* __cplusplus */
19
20/***********************************************************************************************************************
21 * Initialization functions
22 **********************************************************************************************************************/
23void BOARD_InitPeripherals(void);
24
25/***********************************************************************************************************************
26 * BOARD_InitBootPeripherals function
27 **********************************************************************************************************************/
28void BOARD_InitBootPeripherals(void);
29
30#if defined(__cplusplus)
31}
32#endif
33
34#endif /* _PERIPHERALS_H_ */
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/pin_mux.c b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/pin_mux.c
new file mode 100644
index 000000000..cbf1bfcaf
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/pin_mux.c
@@ -0,0 +1,61 @@
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/* clang-format off */
14/*
15 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
16!!GlobalInfo
17product: Pins v6.0
18processor: LPC54114J256
19mcu_data: ksdk2_0
20processor_version: 0.0.26
21 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
22 */
23/* clang-format on */
24
25#include "fsl_common.h"
26#include "pin_mux.h"
27
28/* FUNCTION ************************************************************************************************************
29 *
30 * Function Name : BOARD_InitBootPins
31 * Description : Calls initialization functions.
32 *
33 * END ****************************************************************************************************************/
34void BOARD_InitBootPins(void)
35{
36 BOARD_InitPins();
37}
38
39/* clang-format off */
40/*
41 * TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
42BOARD_InitPins:
43- options: {callFromInitBoot: 'true', enableClock: 'true'}
44- pin_list: []
45 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS ***********
46 */
47/* clang-format on */
48
49/* FUNCTION ************************************************************************************************************
50 *
51 * Function Name : BOARD_InitPins
52 * Description : Configures pin routing and optionally pin electrical features.
53 *
54 * END ****************************************************************************************************************/
55/* Function assigned for the Cortex-M0P */
56void BOARD_InitPins(void)
57{
58}
59/***********************************************************************************************************************
60 * EOF
61 **********************************************************************************************************************/
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/pin_mux.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/pin_mux.h
new file mode 100644
index 000000000..1d66afef9
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54114/project_template/pin_mux.h
@@ -0,0 +1,52 @@
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 * @addtogroup pin_mux
18 * @{
19 */
20
21/***********************************************************************************************************************
22 * API
23 **********************************************************************************************************************/
24
25#if defined(__cplusplus)
26extern "C" {
27#endif
28
29/*!
30 * @brief Calls initialization functions.
31 *
32 */
33void BOARD_InitBootPins(void);
34
35/*!
36 * @brief Configures pin routing and optionally pin electrical features.
37 *
38 */
39void BOARD_InitPins(void); /* Function assigned for the Cortex-M0P */
40
41#if defined(__cplusplus)
42}
43#endif
44
45/*!
46 * @}
47 */
48#endif /* _PIN_MUX_H_ */
49
50/***********************************************************************************************************************
51 * EOF
52 **********************************************************************************************************************/