diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template')
8 files changed, 533 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/board.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/board.c new file mode 100644 index 000000000..c6bff3bb6 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/board.c | |||
@@ -0,0 +1,24 @@ | |||
1 | /* | ||
2 | * Copyright 2019 NXP. | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | |||
8 | /** | ||
9 | * @file board.c | ||
10 | * @brief Board initialization file. | ||
11 | */ | ||
12 | |||
13 | /* This is an empty template for board specific configuration.*/ | ||
14 | |||
15 | #include <stdint.h> | ||
16 | #include "board.h" | ||
17 | |||
18 | /** | ||
19 | * @brief Set up and initialize all required blocks and functions related to the board hardware. | ||
20 | */ | ||
21 | void BOARD_InitDebugConsole(void) | ||
22 | { | ||
23 | /* The user initialization should be placed here */ | ||
24 | } | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/board.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/board.h new file mode 100644 index 000000000..5dbaf35e2 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/board.h | |||
@@ -0,0 +1,36 @@ | |||
1 | /* | ||
2 | * Copyright 2019 NXP. | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | |||
8 | /** | ||
9 | * @file board.h | ||
10 | * @brief Board initialization header file. | ||
11 | */ | ||
12 | |||
13 | /* This is an empty template for board specific configuration.*/ | ||
14 | |||
15 | #ifndef _BOARD_H_ | ||
16 | #define _BOARD_H_ | ||
17 | |||
18 | /** | ||
19 | * @brief The board name | ||
20 | */ | ||
21 | #define BOARD_NAME "board" | ||
22 | |||
23 | #if defined(__cplusplus) | ||
24 | extern "C" { | ||
25 | #endif /* __cplusplus */ | ||
26 | |||
27 | /** | ||
28 | * @brief Initialize board specific settings. | ||
29 | */ | ||
30 | void BOARD_InitDebugConsole(void); | ||
31 | |||
32 | #if defined(__cplusplus) | ||
33 | } | ||
34 | #endif /* __cplusplus */ | ||
35 | |||
36 | #endif /* _BOARD_H_ */ | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/clock_config.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/clock_config.c new file mode 100644 index 000000000..23552e57c --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/clock_config.c | |||
@@ -0,0 +1,199 @@ | |||
1 | /* | ||
2 | * Copyright 2019 NXP | ||
3 | * | ||
4 | * SPDX-License-Identifier: BSD-3-Clause | ||
5 | */ | ||
6 | |||
7 | /*********************************************************************************************************************** | ||
8 | * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file | ||
9 | * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. | ||
10 | **********************************************************************************************************************/ | ||
11 | /* | ||
12 | * How to set up clock using clock driver functions: | ||
13 | * | ||
14 | * 1. Setup clock sources. | ||
15 | * | ||
16 | * 2. Set up all selectors to provide selected clocks. | ||
17 | * | ||
18 | * 3. Set up all dividers. | ||
19 | */ | ||
20 | |||
21 | /* clang-format off */ | ||
22 | /* TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
23 | !!GlobalInfo | ||
24 | product: Clocks v7.0 | ||
25 | processor: MIMXRT633S | ||
26 | package_id: MIMXRT633SFVKB | ||
27 | mcu_data: ksdk2_0 | ||
28 | processor_version: 0.0.2 | ||
29 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/ | ||
30 | /* clang-format on */ | ||
31 | |||
32 | #include "fsl_power.h" | ||
33 | #include "fsl_clock.h" | ||
34 | #include "clock_config.h" | ||
35 | |||
36 | /******************************************************************************* | ||
37 | * Definitions | ||
38 | ******************************************************************************/ | ||
39 | |||
40 | /******************************************************************************* | ||
41 | * Variables | ||
42 | ******************************************************************************/ | ||
43 | /* System clock frequency. */ | ||
44 | extern uint32_t SystemCoreClock; | ||
45 | |||
46 | /*FUNCTION********************************************************************** | ||
47 | * | ||
48 | * Function Name : BOARD_FlexspiClockSafeConfig | ||
49 | * Description : FLEXSPI clock source safe configuration weak function. | ||
50 | * Called before clock source(Such as PLL, Main clock) configuration. | ||
51 | * Note : Users need override this function to change FLEXSPI clock source to stable source when executing | ||
52 | * code on FLEXSPI memory(XIP). If XIP, the function should runs in RAM and move the FLEXSPI clock | ||
53 | *source to an stable clock to avoid instruction/data fetch issue during clock updating. | ||
54 | *END**************************************************************************/ | ||
55 | __attribute__((weak)) void BOARD_FlexspiClockSafeConfig(void) | ||
56 | { | ||
57 | } | ||
58 | |||
59 | /*FUNCTION********************************************************************** | ||
60 | * | ||
61 | * Function Name : BOARD_SetFlexspiClock | ||
62 | * Description : This function should be overridden if executing code on FLEXSPI memory(XIP). | ||
63 | * To Change FLEXSPI clock, should move to run from RAM and then configure FLEXSPI clock source. | ||
64 | * After the clock is changed and stable, move back to run on FLEXSPI. | ||
65 | * Param src : FLEXSPI clock source. | ||
66 | * Param divider : FLEXSPI clock divider. | ||
67 | *END**************************************************************************/ | ||
68 | __attribute__((weak)) void BOARD_SetFlexspiClock(uint32_t src, uint32_t divider) | ||
69 | { | ||
70 | CLKCTL0->FLEXSPIFCLKSEL = CLKCTL0_FLEXSPIFCLKSEL_SEL(src); | ||
71 | CLKCTL0->FLEXSPIFCLKDIV |= CLKCTL0_FLEXSPIFCLKDIV_RESET_MASK; /* Reset the divider counter */ | ||
72 | CLKCTL0->FLEXSPIFCLKDIV = CLKCTL0_FLEXSPIFCLKDIV_DIV(divider - 1); | ||
73 | while ((CLKCTL0->FLEXSPIFCLKDIV) & CLKCTL0_FLEXSPIFCLKDIV_REQFLAG_MASK) | ||
74 | { | ||
75 | } | ||
76 | } | ||
77 | |||
78 | /******************************************************************************* | ||
79 | ************************ BOARD_InitBootClocks function ************************ | ||
80 | ******************************************************************************/ | ||
81 | void BOARD_InitBootClocks(void) | ||
82 | { | ||
83 | BOARD_BootClockRUN(); | ||
84 | } | ||
85 | |||
86 | /******************************************************************************* | ||
87 | ********************** Configuration BOARD_BootClockRUN *********************** | ||
88 | ******************************************************************************/ | ||
89 | /* clang-format off */ | ||
90 | /* TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
91 | !!Configuration | ||
92 | name: BOARD_BootClockRUN | ||
93 | called_from_default_init: true | ||
94 | outputs: | ||
95 | - {id: FLEXSPI_clock.outFreq, value: 1900.8/19 MHz} | ||
96 | - {id: LPOSC1M_clock.outFreq, value: 1 MHz} | ||
97 | - {id: OSTIMER_clock.outFreq, value: 1 MHz} | ||
98 | - {id: System_clock.outFreq, value: 4752/19 MHz} | ||
99 | - {id: WAKE_32K_clock.outFreq, value: 31.25 kHz} | ||
100 | settings: | ||
101 | - {id: AUDIOPLL0_PFD0_CLK_GATE, value: Enabled} | ||
102 | - {id: PLL0_PFD0_CLK_GATE, value: Enabled} | ||
103 | - {id: PLL0_PFD2_CLK_GATE, value: Enabled} | ||
104 | - {id: SYSCON.AUDIOPLL0CLKSEL.sel, value: SYSCON.SYSOSCBYPASS} | ||
105 | - {id: SYSCON.AUDIOPLL0_PFD0_DIV.scale, value: '26', locked: true} | ||
106 | - {id: SYSCON.AUDIOPLLCLKDIV.scale, value: '15', locked: true} | ||
107 | - {id: SYSCON.AUDIO_PLL0_PFD0_MUL.scale, value: '18', locked: true} | ||
108 | - {id: SYSCON.FLEXSPIFCLKDIV.scale, value: '5', locked: true} | ||
109 | - {id: SYSCON.FLEXSPIFCLKSEL.sel, value: SYSCON.MAINPLLCLKDIV} | ||
110 | - {id: SYSCON.FRGPLLCLKDIV.scale, value: '12', locked: true} | ||
111 | - {id: SYSCON.MAINCLKSELB.sel, value: SYSCON.MAINPLLCLKDIV} | ||
112 | - {id: SYSCON.PLL0.denom, value: '1'} | ||
113 | - {id: SYSCON.PLL0.div, value: '22', locked: true} | ||
114 | - {id: SYSCON.PLL0.num, value: '0'} | ||
115 | - {id: SYSCON.PLL0_PFD0_DIV.scale, value: '19', locked: true} | ||
116 | - {id: SYSCON.PLL0_PFD0_MUL.scale, value: '18', locked: true} | ||
117 | - {id: SYSCON.PLL0_PFD2_DIV.scale, value: '24', locked: true} | ||
118 | - {id: SYSCON.PLL0_PFD2_MUL.scale, value: '18', locked: true} | ||
119 | - {id: SYSCON.PLL1.denom, value: '27000', locked: true} | ||
120 | - {id: SYSCON.PLL1.div, value: '22'} | ||
121 | - {id: SYSCON.PLL1.num, value: '5040', locked: true} | ||
122 | - {id: SYSCON.SYSCPUAHBCLKDIV.scale, value: '2'} | ||
123 | - {id: SYSCON.SYSPLL0CLKSEL.sel, value: SYSCON.SYSOSCBYPASS} | ||
124 | - {id: SYSCON.SYSTICKFCLKSEL.sel, value: SYSCON.SYSTICKFCLKDIV} | ||
125 | - {id: SYSCTL_PDRUNCFG_AUDIOPLL_CFG, value: 'No'} | ||
126 | - {id: SYSCTL_PDRUNCFG_SYSPLL_CFG, value: 'No'} | ||
127 | - {id: SYSCTL_PDRUNCFG_SYSXTAL_CFG, value: Power_up} | ||
128 | - {id: XTAL_LP_Enable, value: LowPowerMode} | ||
129 | sources: | ||
130 | - {id: SYSCON.XTAL.outFreq, value: 24 MHz, enabled: true} | ||
131 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/ | ||
132 | /* clang-format on */ | ||
133 | |||
134 | /******************************************************************************* | ||
135 | * Variables for BOARD_BootClockRUN configuration | ||
136 | ******************************************************************************/ | ||
137 | const clock_sys_pll_config_t g_sysPllConfig_BOARD_BootClockRUN = { | ||
138 | .sys_pll_src = kCLOCK_SysPllXtalIn, /* OSC clock */ | ||
139 | .numerator = 0, /* Numerator of the SYSPLL0 fractional loop divider isnull */ | ||
140 | .denominator = 1, /* Denominator of the SYSPLL0 fractional loop divider isnull */ | ||
141 | .sys_pll_mult = kCLOCK_SysPllMult22 /* Divide by 22 */ | ||
142 | }; | ||
143 | const clock_audio_pll_config_t g_audioPllConfig_BOARD_BootClockRUN = { | ||
144 | .audio_pll_src = kCLOCK_AudioPllXtalIn, /* OSC clock */ | ||
145 | .numerator = 5040, /* Numerator of the SYSPLL0 fractional loop divider isnull */ | ||
146 | .denominator = 27000, /* Denominator of the SYSPLL0 fractional loop divider isnull */ | ||
147 | .audio_pll_mult = kCLOCK_AudioPllMult22 /* Divide by 22 */ | ||
148 | }; | ||
149 | /******************************************************************************* | ||
150 | * Code for BOARD_BootClockRUN configuration | ||
151 | ******************************************************************************/ | ||
152 | void BOARD_BootClockRUN(void) | ||
153 | { | ||
154 | /* Configure LPOSC clock*/ | ||
155 | POWER_DisablePD(kPDRUNCFG_PD_LPOSC); /* Power on LPOSC (1MHz) */ | ||
156 | /* Configure FFRO clock */ | ||
157 | POWER_DisablePD(kPDRUNCFG_PD_FFRO); /* Power on FFRO (48/60MHz) */ | ||
158 | CLOCK_EnableFfroClk(kCLOCK_Ffro48M); /* Enable FFRO clock*/ | ||
159 | /* Configure SFRO clock */ | ||
160 | POWER_DisablePD(kPDRUNCFG_PD_SFRO); /* Power on SFRO (16MHz) */ | ||
161 | CLOCK_EnableSfroClk(); /* Wait until SFRO stable */ | ||
162 | |||
163 | /* Call function BOARD_FlexspiClockSafeConfig() to move FLEXSPI clock to a stable clock source to avoid | ||
164 | instruction/data fetch issue when updating PLL and Main clock if XIP(execute code on FLEXSPI memory). */ | ||
165 | BOARD_FlexspiClockSafeConfig(); | ||
166 | |||
167 | /* Let CPU run on ffro for safe switching */ | ||
168 | CLOCK_AttachClk(kFFRO_to_MAIN_CLK); | ||
169 | |||
170 | /* Configure SYSOSC clock source */ | ||
171 | POWER_DisablePD(kPDRUNCFG_PD_SYSXTAL); /* Power on SYSXTAL */ | ||
172 | POWER_UpdateOscSettlingTime(BOARD_SYSOSC_SETTLING_US); /* Updated XTAL oscillator settling time */ | ||
173 | CLOCK_EnableSysOscClk(true, true, BOARD_SYSOSC_SETTLING_US); /* Enable system OSC */ | ||
174 | CLOCK_SetXtalFreq(BOARD_XTAL_SYS_CLK_HZ); /* Sets external XTAL OSC freq */ | ||
175 | |||
176 | /* Configure SysPLL0 clock source */ | ||
177 | CLOCK_InitSysPll(&g_sysPllConfig_BOARD_BootClockRUN); | ||
178 | CLOCK_InitSysPfd(kCLOCK_Pfd0, 19); /* Enable MAIN PLL clock */ | ||
179 | CLOCK_InitSysPfd(kCLOCK_Pfd2, 24); /* Enable AUX0 PLL clock */ | ||
180 | |||
181 | /* Configure Audio PLL clock source */ | ||
182 | CLOCK_InitAudioPll(&g_audioPllConfig_BOARD_BootClockRUN); | ||
183 | CLOCK_InitAudioPfd(kCLOCK_Pfd0, 26); /* Enable Audio PLL clock */ | ||
184 | |||
185 | CLOCK_SetClkDiv(kCLOCK_DivSysCpuAhbClk, 2U); /* Set SYSCPUAHBCLKDIV divider to value 2 */ | ||
186 | |||
187 | /* Set up clock selectors - Attach clocks to the peripheries */ | ||
188 | CLOCK_AttachClk(kMAIN_PLL_to_MAIN_CLK); /* Switch MAIN_CLK to MAIN_PLL */ | ||
189 | |||
190 | /* Set up dividers */ | ||
191 | CLOCK_SetClkDiv(kCLOCK_DivAudioPllClk, 15U); /* Set AUDIOPLLCLKDIV divider to value 15 */ | ||
192 | CLOCK_SetClkDiv(kCLOCK_DivPllFrgClk, 12U); /* Set FRGPLLCLKDIV divider to value 12 */ | ||
193 | |||
194 | /* Call weak function BOARD_SetFlexspiClock() to set user configured clock source/divider for FLEXSPI. */ | ||
195 | BOARD_SetFlexspiClock(1U, 5U); | ||
196 | |||
197 | /*< Set SystemCoreClock variable. */ | ||
198 | SystemCoreClock = BOARD_BOOTCLOCKRUN_CORE_CLOCK; | ||
199 | } | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/clock_config.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/clock_config.h new file mode 100644 index 000000000..16a15cb49 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/clock_config.h | |||
@@ -0,0 +1,67 @@ | |||
1 | /* | ||
2 | * Copyright 2019 NXP | ||
3 | * | ||
4 | * SPDX-License-Identifier: BSD-3-Clause | ||
5 | */ | ||
6 | |||
7 | /*********************************************************************************************************************** | ||
8 | * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file | ||
9 | * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. | ||
10 | **********************************************************************************************************************/ | ||
11 | |||
12 | #ifndef _CLOCK_CONFIG_H_ | ||
13 | #define _CLOCK_CONFIG_H_ | ||
14 | |||
15 | #include "fsl_common.h" | ||
16 | |||
17 | /******************************************************************************* | ||
18 | * Definitions | ||
19 | ******************************************************************************/ | ||
20 | #define BOARD_SYSOSC_SETTLING_US 260U /*!< Board System oscillator settling time in us */ | ||
21 | #define BOARD_XTAL32K_CLK_HZ 32768U /*!< Board xtal32K frequency in Hz */ | ||
22 | #define BOARD_XTAL_SYS_CLK_HZ 24000000U /*!< Board xtal 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 250105263U /*!< Core clock frequency: 250105263Hz */ | ||
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_ */ | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/peripherals.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/peripherals.c new file mode 100644 index 000000000..59c870cc5 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/peripherals.c | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | * Copyright 2019 NXP | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | /*********************************************************************************************************************** | ||
8 | * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file | ||
9 | * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. | ||
10 | **********************************************************************************************************************/ | ||
11 | |||
12 | /* clang-format off */ | ||
13 | /* TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
14 | !!GlobalInfo | ||
15 | product: Peripherals v7.0 | ||
16 | processor: MIMXRT633S | ||
17 | package_id: MIMXRT633SFVKB | ||
18 | mcu_data: ksdk2_0 | ||
19 | processor_version: 0.0.2 | ||
20 | functionalGroups: | ||
21 | - name: BOARD_InitPeripherals | ||
22 | UUID: 3b7455bc-061f-4a89-ac3d-7feaed16fb92 | ||
23 | called_from_default_init: true | ||
24 | selectedCore: cm33 | ||
25 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/ | ||
26 | |||
27 | /* TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
28 | component: | ||
29 | - type: 'system' | ||
30 | - type_id: 'system_54b53072540eeeb8f8e9343e71f28176' | ||
31 | - global_system_definitions: [] | ||
32 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/ | ||
33 | |||
34 | /* TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
35 | component: | ||
36 | - type: 'msg' | ||
37 | - type_id: 'msg_6e2baaf3b97dbeef01c0043275f9a0e7' | ||
38 | - global_messages: [] | ||
39 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/ | ||
40 | /* clang-format on */ | ||
41 | |||
42 | /*********************************************************************************************************************** | ||
43 | * Included files | ||
44 | **********************************************************************************************************************/ | ||
45 | #include "peripherals.h" | ||
46 | |||
47 | /*********************************************************************************************************************** | ||
48 | * Initialization functions | ||
49 | **********************************************************************************************************************/ | ||
50 | void BOARD_InitPeripherals(void) | ||
51 | { | ||
52 | } | ||
53 | |||
54 | /*********************************************************************************************************************** | ||
55 | * BOARD_InitBootPeripherals function | ||
56 | **********************************************************************************************************************/ | ||
57 | void BOARD_InitBootPeripherals(void) | ||
58 | { | ||
59 | BOARD_InitPeripherals(); | ||
60 | } | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/peripherals.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/peripherals.h new file mode 100644 index 000000000..628d92548 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/peripherals.h | |||
@@ -0,0 +1,33 @@ | |||
1 | /* | ||
2 | * Copyright 2019 NXP | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * SPDX-License-Identifier: BSD-3-Clause | ||
6 | */ | ||
7 | /*********************************************************************************************************************** | ||
8 | * This file was generated by the MCUXpresso Config Tools. Any manual edits made to this file | ||
9 | * will be overwritten if the respective MCUXpresso Config Tools is used to update this file. | ||
10 | **********************************************************************************************************************/ | ||
11 | |||
12 | #ifndef _PERIPHERALS_H_ | ||
13 | #define _PERIPHERALS_H_ | ||
14 | |||
15 | #if defined(__cplusplus) | ||
16 | extern "C" { | ||
17 | #endif /* __cplusplus */ | ||
18 | |||
19 | /*********************************************************************************************************************** | ||
20 | * Initialization functions | ||
21 | **********************************************************************************************************************/ | ||
22 | void BOARD_InitPeripherals(void); | ||
23 | |||
24 | /*********************************************************************************************************************** | ||
25 | * BOARD_InitBootPeripherals function | ||
26 | **********************************************************************************************************************/ | ||
27 | void BOARD_InitBootPeripherals(void); | ||
28 | |||
29 | #if defined(__cplusplus) | ||
30 | } | ||
31 | #endif | ||
32 | |||
33 | #endif /* _PERIPHERALS_H_ */ | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/pin_mux.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/pin_mux.c new file mode 100644 index 000000000..426a25af9 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/pin_mux.c | |||
@@ -0,0 +1,62 @@ | |||
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 v7.0 | ||
18 | processor: MIMXRT633S | ||
19 | package_id: MIMXRT633SFVKB | ||
20 | mcu_data: ksdk2_0 | ||
21 | processor_version: 0.0.2 | ||
22 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
23 | */ | ||
24 | /* clang-format on */ | ||
25 | |||
26 | #include "fsl_common.h" | ||
27 | #include "pin_mux.h" | ||
28 | |||
29 | /* FUNCTION ************************************************************************************************************ | ||
30 | * | ||
31 | * Function Name : BOARD_InitBootPins | ||
32 | * Description : Calls initialization functions. | ||
33 | * | ||
34 | * END ****************************************************************************************************************/ | ||
35 | void BOARD_InitBootPins(void) | ||
36 | { | ||
37 | BOARD_InitPins(); | ||
38 | } | ||
39 | |||
40 | /* clang-format off */ | ||
41 | /* | ||
42 | * TEXT BELOW IS USED AS SETTING FOR TOOLS ************************************* | ||
43 | BOARD_InitPins: | ||
44 | - options: {callFromInitBoot: 'true', coreID: cm33, enableClock: 'true'} | ||
45 | - pin_list: [] | ||
46 | * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS *********** | ||
47 | */ | ||
48 | /* clang-format on */ | ||
49 | |||
50 | /* FUNCTION ************************************************************************************************************ | ||
51 | * | ||
52 | * Function Name : BOARD_InitPins | ||
53 | * Description : Configures pin routing and optionally pin electrical features. | ||
54 | * | ||
55 | * END ****************************************************************************************************************/ | ||
56 | /* Function assigned for the Cortex-M33 */ | ||
57 | void BOARD_InitPins(void) | ||
58 | { | ||
59 | } | ||
60 | /*********************************************************************************************************************** | ||
61 | * EOF | ||
62 | **********************************************************************************************************************/ | ||
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/pin_mux.h b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/project_template/pin_mux.h new file mode 100644 index 000000000..8f8d72bc9 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT633S/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-M33 */ | ||
40 | |||
41 | #if defined(__cplusplus) | ||
42 | } | ||
43 | #endif | ||
44 | |||
45 | /*! | ||
46 | * @} | ||
47 | */ | ||
48 | #endif /* _PIN_MUX_H_ */ | ||
49 | |||
50 | /*********************************************************************************************************************** | ||
51 | * EOF | ||
52 | **********************************************************************************************************************/ | ||