diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template')
8 files changed, 516 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/board.c b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/board.c new file mode 100644 index 000000000..64fddff63 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/board.c | |||
@@ -0,0 +1,40 @@ | |||
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 | /******************************************************************************* | ||
16 | * Variables | ||
17 | ******************************************************************************/ | ||
18 | |||
19 | /* Clock rate on the CLKIN pin */ | ||
20 | const uint32_t ExtClockIn = BOARD_EXTCLKINRATE; | ||
21 | |||
22 | /******************************************************************************* | ||
23 | * Code | ||
24 | ******************************************************************************/ | ||
25 | /* Initialize debug console. */ | ||
26 | status_t BOARD_InitDebugConsole(void) | ||
27 | { | ||
28 | #if ((SDK_DEBUGCONSOLE == DEBUGCONSOLE_REDIRECT_TO_SDK) || defined(SDK_DEBUGCONSOLE_UART)) | ||
29 | status_t result; | ||
30 | /* attach 12 MHz clock to FLEXCOMM0 (debug console) */ | ||
31 | CLOCK_AttachClk(kFRO12M_to_FLEXCOMM0); | ||
32 | RESET_PeripheralReset(BOARD_DEBUG_UART_RST); | ||
33 | result = DbgConsole_Init(BOARD_DEBUG_UART_BASEADDR, BOARD_DEBUG_UART_BAUDRATE, DEBUG_CONSOLE_DEVICE_TYPE_FLEXCOMM, | ||
34 | BOARD_DEBUG_UART_CLK_FREQ); | ||
35 | assert(kStatus_Success == result); | ||
36 | return result; | ||
37 | #else | ||
38 | return kStatus_Success; | ||
39 | #endif | ||
40 | } | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/board.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/board.h new file mode 100644 index 000000000..d55131207 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/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 "LPCXPRESSO54608" | ||
21 | |||
22 | #define BOARD_EXTCLKINRATE (0) | ||
23 | |||
24 | /*! @brief The UART to use for debug messages. */ | ||
25 | /* TODO: rename UART to USART */ | ||
26 | #define BOARD_DEBUG_UART_TYPE DEBUG_CONSOLE_DEVICE_TYPE_FLEXCOMM | ||
27 | #define BOARD_DEBUG_UART_BASEADDR (uint32_t) USART0 | ||
28 | #define BOARD_DEBUG_UART_INSTANCE 0U | ||
29 | #define BOARD_DEBUG_UART_CLK_FREQ CLOCK_GetFreq(kCLOCK_Flexcomm0) | ||
30 | #define BOARD_DEBUG_UART_CLK_ATTACH kFRO12M_to_FLEXCOMM0 | ||
31 | #define BOARD_DEBUG_UART_RST kFC0_RST_SHIFT_RSTn | ||
32 | #define BOARD_DEBUG_UART_CLKSRC kCLOCK_Flexcomm0 | ||
33 | #define BOARD_UART_IRQ_HANDLER FLEXCOMM0_IRQHandler | ||
34 | #define BOARD_UART_IRQ FLEXCOMM0_IRQn | ||
35 | /* TODO: obsolete */ | ||
36 | #define BOARD_DEBUG_SPI_CLK_FREQ 12000000 | ||
37 | |||
38 | #ifndef BOARD_DEBUG_UART_BAUDRATE | ||
39 | #define BOARD_DEBUG_UART_BAUDRATE 115200 | ||
40 | #endif /* BOARD_DEBUG_UART_BAUDRATE */ | ||
41 | |||
42 | #ifndef BOARD_LED_RED_GPIO | ||
43 | #define BOARD_LED_RED_GPIO GPIO | ||
44 | #endif | ||
45 | #define BOARD_LED_RED_GPIO_PORT 3U | ||
46 | #ifndef BOARD_LED_RED_GPIO_PIN | ||
47 | #define BOARD_LED_RED_GPIO_PIN 14U | ||
48 | #endif | ||
49 | #ifndef BOARD_LED_GREEN_GPIO | ||
50 | #define BOARD_LED_GREEN_GPIO GPIO | ||
51 | #endif | ||
52 | #define BOARD_LED_GREEN_GPIO_PORT 2U | ||
53 | #ifndef BOARD_LED_GREEN_GPIO_PIN | ||
54 | #define BOARD_LED_GREEN_GPIO_PIN 2U | ||
55 | #endif | ||
56 | #ifndef BOARD_LED_BLUE_GPIO | ||
57 | #define BOARD_LED_BLUE_GPIO GPIO | ||
58 | #endif | ||
59 | #define BOARD_LED_BLUE_GPIO_PORT 3U | ||
60 | #ifndef BOARD_LED_BLUE_GPIO_PIN | ||
61 | #define BOARD_LED_BLUE_GPIO_PIN 3U | ||
62 | #endif | ||
63 | |||
64 | /* Board led color mapping */ | ||
65 | #define LOGIC_LED_ON 0U | ||
66 | #define LOGIC_LED_OFF 1U | ||
67 | |||
68 | #define LED_RED_INIT(output) \ | ||
69 | GPIO_PinInit(BOARD_LED_RED_GPIO, BOARD_LED_RED_GPIO_PORT, BOARD_LED_RED_GPIO_PIN, \ | ||
70 | &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED_RED */ | ||
71 | #define LED_RED_ON() \ | ||
72 | GPIO_PortClear(BOARD_LED_RED_GPIO, BOARD_LED_RED_GPIO_PORT, \ | ||
73 | 1U << BOARD_LED_RED_GPIO_PIN) /*!< Turn on target LED_RED */ | ||
74 | #define LED_RED_OFF() \ | ||
75 | GPIO_PortSet(BOARD_LED_RED_GPIO, BOARD_LED_RED_GPIO_PORT, \ | ||
76 | 1U << BOARD_LED_RED_GPIO_PIN) /*!< Turn off target LED_RED */ | ||
77 | #define LED_RED_TOGGLE() \ | ||
78 | GPIO_PortToggle(BOARD_LED_RED_GPIO, BOARD_LED_RED_GPIO_PORT, \ | ||
79 | 1U << BOARD_LED_RED_GPIO_PIN) /*!< Toggle on target LED_RED */ | ||
80 | |||
81 | #define LED_GREEN_INIT(output) \ | ||
82 | GPIO_PinInit(BOARD_LED_GREEN_GPIO, BOARD_LED_GREEN_GPIO_PORT, BOARD_LED_GREEN_GPIO_PIN, \ | ||
83 | &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED_GREEN */ | ||
84 | #define LED_GREEN_ON() \ | ||
85 | GPIO_PortClear(BOARD_LED_GREEN_GPIO, BOARD_LED_GREEN_GPIO_PORT, \ | ||
86 | 1U << BOARD_LED_GREEN_GPIO_PIN) /*!< Turn on target LED_GREEN */ | ||
87 | #define LED_GREEN_OFF() \ | ||
88 | GPIO_PortSet(BOARD_LED_GREEN_GPIO, BOARD_LED_GREEN_GPIO_PORT, \ | ||
89 | 1U << BOARD_LED_GREEN_GPIO_PIN) /*!< Turn off target LED_GREEN */ | ||
90 | #define LED_GREEN_TOGGLE() \ | ||
91 | GPIO_PortToggle(BOARD_LED_GREEN_GPIO, BOARD_LED_GREEN_GPIO_PORT, \ | ||
92 | 1U << BOARD_LED_GREEN_GPIO_PIN) /*!< Toggle on target LED_GREEN */ | ||
93 | |||
94 | #define LED_BLUE_INIT(output) \ | ||
95 | GPIO_PinInit(BOARD_LED_BLUE_GPIO, BOARD_LED_BLUE_GPIO_PORT, BOARD_LED_BLUE_GPIO_PIN, \ | ||
96 | &(gpio_pin_config_t){kGPIO_DigitalOutput, (output)}) /*!< Enable target LED_BLUE */ | ||
97 | #define LED_BLUE_ON() \ | ||
98 | GPIO_PortClear(BOARD_LED_BLUE_GPIO, BOARD_LED_BLUE_GPIO_PORT, \ | ||
99 | 1U << BOARD_LED_BLUE_GPIO_PIN) /*!< Turn on target LED_BLUE */ | ||
100 | #define LED_BLUE_OFF() \ | ||
101 | GPIO_PortSet(BOARD_LED_BLUE_GPIO, BOARD_LED_BLUE_GPIO_PORT, \ | ||
102 | 1U << BOARD_LED_BLUE_GPIO_PIN) /*!< Turn off target LED_BLUE */ | ||
103 | #define LED_BLUE_TOGGLE() \ | ||
104 | GPIO_PortToggle(BOARD_LED_BLUE_GPIO, BOARD_LED_BLUE_GPIO_PORT, \ | ||
105 | 1U << BOARD_LED_BLUE_GPIO_PIN) /*!< Toggle on target LED_BLUE */ | ||
106 | |||
107 | #if defined(__cplusplus) | ||
108 | extern "C" { | ||
109 | #endif /* __cplusplus */ | ||
110 | |||
111 | /******************************************************************************* | ||
112 | * API | ||
113 | ******************************************************************************/ | ||
114 | |||
115 | status_t BOARD_InitDebugConsole(void); | ||
116 | |||
117 | #if defined(__cplusplus) | ||
118 | } | ||
119 | #endif /* __cplusplus */ | ||
120 | |||
121 | #endif /* _BOARD_H_ */ | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/clock_config.c b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/clock_config.c new file mode 100644 index 000000000..f84b0d244 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/clock_config.c | |||
@@ -0,0 +1,89 @@ | |||
1 | /* | ||
2 | * Copyright 2018 NXP. | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | |||
8 | /* | ||
9 | * How to set up clock using clock driver functions: | ||
10 | * | ||
11 | * 1. Setup clock sources. | ||
12 | * | ||
13 | * 2. Setup voltage for the fastest of the clock outputs | ||
14 | * | ||
15 | * 3. Set up wait states of the flash. | ||
16 | * | ||
17 | * 4. Set up all dividers. | ||
18 | * | ||
19 | * 5. Set up all selectors to provide selected clocks. | ||
20 | */ | ||
21 | |||
22 | /* TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
23 | !!GlobalInfo | ||
24 | product: Clocks v5.0 | ||
25 | processor: LPC54016 | ||
26 | mcu_data: ksdk2_0 | ||
27 | processor_version: 0.0.8 | ||
28 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/ | ||
29 | |||
30 | #include "fsl_power.h" | ||
31 | #include "fsl_clock.h" | ||
32 | #include "clock_config.h" | ||
33 | |||
34 | /******************************************************************************* | ||
35 | * Definitions | ||
36 | ******************************************************************************/ | ||
37 | |||
38 | /******************************************************************************* | ||
39 | * Variables | ||
40 | ******************************************************************************/ | ||
41 | /* System clock frequency. */ | ||
42 | extern uint32_t SystemCoreClock; | ||
43 | |||
44 | /******************************************************************************* | ||
45 | ************************ BOARD_InitBootClocks function ************************ | ||
46 | ******************************************************************************/ | ||
47 | void BOARD_InitBootClocks(void) | ||
48 | { | ||
49 | BOARD_BootClockRUN(); | ||
50 | } | ||
51 | |||
52 | /******************************************************************************* | ||
53 | ********************** Configuration BOARD_BootClockRUN *********************** | ||
54 | ******************************************************************************/ | ||
55 | /* TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
56 | !!Configuration | ||
57 | name: BOARD_BootClockRUN | ||
58 | called_from_default_init: true | ||
59 | outputs: | ||
60 | - {id: FRO12M_clock.outFreq, value: 12 MHz} | ||
61 | - {id: FROHF_clock.outFreq, value: 48 MHz} | ||
62 | - {id: MAIN_clock.outFreq, value: 12 MHz} | ||
63 | - {id: System_clock.outFreq, value: 12 MHz} | ||
64 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/ | ||
65 | |||
66 | /******************************************************************************* | ||
67 | * Variables for BOARD_BootClockRUN configuration | ||
68 | ******************************************************************************/ | ||
69 | /******************************************************************************* | ||
70 | * Code for BOARD_BootClockRUN configuration | ||
71 | ******************************************************************************/ | ||
72 | void BOARD_BootClockRUN(void) | ||
73 | { | ||
74 | /*!< Set up the clock sources */ | ||
75 | /*!< Set up FRO */ | ||
76 | POWER_DisablePD(kPDRUNCFG_PD_FRO_EN); /*!< Ensure FRO is on */ | ||
77 | CLOCK_AttachClk(kFRO12M_to_MAIN_CLK); /*!< Switch to FRO 12MHz first to ensure we can change voltage without accidentally | ||
78 | being below the voltage for current speed */ | ||
79 | POWER_SetVoltageForFreq(12000000U); /*!< Set voltage for the one of the fastest clock outputs: System clock output */ | ||
80 | |||
81 | /*!< Set up dividers */ | ||
82 | CLOCK_SetClkDiv(kCLOCK_DivAhbClk, 1U, false); /*!< Reset divider counter and set divider to value 1 */ | ||
83 | |||
84 | /*!< Set up clock selectors - Attach clocks to the peripheries */ | ||
85 | CLOCK_AttachClk(kFRO12M_to_MAIN_CLK); /*!< Switch MAIN_CLK to FRO12M */ | ||
86 | /* Set SystemCoreClock variable. */ | ||
87 | SystemCoreClock = BOARD_BOOTCLOCKRUN_CORE_CLOCK; | ||
88 | } | ||
89 | |||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/clock_config.h new file mode 100644 index 000000000..363742ab0 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/clock_config.h | |||
@@ -0,0 +1,68 @@ | |||
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) | ||
29 | extern "C" { | ||
30 | #endif /* __cplusplus*/ | ||
31 | |||
32 | /*! | ||
33 | * @brief This function executes default configuration of clocks. | ||
34 | * | ||
35 | */ | ||
36 | void 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 | * API for BOARD_BootClockRUN configuration | ||
52 | ******************************************************************************/ | ||
53 | #if defined(__cplusplus) | ||
54 | extern "C" { | ||
55 | #endif /* __cplusplus*/ | ||
56 | |||
57 | /*! | ||
58 | * @brief This function executes configuration of clocks. | ||
59 | * | ||
60 | */ | ||
61 | void BOARD_BootClockRUN(void); | ||
62 | |||
63 | #if defined(__cplusplus) | ||
64 | } | ||
65 | #endif /* __cplusplus*/ | ||
66 | |||
67 | #endif /* _CLOCK_CONFIG_H_ */ | ||
68 | |||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/peripherals.c b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/peripherals.c new file mode 100644 index 000000000..08b63805e --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/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 | ||
16 | product: Peripherals v6.0 | ||
17 | processor: LPC54016 | ||
18 | mcu_data: ksdk2_0 | ||
19 | processor_version: 0.0.15 | ||
20 | functionalGroups: | ||
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 ************************************* | ||
26 | component: | ||
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 | **********************************************************************************************************************/ | ||
41 | void BOARD_InitPeripherals(void) | ||
42 | { | ||
43 | } | ||
44 | |||
45 | /*********************************************************************************************************************** | ||
46 | * BOARD_InitBootPeripherals function | ||
47 | **********************************************************************************************************************/ | ||
48 | void BOARD_InitBootPeripherals(void) | ||
49 | { | ||
50 | BOARD_InitPeripherals(); | ||
51 | } | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/peripherals.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/peripherals.h new file mode 100644 index 000000000..150360637 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/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) | ||
17 | extern "C" { | ||
18 | #endif /* __cplusplus */ | ||
19 | |||
20 | /*********************************************************************************************************************** | ||
21 | * Initialization functions | ||
22 | **********************************************************************************************************************/ | ||
23 | void BOARD_InitPeripherals(void); | ||
24 | |||
25 | /*********************************************************************************************************************** | ||
26 | * BOARD_InitBootPeripherals function | ||
27 | **********************************************************************************************************************/ | ||
28 | void 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/LPC54016/project_template/pin_mux.c b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/pin_mux.c new file mode 100644 index 000000000..0bb880617 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/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 | ||
17 | product: Pins v6.0 | ||
18 | processor: LPC54016 | ||
19 | mcu_data: ksdk2_0 | ||
20 | processor_version: 0.0.15 | ||
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 ****************************************************************************************************************/ | ||
34 | void BOARD_InitBootPins(void) | ||
35 | { | ||
36 | BOARD_InitPins(); | ||
37 | } | ||
38 | |||
39 | /* clang-format off */ | ||
40 | /* | ||
41 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
42 | BOARD_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-M4F */ | ||
56 | void BOARD_InitPins(void) | ||
57 | { | ||
58 | } | ||
59 | /*********************************************************************************************************************** | ||
60 | * EOF | ||
61 | **********************************************************************************************************************/ | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/pin_mux.h b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/project_template/pin_mux.h new file mode 100644 index 000000000..9b6492aad --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC54016/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) | ||
26 | extern "C" { | ||
27 | #endif | ||
28 | |||
29 | /*! | ||
30 | * @brief Calls initialization functions. | ||
31 | * | ||
32 | */ | ||
33 | void BOARD_InitBootPins(void); | ||
34 | |||
35 | /*! | ||
36 | * @brief Configures pin routing and optionally pin electrical features. | ||
37 | * | ||
38 | */ | ||
39 | void BOARD_InitPins(void); /* Function assigned for the Cortex-M4F */ | ||
40 | |||
41 | #if defined(__cplusplus) | ||
42 | } | ||
43 | #endif | ||
44 | |||
45 | /*! | ||
46 | * @} | ||
47 | */ | ||
48 | #endif /* _PIN_MUX_H_ */ | ||
49 | |||
50 | /*********************************************************************************************************************** | ||
51 | * EOF | ||
52 | **********************************************************************************************************************/ | ||