diff options
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1061/mcuxpresso/startup_mimxrt1061.c')
-rw-r--r-- | lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1061/mcuxpresso/startup_mimxrt1061.c | 1436 |
1 files changed, 1436 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1061/mcuxpresso/startup_mimxrt1061.c b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1061/mcuxpresso/startup_mimxrt1061.c new file mode 100644 index 000000000..10c850874 --- /dev/null +++ b/lib/chibios-contrib/ext/mcux-sdk/devices/MIMXRT1061/mcuxpresso/startup_mimxrt1061.c | |||
@@ -0,0 +1,1436 @@ | |||
1 | //***************************************************************************** | ||
2 | // MIMXRT1061 startup code for use with MCUXpresso IDE | ||
3 | // | ||
4 | // Version : 101020 | ||
5 | //***************************************************************************** | ||
6 | // | ||
7 | // Copyright 2016-2020 NXP | ||
8 | // All rights reserved. | ||
9 | // | ||
10 | // SPDX-License-Identifier: BSD-3-Clause | ||
11 | //***************************************************************************** | ||
12 | |||
13 | #if defined (DEBUG) | ||
14 | #pragma GCC push_options | ||
15 | #pragma GCC optimize ("Og") | ||
16 | #endif // (DEBUG) | ||
17 | |||
18 | #if defined (__cplusplus) | ||
19 | #ifdef __REDLIB__ | ||
20 | #error Redlib does not support C++ | ||
21 | #else | ||
22 | //***************************************************************************** | ||
23 | // | ||
24 | // The entry point for the C++ library startup | ||
25 | // | ||
26 | //***************************************************************************** | ||
27 | extern "C" { | ||
28 | extern void __libc_init_array(void); | ||
29 | } | ||
30 | #endif | ||
31 | #endif | ||
32 | |||
33 | #define WEAK __attribute__ ((weak)) | ||
34 | #define WEAK_AV __attribute__ ((weak, section(".after_vectors"))) | ||
35 | #define ALIAS(f) __attribute__ ((weak, alias (#f))) | ||
36 | |||
37 | //***************************************************************************** | ||
38 | #if defined (__cplusplus) | ||
39 | extern "C" { | ||
40 | #endif | ||
41 | |||
42 | //***************************************************************************** | ||
43 | // Variable to store CRP value in. Will be placed automatically | ||
44 | // by the linker when "Enable Code Read Protect" selected. | ||
45 | // See crp.h header for more information | ||
46 | //***************************************************************************** | ||
47 | //***************************************************************************** | ||
48 | // Declaration of external SystemInit function | ||
49 | //***************************************************************************** | ||
50 | #if defined (__USE_CMSIS) | ||
51 | extern void SystemInit(void); | ||
52 | #endif // (__USE_CMSIS) | ||
53 | |||
54 | //***************************************************************************** | ||
55 | // Forward declaration of the core exception handlers. | ||
56 | // When the application defines a handler (with the same name), this will | ||
57 | // automatically take precedence over these weak definitions. | ||
58 | // If your application is a C++ one, then any interrupt handlers defined | ||
59 | // in C++ files within in your main application will need to have C linkage | ||
60 | // rather than C++ linkage. To do this, make sure that you are using extern "C" | ||
61 | // { .... } around the interrupt handler within your main application code. | ||
62 | //***************************************************************************** | ||
63 | void ResetISR(void); | ||
64 | WEAK void NMI_Handler(void); | ||
65 | WEAK void HardFault_Handler(void); | ||
66 | WEAK void MemManage_Handler(void); | ||
67 | WEAK void BusFault_Handler(void); | ||
68 | WEAK void UsageFault_Handler(void); | ||
69 | WEAK void SVC_Handler(void); | ||
70 | WEAK void DebugMon_Handler(void); | ||
71 | WEAK void PendSV_Handler(void); | ||
72 | WEAK void SysTick_Handler(void); | ||
73 | WEAK void IntDefaultHandler(void); | ||
74 | |||
75 | //***************************************************************************** | ||
76 | // Forward declaration of the application IRQ handlers. When the application | ||
77 | // defines a handler (with the same name), this will automatically take | ||
78 | // precedence over weak definitions below | ||
79 | //***************************************************************************** | ||
80 | WEAK void DMA0_DMA16_IRQHandler(void); | ||
81 | WEAK void DMA1_DMA17_IRQHandler(void); | ||
82 | WEAK void DMA2_DMA18_IRQHandler(void); | ||
83 | WEAK void DMA3_DMA19_IRQHandler(void); | ||
84 | WEAK void DMA4_DMA20_IRQHandler(void); | ||
85 | WEAK void DMA5_DMA21_IRQHandler(void); | ||
86 | WEAK void DMA6_DMA22_IRQHandler(void); | ||
87 | WEAK void DMA7_DMA23_IRQHandler(void); | ||
88 | WEAK void DMA8_DMA24_IRQHandler(void); | ||
89 | WEAK void DMA9_DMA25_IRQHandler(void); | ||
90 | WEAK void DMA10_DMA26_IRQHandler(void); | ||
91 | WEAK void DMA11_DMA27_IRQHandler(void); | ||
92 | WEAK void DMA12_DMA28_IRQHandler(void); | ||
93 | WEAK void DMA13_DMA29_IRQHandler(void); | ||
94 | WEAK void DMA14_DMA30_IRQHandler(void); | ||
95 | WEAK void DMA15_DMA31_IRQHandler(void); | ||
96 | WEAK void DMA_ERROR_IRQHandler(void); | ||
97 | WEAK void CTI0_ERROR_IRQHandler(void); | ||
98 | WEAK void CTI1_ERROR_IRQHandler(void); | ||
99 | WEAK void CORE_IRQHandler(void); | ||
100 | WEAK void LPUART1_IRQHandler(void); | ||
101 | WEAK void LPUART2_IRQHandler(void); | ||
102 | WEAK void LPUART3_IRQHandler(void); | ||
103 | WEAK void LPUART4_IRQHandler(void); | ||
104 | WEAK void LPUART5_IRQHandler(void); | ||
105 | WEAK void LPUART6_IRQHandler(void); | ||
106 | WEAK void LPUART7_IRQHandler(void); | ||
107 | WEAK void LPUART8_IRQHandler(void); | ||
108 | WEAK void LPI2C1_IRQHandler(void); | ||
109 | WEAK void LPI2C2_IRQHandler(void); | ||
110 | WEAK void LPI2C3_IRQHandler(void); | ||
111 | WEAK void LPI2C4_IRQHandler(void); | ||
112 | WEAK void LPSPI1_IRQHandler(void); | ||
113 | WEAK void LPSPI2_IRQHandler(void); | ||
114 | WEAK void LPSPI3_IRQHandler(void); | ||
115 | WEAK void LPSPI4_IRQHandler(void); | ||
116 | WEAK void CAN1_IRQHandler(void); | ||
117 | WEAK void CAN2_IRQHandler(void); | ||
118 | WEAK void FLEXRAM_IRQHandler(void); | ||
119 | WEAK void KPP_IRQHandler(void); | ||
120 | WEAK void TSC_DIG_IRQHandler(void); | ||
121 | WEAK void GPR_IRQ_IRQHandler(void); | ||
122 | WEAK void Reserved58_IRQHandler(void); | ||
123 | WEAK void Reserved59_IRQHandler(void); | ||
124 | WEAK void Reserved60_IRQHandler(void); | ||
125 | WEAK void WDOG2_IRQHandler(void); | ||
126 | WEAK void SNVS_HP_WRAPPER_IRQHandler(void); | ||
127 | WEAK void SNVS_HP_WRAPPER_TZ_IRQHandler(void); | ||
128 | WEAK void SNVS_LP_WRAPPER_IRQHandler(void); | ||
129 | WEAK void CSU_IRQHandler(void); | ||
130 | WEAK void DCP_IRQHandler(void); | ||
131 | WEAK void DCP_VMI_IRQHandler(void); | ||
132 | WEAK void Reserved68_IRQHandler(void); | ||
133 | WEAK void TRNG_IRQHandler(void); | ||
134 | WEAK void SJC_IRQHandler(void); | ||
135 | WEAK void BEE_IRQHandler(void); | ||
136 | WEAK void SAI1_IRQHandler(void); | ||
137 | WEAK void SAI2_IRQHandler(void); | ||
138 | WEAK void SAI3_RX_IRQHandler(void); | ||
139 | WEAK void SAI3_TX_IRQHandler(void); | ||
140 | WEAK void SPDIF_IRQHandler(void); | ||
141 | WEAK void PMU_EVENT_IRQHandler(void); | ||
142 | WEAK void Reserved78_IRQHandler(void); | ||
143 | WEAK void TEMP_LOW_HIGH_IRQHandler(void); | ||
144 | WEAK void TEMP_PANIC_IRQHandler(void); | ||
145 | WEAK void USB_PHY1_IRQHandler(void); | ||
146 | WEAK void USB_PHY2_IRQHandler(void); | ||
147 | WEAK void ADC1_IRQHandler(void); | ||
148 | WEAK void ADC2_IRQHandler(void); | ||
149 | WEAK void DCDC_IRQHandler(void); | ||
150 | WEAK void Reserved86_IRQHandler(void); | ||
151 | WEAK void Reserved87_IRQHandler(void); | ||
152 | WEAK void GPIO1_INT0_IRQHandler(void); | ||
153 | WEAK void GPIO1_INT1_IRQHandler(void); | ||
154 | WEAK void GPIO1_INT2_IRQHandler(void); | ||
155 | WEAK void GPIO1_INT3_IRQHandler(void); | ||
156 | WEAK void GPIO1_INT4_IRQHandler(void); | ||
157 | WEAK void GPIO1_INT5_IRQHandler(void); | ||
158 | WEAK void GPIO1_INT6_IRQHandler(void); | ||
159 | WEAK void GPIO1_INT7_IRQHandler(void); | ||
160 | WEAK void GPIO1_Combined_0_15_IRQHandler(void); | ||
161 | WEAK void GPIO1_Combined_16_31_IRQHandler(void); | ||
162 | WEAK void GPIO2_Combined_0_15_IRQHandler(void); | ||
163 | WEAK void GPIO2_Combined_16_31_IRQHandler(void); | ||
164 | WEAK void GPIO3_Combined_0_15_IRQHandler(void); | ||
165 | WEAK void GPIO3_Combined_16_31_IRQHandler(void); | ||
166 | WEAK void GPIO4_Combined_0_15_IRQHandler(void); | ||
167 | WEAK void GPIO4_Combined_16_31_IRQHandler(void); | ||
168 | WEAK void GPIO5_Combined_0_15_IRQHandler(void); | ||
169 | WEAK void GPIO5_Combined_16_31_IRQHandler(void); | ||
170 | WEAK void FLEXIO1_IRQHandler(void); | ||
171 | WEAK void FLEXIO2_IRQHandler(void); | ||
172 | WEAK void WDOG1_IRQHandler(void); | ||
173 | WEAK void RTWDOG_IRQHandler(void); | ||
174 | WEAK void EWM_IRQHandler(void); | ||
175 | WEAK void CCM_1_IRQHandler(void); | ||
176 | WEAK void CCM_2_IRQHandler(void); | ||
177 | WEAK void GPC_IRQHandler(void); | ||
178 | WEAK void SRC_IRQHandler(void); | ||
179 | WEAK void Reserved115_IRQHandler(void); | ||
180 | WEAK void GPT1_IRQHandler(void); | ||
181 | WEAK void GPT2_IRQHandler(void); | ||
182 | WEAK void PWM1_0_IRQHandler(void); | ||
183 | WEAK void PWM1_1_IRQHandler(void); | ||
184 | WEAK void PWM1_2_IRQHandler(void); | ||
185 | WEAK void PWM1_3_IRQHandler(void); | ||
186 | WEAK void PWM1_FAULT_IRQHandler(void); | ||
187 | WEAK void FLEXSPI2_IRQHandler(void); | ||
188 | WEAK void FLEXSPI_IRQHandler(void); | ||
189 | WEAK void SEMC_IRQHandler(void); | ||
190 | WEAK void USDHC1_IRQHandler(void); | ||
191 | WEAK void USDHC2_IRQHandler(void); | ||
192 | WEAK void USB_OTG2_IRQHandler(void); | ||
193 | WEAK void USB_OTG1_IRQHandler(void); | ||
194 | WEAK void ENET_IRQHandler(void); | ||
195 | WEAK void ENET_1588_Timer_IRQHandler(void); | ||
196 | WEAK void XBAR1_IRQ_0_1_IRQHandler(void); | ||
197 | WEAK void XBAR1_IRQ_2_3_IRQHandler(void); | ||
198 | WEAK void ADC_ETC_IRQ0_IRQHandler(void); | ||
199 | WEAK void ADC_ETC_IRQ1_IRQHandler(void); | ||
200 | WEAK void ADC_ETC_IRQ2_IRQHandler(void); | ||
201 | WEAK void ADC_ETC_ERROR_IRQ_IRQHandler(void); | ||
202 | WEAK void PIT_IRQHandler(void); | ||
203 | WEAK void ACMP1_IRQHandler(void); | ||
204 | WEAK void ACMP2_IRQHandler(void); | ||
205 | WEAK void ACMP3_IRQHandler(void); | ||
206 | WEAK void ACMP4_IRQHandler(void); | ||
207 | WEAK void Reserved143_IRQHandler(void); | ||
208 | WEAK void Reserved144_IRQHandler(void); | ||
209 | WEAK void ENC1_IRQHandler(void); | ||
210 | WEAK void ENC2_IRQHandler(void); | ||
211 | WEAK void ENC3_IRQHandler(void); | ||
212 | WEAK void ENC4_IRQHandler(void); | ||
213 | WEAK void TMR1_IRQHandler(void); | ||
214 | WEAK void TMR2_IRQHandler(void); | ||
215 | WEAK void TMR3_IRQHandler(void); | ||
216 | WEAK void TMR4_IRQHandler(void); | ||
217 | WEAK void PWM2_0_IRQHandler(void); | ||
218 | WEAK void PWM2_1_IRQHandler(void); | ||
219 | WEAK void PWM2_2_IRQHandler(void); | ||
220 | WEAK void PWM2_3_IRQHandler(void); | ||
221 | WEAK void PWM2_FAULT_IRQHandler(void); | ||
222 | WEAK void PWM3_0_IRQHandler(void); | ||
223 | WEAK void PWM3_1_IRQHandler(void); | ||
224 | WEAK void PWM3_2_IRQHandler(void); | ||
225 | WEAK void PWM3_3_IRQHandler(void); | ||
226 | WEAK void PWM3_FAULT_IRQHandler(void); | ||
227 | WEAK void PWM4_0_IRQHandler(void); | ||
228 | WEAK void PWM4_1_IRQHandler(void); | ||
229 | WEAK void PWM4_2_IRQHandler(void); | ||
230 | WEAK void PWM4_3_IRQHandler(void); | ||
231 | WEAK void PWM4_FAULT_IRQHandler(void); | ||
232 | WEAK void ENET2_IRQHandler(void); | ||
233 | WEAK void ENET2_1588_Timer_IRQHandler(void); | ||
234 | WEAK void CAN3_IRQHandler(void); | ||
235 | WEAK void Reserved171_IRQHandler(void); | ||
236 | WEAK void FLEXIO3_IRQHandler(void); | ||
237 | WEAK void GPIO6_7_8_9_IRQHandler(void); | ||
238 | |||
239 | //***************************************************************************** | ||
240 | // Forward declaration of the driver IRQ handlers. These are aliased | ||
241 | // to the IntDefaultHandler, which is a 'forever' loop. When the driver | ||
242 | // defines a handler (with the same name), this will automatically take | ||
243 | // precedence over these weak definitions | ||
244 | //***************************************************************************** | ||
245 | void DMA0_DMA16_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
246 | void DMA1_DMA17_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
247 | void DMA2_DMA18_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
248 | void DMA3_DMA19_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
249 | void DMA4_DMA20_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
250 | void DMA5_DMA21_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
251 | void DMA6_DMA22_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
252 | void DMA7_DMA23_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
253 | void DMA8_DMA24_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
254 | void DMA9_DMA25_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
255 | void DMA10_DMA26_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
256 | void DMA11_DMA27_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
257 | void DMA12_DMA28_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
258 | void DMA13_DMA29_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
259 | void DMA14_DMA30_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
260 | void DMA15_DMA31_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
261 | void DMA_ERROR_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
262 | void CTI0_ERROR_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
263 | void CTI1_ERROR_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
264 | void CORE_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
265 | void LPUART1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
266 | void LPUART2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
267 | void LPUART3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
268 | void LPUART4_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
269 | void LPUART5_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
270 | void LPUART6_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
271 | void LPUART7_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
272 | void LPUART8_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
273 | void LPI2C1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
274 | void LPI2C2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
275 | void LPI2C3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
276 | void LPI2C4_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
277 | void LPSPI1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
278 | void LPSPI2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
279 | void LPSPI3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
280 | void LPSPI4_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
281 | void CAN1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
282 | void CAN2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
283 | void FLEXRAM_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
284 | void KPP_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
285 | void TSC_DIG_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
286 | void GPR_IRQ_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
287 | void Reserved58_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
288 | void Reserved59_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
289 | void Reserved60_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
290 | void WDOG2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
291 | void SNVS_HP_WRAPPER_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
292 | void SNVS_HP_WRAPPER_TZ_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
293 | void SNVS_LP_WRAPPER_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
294 | void CSU_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
295 | void DCP_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
296 | void DCP_VMI_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
297 | void Reserved68_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
298 | void TRNG_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
299 | void SJC_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
300 | void BEE_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
301 | void SAI1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
302 | void SAI2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
303 | void SAI3_RX_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
304 | void SAI3_TX_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
305 | void SPDIF_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
306 | void PMU_EVENT_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
307 | void Reserved78_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
308 | void TEMP_LOW_HIGH_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
309 | void TEMP_PANIC_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
310 | void USB_PHY1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
311 | void USB_PHY2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
312 | void ADC1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
313 | void ADC2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
314 | void DCDC_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
315 | void Reserved86_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
316 | void Reserved87_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
317 | void GPIO1_INT0_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
318 | void GPIO1_INT1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
319 | void GPIO1_INT2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
320 | void GPIO1_INT3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
321 | void GPIO1_INT4_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
322 | void GPIO1_INT5_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
323 | void GPIO1_INT6_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
324 | void GPIO1_INT7_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
325 | void GPIO1_Combined_0_15_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
326 | void GPIO1_Combined_16_31_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
327 | void GPIO2_Combined_0_15_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
328 | void GPIO2_Combined_16_31_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
329 | void GPIO3_Combined_0_15_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
330 | void GPIO3_Combined_16_31_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
331 | void GPIO4_Combined_0_15_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
332 | void GPIO4_Combined_16_31_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
333 | void GPIO5_Combined_0_15_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
334 | void GPIO5_Combined_16_31_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
335 | void FLEXIO1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
336 | void FLEXIO2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
337 | void WDOG1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
338 | void RTWDOG_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
339 | void EWM_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
340 | void CCM_1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
341 | void CCM_2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
342 | void GPC_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
343 | void SRC_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
344 | void Reserved115_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
345 | void GPT1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
346 | void GPT2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
347 | void PWM1_0_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
348 | void PWM1_1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
349 | void PWM1_2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
350 | void PWM1_3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
351 | void PWM1_FAULT_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
352 | void FLEXSPI2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
353 | void FLEXSPI_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
354 | void SEMC_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
355 | void USDHC1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
356 | void USDHC2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
357 | void USB_OTG2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
358 | void USB_OTG1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
359 | void ENET_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
360 | void ENET_1588_Timer_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
361 | void XBAR1_IRQ_0_1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
362 | void XBAR1_IRQ_2_3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
363 | void ADC_ETC_IRQ0_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
364 | void ADC_ETC_IRQ1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
365 | void ADC_ETC_IRQ2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
366 | void ADC_ETC_ERROR_IRQ_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
367 | void PIT_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
368 | void ACMP1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
369 | void ACMP2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
370 | void ACMP3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
371 | void ACMP4_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
372 | void Reserved143_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
373 | void Reserved144_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
374 | void ENC1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
375 | void ENC2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
376 | void ENC3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
377 | void ENC4_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
378 | void TMR1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
379 | void TMR2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
380 | void TMR3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
381 | void TMR4_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
382 | void PWM2_0_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
383 | void PWM2_1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
384 | void PWM2_2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
385 | void PWM2_3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
386 | void PWM2_FAULT_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
387 | void PWM3_0_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
388 | void PWM3_1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
389 | void PWM3_2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
390 | void PWM3_3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
391 | void PWM3_FAULT_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
392 | void PWM4_0_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
393 | void PWM4_1_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
394 | void PWM4_2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
395 | void PWM4_3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
396 | void PWM4_FAULT_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
397 | void ENET2_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
398 | void ENET2_1588_Timer_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
399 | void CAN3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
400 | void Reserved171_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
401 | void FLEXIO3_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
402 | void GPIO6_7_8_9_DriverIRQHandler(void) ALIAS(IntDefaultHandler); | ||
403 | |||
404 | //***************************************************************************** | ||
405 | // The entry point for the application. | ||
406 | // __main() is the entry point for Redlib based applications | ||
407 | // main() is the entry point for Newlib based applications | ||
408 | //***************************************************************************** | ||
409 | #if defined (__REDLIB__) | ||
410 | extern void __main(void); | ||
411 | #endif | ||
412 | extern int main(void); | ||
413 | |||
414 | //***************************************************************************** | ||
415 | // External declaration for the pointer to the stack top from the Linker Script | ||
416 | //***************************************************************************** | ||
417 | extern void _vStackTop(void); | ||
418 | //***************************************************************************** | ||
419 | #if defined (__cplusplus) | ||
420 | } // extern "C" | ||
421 | #endif | ||
422 | //***************************************************************************** | ||
423 | // The vector table. | ||
424 | // This relies on the linker script to place at correct location in memory. | ||
425 | //***************************************************************************** | ||
426 | |||
427 | |||
428 | |||
429 | extern void (* const g_pfnVectors[])(void); | ||
430 | extern void * __Vectors __attribute__ ((alias ("g_pfnVectors"))); | ||
431 | |||
432 | __attribute__ ((used, section(".isr_vector"))) | ||
433 | void (* const g_pfnVectors[])(void) = { | ||
434 | // Core Level - CM7 | ||
435 | &_vStackTop, // The initial stack pointer | ||
436 | ResetISR, // The reset handler | ||
437 | NMI_Handler, // The NMI handler | ||
438 | HardFault_Handler, // The hard fault handler | ||
439 | MemManage_Handler, // The MPU fault handler | ||
440 | BusFault_Handler, // The bus fault handler | ||
441 | UsageFault_Handler, // The usage fault handler | ||
442 | 0, // Reserved | ||
443 | 0, // Reserved | ||
444 | 0, // Reserved | ||
445 | 0, // Reserved | ||
446 | SVC_Handler, // SVCall handler | ||
447 | DebugMon_Handler, // Debug monitor handler | ||
448 | 0, // Reserved | ||
449 | PendSV_Handler, // The PendSV handler | ||
450 | SysTick_Handler, // The SysTick handler | ||
451 | |||
452 | // Chip Level - MIMXRT1061 | ||
453 | DMA0_DMA16_IRQHandler, // 16 : DMA channel 0/16 transfer complete | ||
454 | DMA1_DMA17_IRQHandler, // 17 : DMA channel 1/17 transfer complete | ||
455 | DMA2_DMA18_IRQHandler, // 18 : DMA channel 2/18 transfer complete | ||
456 | DMA3_DMA19_IRQHandler, // 19 : DMA channel 3/19 transfer complete | ||
457 | DMA4_DMA20_IRQHandler, // 20 : DMA channel 4/20 transfer complete | ||
458 | DMA5_DMA21_IRQHandler, // 21 : DMA channel 5/21 transfer complete | ||
459 | DMA6_DMA22_IRQHandler, // 22 : DMA channel 6/22 transfer complete | ||
460 | DMA7_DMA23_IRQHandler, // 23 : DMA channel 7/23 transfer complete | ||
461 | DMA8_DMA24_IRQHandler, // 24 : DMA channel 8/24 transfer complete | ||
462 | DMA9_DMA25_IRQHandler, // 25 : DMA channel 9/25 transfer complete | ||
463 | DMA10_DMA26_IRQHandler, // 26 : DMA channel 10/26 transfer complete | ||
464 | DMA11_DMA27_IRQHandler, // 27 : DMA channel 11/27 transfer complete | ||
465 | DMA12_DMA28_IRQHandler, // 28 : DMA channel 12/28 transfer complete | ||
466 | DMA13_DMA29_IRQHandler, // 29 : DMA channel 13/29 transfer complete | ||
467 | DMA14_DMA30_IRQHandler, // 30 : DMA channel 14/30 transfer complete | ||
468 | DMA15_DMA31_IRQHandler, // 31 : DMA channel 15/31 transfer complete | ||
469 | DMA_ERROR_IRQHandler, // 32 : DMA error interrupt channels 0-15 / 16-31 | ||
470 | CTI0_ERROR_IRQHandler, // 33 : CTI0_Error | ||
471 | CTI1_ERROR_IRQHandler, // 34 : CTI1_Error | ||
472 | CORE_IRQHandler, // 35 : CorePlatform exception IRQ | ||
473 | LPUART1_IRQHandler, // 36 : LPUART1 TX interrupt and RX interrupt | ||
474 | LPUART2_IRQHandler, // 37 : LPUART2 TX interrupt and RX interrupt | ||
475 | LPUART3_IRQHandler, // 38 : LPUART3 TX interrupt and RX interrupt | ||
476 | LPUART4_IRQHandler, // 39 : LPUART4 TX interrupt and RX interrupt | ||
477 | LPUART5_IRQHandler, // 40 : LPUART5 TX interrupt and RX interrupt | ||
478 | LPUART6_IRQHandler, // 41 : LPUART6 TX interrupt and RX interrupt | ||
479 | LPUART7_IRQHandler, // 42 : LPUART7 TX interrupt and RX interrupt | ||
480 | LPUART8_IRQHandler, // 43 : LPUART8 TX interrupt and RX interrupt | ||
481 | LPI2C1_IRQHandler, // 44 : LPI2C1 interrupt | ||
482 | LPI2C2_IRQHandler, // 45 : LPI2C2 interrupt | ||
483 | LPI2C3_IRQHandler, // 46 : LPI2C3 interrupt | ||
484 | LPI2C4_IRQHandler, // 47 : LPI2C4 interrupt | ||
485 | LPSPI1_IRQHandler, // 48 : LPSPI1 single interrupt vector for all sources | ||
486 | LPSPI2_IRQHandler, // 49 : LPSPI2 single interrupt vector for all sources | ||
487 | LPSPI3_IRQHandler, // 50 : LPSPI3 single interrupt vector for all sources | ||
488 | LPSPI4_IRQHandler, // 51 : LPSPI4 single interrupt vector for all sources | ||
489 | CAN1_IRQHandler, // 52 : CAN1 interrupt | ||
490 | CAN2_IRQHandler, // 53 : CAN2 interrupt | ||
491 | FLEXRAM_IRQHandler, // 54 : FlexRAM address out of range Or access hit IRQ | ||
492 | KPP_IRQHandler, // 55 : Keypad nterrupt | ||
493 | TSC_DIG_IRQHandler, // 56 : TSC interrupt | ||
494 | GPR_IRQ_IRQHandler, // 57 : GPR interrupt | ||
495 | Reserved58_IRQHandler, // 58 : Reserved interrupt | ||
496 | Reserved59_IRQHandler, // 59 : Reserved interrupt | ||
497 | Reserved60_IRQHandler, // 60 : Reserved interrupt | ||
498 | WDOG2_IRQHandler, // 61 : WDOG2 interrupt | ||
499 | SNVS_HP_WRAPPER_IRQHandler, // 62 : SRTC Consolidated Interrupt. Non TZ | ||
500 | SNVS_HP_WRAPPER_TZ_IRQHandler, // 63 : SRTC Security Interrupt. TZ | ||
501 | SNVS_LP_WRAPPER_IRQHandler, // 64 : ON-OFF button press shorter than 5 secs (pulse event) | ||
502 | CSU_IRQHandler, // 65 : CSU interrupt | ||
503 | DCP_IRQHandler, // 66 : DCP_IRQ interrupt | ||
504 | DCP_VMI_IRQHandler, // 67 : DCP_VMI_IRQ interrupt | ||
505 | Reserved68_IRQHandler, // 68 : Reserved interrupt | ||
506 | TRNG_IRQHandler, // 69 : TRNG interrupt | ||
507 | SJC_IRQHandler, // 70 : SJC interrupt | ||
508 | BEE_IRQHandler, // 71 : BEE interrupt | ||
509 | SAI1_IRQHandler, // 72 : SAI1 interrupt | ||
510 | SAI2_IRQHandler, // 73 : SAI1 interrupt | ||
511 | SAI3_RX_IRQHandler, // 74 : SAI3 interrupt | ||
512 | SAI3_TX_IRQHandler, // 75 : SAI3 interrupt | ||
513 | SPDIF_IRQHandler, // 76 : SPDIF interrupt | ||
514 | PMU_EVENT_IRQHandler, // 77 : Brown-out event interrupt | ||
515 | Reserved78_IRQHandler, // 78 : Reserved interrupt | ||
516 | TEMP_LOW_HIGH_IRQHandler, // 79 : TempSensor low/high interrupt | ||
517 | TEMP_PANIC_IRQHandler, // 80 : TempSensor panic interrupt | ||
518 | USB_PHY1_IRQHandler, // 81 : USBPHY (UTMI0), Interrupt | ||
519 | USB_PHY2_IRQHandler, // 82 : USBPHY (UTMI1), Interrupt | ||
520 | ADC1_IRQHandler, // 83 : ADC1 interrupt | ||
521 | ADC2_IRQHandler, // 84 : ADC2 interrupt | ||
522 | DCDC_IRQHandler, // 85 : DCDC interrupt | ||
523 | Reserved86_IRQHandler, // 86 : Reserved interrupt | ||
524 | Reserved87_IRQHandler, // 87 : Reserved interrupt | ||
525 | GPIO1_INT0_IRQHandler, // 88 : Active HIGH Interrupt from INT0 from GPIO | ||
526 | GPIO1_INT1_IRQHandler, // 89 : Active HIGH Interrupt from INT1 from GPIO | ||
527 | GPIO1_INT2_IRQHandler, // 90 : Active HIGH Interrupt from INT2 from GPIO | ||
528 | GPIO1_INT3_IRQHandler, // 91 : Active HIGH Interrupt from INT3 from GPIO | ||
529 | GPIO1_INT4_IRQHandler, // 92 : Active HIGH Interrupt from INT4 from GPIO | ||
530 | GPIO1_INT5_IRQHandler, // 93 : Active HIGH Interrupt from INT5 from GPIO | ||
531 | GPIO1_INT6_IRQHandler, // 94 : Active HIGH Interrupt from INT6 from GPIO | ||
532 | GPIO1_INT7_IRQHandler, // 95 : Active HIGH Interrupt from INT7 from GPIO | ||
533 | GPIO1_Combined_0_15_IRQHandler, // 96 : Combined interrupt indication for GPIO1 signal 0 throughout 15 | ||
534 | GPIO1_Combined_16_31_IRQHandler, // 97 : Combined interrupt indication for GPIO1 signal 16 throughout 31 | ||
535 | GPIO2_Combined_0_15_IRQHandler, // 98 : Combined interrupt indication for GPIO2 signal 0 throughout 15 | ||
536 | GPIO2_Combined_16_31_IRQHandler, // 99 : Combined interrupt indication for GPIO2 signal 16 throughout 31 | ||
537 | GPIO3_Combined_0_15_IRQHandler, // 100: Combined interrupt indication for GPIO3 signal 0 throughout 15 | ||
538 | GPIO3_Combined_16_31_IRQHandler, // 101: Combined interrupt indication for GPIO3 signal 16 throughout 31 | ||
539 | GPIO4_Combined_0_15_IRQHandler, // 102: Combined interrupt indication for GPIO4 signal 0 throughout 15 | ||
540 | GPIO4_Combined_16_31_IRQHandler, // 103: Combined interrupt indication for GPIO4 signal 16 throughout 31 | ||
541 | GPIO5_Combined_0_15_IRQHandler, // 104: Combined interrupt indication for GPIO5 signal 0 throughout 15 | ||
542 | GPIO5_Combined_16_31_IRQHandler, // 105: Combined interrupt indication for GPIO5 signal 16 throughout 31 | ||
543 | FLEXIO1_IRQHandler, // 106: FLEXIO1 interrupt | ||
544 | FLEXIO2_IRQHandler, // 107: FLEXIO2 interrupt | ||
545 | WDOG1_IRQHandler, // 108: WDOG1 interrupt | ||
546 | RTWDOG_IRQHandler, // 109: RTWDOG interrupt | ||
547 | EWM_IRQHandler, // 110: EWM interrupt | ||
548 | CCM_1_IRQHandler, // 111: CCM IRQ1 interrupt | ||
549 | CCM_2_IRQHandler, // 112: CCM IRQ2 interrupt | ||
550 | GPC_IRQHandler, // 113: GPC interrupt | ||
551 | SRC_IRQHandler, // 114: SRC interrupt | ||
552 | Reserved115_IRQHandler, // 115: Reserved interrupt | ||
553 | GPT1_IRQHandler, // 116: GPT1 interrupt | ||
554 | GPT2_IRQHandler, // 117: GPT2 interrupt | ||
555 | PWM1_0_IRQHandler, // 118: PWM1 capture 0, compare 0, or reload 0 interrupt | ||
556 | PWM1_1_IRQHandler, // 119: PWM1 capture 1, compare 1, or reload 0 interrupt | ||
557 | PWM1_2_IRQHandler, // 120: PWM1 capture 2, compare 2, or reload 0 interrupt | ||
558 | PWM1_3_IRQHandler, // 121: PWM1 capture 3, compare 3, or reload 0 interrupt | ||
559 | PWM1_FAULT_IRQHandler, // 122: PWM1 fault or reload error interrupt | ||
560 | FLEXSPI2_IRQHandler, // 123: FlexSPI2 interrupt | ||
561 | FLEXSPI_IRQHandler, // 124: FlexSPI0 interrupt | ||
562 | SEMC_IRQHandler, // 125: Reserved interrupt | ||
563 | USDHC1_IRQHandler, // 126: USDHC1 interrupt | ||
564 | USDHC2_IRQHandler, // 127: USDHC2 interrupt | ||
565 | USB_OTG2_IRQHandler, // 128: USBO2 USB OTG2 | ||
566 | USB_OTG1_IRQHandler, // 129: USBO2 USB OTG1 | ||
567 | ENET_IRQHandler, // 130: ENET interrupt | ||
568 | ENET_1588_Timer_IRQHandler, // 131: ENET_1588_Timer interrupt | ||
569 | XBAR1_IRQ_0_1_IRQHandler, // 132: XBAR1 interrupt | ||
570 | XBAR1_IRQ_2_3_IRQHandler, // 133: XBAR1 interrupt | ||
571 | ADC_ETC_IRQ0_IRQHandler, // 134: ADCETC IRQ0 interrupt | ||
572 | ADC_ETC_IRQ1_IRQHandler, // 135: ADCETC IRQ1 interrupt | ||
573 | ADC_ETC_IRQ2_IRQHandler, // 136: ADCETC IRQ2 interrupt | ||
574 | ADC_ETC_ERROR_IRQ_IRQHandler, // 137: ADCETC Error IRQ interrupt | ||
575 | PIT_IRQHandler, // 138: PIT interrupt | ||
576 | ACMP1_IRQHandler, // 139: ACMP interrupt | ||
577 | ACMP2_IRQHandler, // 140: ACMP interrupt | ||
578 | ACMP3_IRQHandler, // 141: ACMP interrupt | ||
579 | ACMP4_IRQHandler, // 142: ACMP interrupt | ||
580 | Reserved143_IRQHandler, // 143: Reserved interrupt | ||
581 | Reserved144_IRQHandler, // 144: Reserved interrupt | ||
582 | ENC1_IRQHandler, // 145: ENC1 interrupt | ||
583 | ENC2_IRQHandler, // 146: ENC2 interrupt | ||
584 | ENC3_IRQHandler, // 147: ENC3 interrupt | ||
585 | ENC4_IRQHandler, // 148: ENC4 interrupt | ||
586 | TMR1_IRQHandler, // 149: TMR1 interrupt | ||
587 | TMR2_IRQHandler, // 150: TMR2 interrupt | ||
588 | TMR3_IRQHandler, // 151: TMR3 interrupt | ||
589 | TMR4_IRQHandler, // 152: TMR4 interrupt | ||
590 | PWM2_0_IRQHandler, // 153: PWM2 capture 0, compare 0, or reload 0 interrupt | ||
591 | PWM2_1_IRQHandler, // 154: PWM2 capture 1, compare 1, or reload 0 interrupt | ||
592 | PWM2_2_IRQHandler, // 155: PWM2 capture 2, compare 2, or reload 0 interrupt | ||
593 | PWM2_3_IRQHandler, // 156: PWM2 capture 3, compare 3, or reload 0 interrupt | ||
594 | PWM2_FAULT_IRQHandler, // 157: PWM2 fault or reload error interrupt | ||
595 | PWM3_0_IRQHandler, // 158: PWM3 capture 0, compare 0, or reload 0 interrupt | ||
596 | PWM3_1_IRQHandler, // 159: PWM3 capture 1, compare 1, or reload 0 interrupt | ||
597 | PWM3_2_IRQHandler, // 160: PWM3 capture 2, compare 2, or reload 0 interrupt | ||
598 | PWM3_3_IRQHandler, // 161: PWM3 capture 3, compare 3, or reload 0 interrupt | ||
599 | PWM3_FAULT_IRQHandler, // 162: PWM3 fault or reload error interrupt | ||
600 | PWM4_0_IRQHandler, // 163: PWM4 capture 0, compare 0, or reload 0 interrupt | ||
601 | PWM4_1_IRQHandler, // 164: PWM4 capture 1, compare 1, or reload 0 interrupt | ||
602 | PWM4_2_IRQHandler, // 165: PWM4 capture 2, compare 2, or reload 0 interrupt | ||
603 | PWM4_3_IRQHandler, // 166: PWM4 capture 3, compare 3, or reload 0 interrupt | ||
604 | PWM4_FAULT_IRQHandler, // 167: PWM4 fault or reload error interrupt | ||
605 | ENET2_IRQHandler, // 168: ENET2 interrupt | ||
606 | ENET2_1588_Timer_IRQHandler, // 169: ENET2_1588_Timer interrupt | ||
607 | CAN3_IRQHandler, // 170: CAN3 interrupt | ||
608 | Reserved171_IRQHandler, // 171: Reserved interrupt | ||
609 | FLEXIO3_IRQHandler, // 172: FLEXIO3 interrupt | ||
610 | GPIO6_7_8_9_IRQHandler, // 173: GPIO6, GPIO7, GPIO8, GPIO9 interrupt | ||
611 | |||
612 | |||
613 | }; /* End of g_pfnVectors */ | ||
614 | |||
615 | //***************************************************************************** | ||
616 | // Functions to carry out the initialization of RW and BSS data sections. These | ||
617 | // are written as separate functions rather than being inlined within the | ||
618 | // ResetISR() function in order to cope with MCUs with multiple banks of | ||
619 | // memory. | ||
620 | //***************************************************************************** | ||
621 | __attribute__ ((section(".after_vectors.init_data"))) | ||
622 | void data_init(unsigned int romstart, unsigned int start, unsigned int len) { | ||
623 | unsigned int *pulDest = (unsigned int*) start; | ||
624 | unsigned int *pulSrc = (unsigned int*) romstart; | ||
625 | unsigned int loop; | ||
626 | for (loop = 0; loop < len; loop = loop + 4) | ||
627 | *pulDest++ = *pulSrc++; | ||
628 | } | ||
629 | |||
630 | __attribute__ ((section(".after_vectors.init_bss"))) | ||
631 | void bss_init(unsigned int start, unsigned int len) { | ||
632 | unsigned int *pulDest = (unsigned int*) start; | ||
633 | unsigned int loop; | ||
634 | for (loop = 0; loop < len; loop = loop + 4) | ||
635 | *pulDest++ = 0; | ||
636 | } | ||
637 | |||
638 | //***************************************************************************** | ||
639 | // The following symbols are constructs generated by the linker, indicating | ||
640 | // the location of various points in the "Global Section Table". This table is | ||
641 | // created by the linker via the Code Red managed linker script mechanism. It | ||
642 | // contains the load address, execution address and length of each RW data | ||
643 | // section and the execution and length of each BSS (zero initialized) section. | ||
644 | //***************************************************************************** | ||
645 | extern unsigned int __data_section_table; | ||
646 | extern unsigned int __data_section_table_end; | ||
647 | extern unsigned int __bss_section_table; | ||
648 | extern unsigned int __bss_section_table_end; | ||
649 | |||
650 | //***************************************************************************** | ||
651 | // Reset entry point for your code. | ||
652 | // Sets up a simple runtime environment and initializes the C/C++ | ||
653 | // library. | ||
654 | //***************************************************************************** | ||
655 | __attribute__ ((section(".after_vectors.reset"))) | ||
656 | void ResetISR(void) { | ||
657 | |||
658 | // Disable interrupts | ||
659 | __asm volatile ("cpsid i"); | ||
660 | |||
661 | __asm volatile ("MSR MSP, %0" : : "r" (&_vStackTop) : ); | ||
662 | |||
663 | #if defined (__USE_CMSIS) | ||
664 | // If __USE_CMSIS defined, then call CMSIS SystemInit code | ||
665 | SystemInit(); | ||
666 | #else | ||
667 | // Disable Watchdog | ||
668 | volatile unsigned int *WDOG1_WCR = (unsigned int *) 0x400B8000; | ||
669 | *WDOG1_WCR = *WDOG1_WCR & ~(1 << 2); | ||
670 | volatile unsigned int *WDOG2_WCR = (unsigned int *) 0x400D0000; | ||
671 | *WDOG2_WCR = *WDOG2_WCR & ~(1 << 2); | ||
672 | // Write watchdog update key to unlock | ||
673 | *((volatile unsigned int *)0x400BC004) = 0xD928C520; | ||
674 | // Set timeout value | ||
675 | *((volatile unsigned int *)0x400BC008) = 0xFFFF; | ||
676 | // Now disable watchdog via control register | ||
677 | volatile unsigned int *RTWDOG_CS = (unsigned int *) 0x400BC000; | ||
678 | *RTWDOG_CS = (*RTWDOG_CS & ~(1 << 7)) | (1 << 5); | ||
679 | |||
680 | #endif // (__USE_CMSIS) | ||
681 | |||
682 | // | ||
683 | // Copy the data sections from flash to SRAM. | ||
684 | // | ||
685 | unsigned int LoadAddr, ExeAddr, SectionLen; | ||
686 | unsigned int *SectionTableAddr; | ||
687 | |||
688 | // Load base address of Global Section Table | ||
689 | SectionTableAddr = &__data_section_table; | ||
690 | |||
691 | // Copy the data sections from flash to SRAM. | ||
692 | while (SectionTableAddr < &__data_section_table_end) { | ||
693 | LoadAddr = *SectionTableAddr++; | ||
694 | ExeAddr = *SectionTableAddr++; | ||
695 | SectionLen = *SectionTableAddr++; | ||
696 | data_init(LoadAddr, ExeAddr, SectionLen); | ||
697 | } | ||
698 | |||
699 | // At this point, SectionTableAddr = &__bss_section_table; | ||
700 | // Zero fill the bss segment | ||
701 | while (SectionTableAddr < &__bss_section_table_end) { | ||
702 | ExeAddr = *SectionTableAddr++; | ||
703 | SectionLen = *SectionTableAddr++; | ||
704 | bss_init(ExeAddr, SectionLen); | ||
705 | } | ||
706 | |||
707 | |||
708 | #if !defined (__USE_CMSIS) | ||
709 | // Assume that if __USE_CMSIS defined, then CMSIS SystemInit code | ||
710 | // will setup the VTOR register | ||
711 | |||
712 | // Check to see if we are running the code from a non-zero | ||
713 | // address (eg RAM, external flash), in which case we need | ||
714 | // to modify the VTOR register to tell the CPU that the | ||
715 | // vector table is located at a non-0x0 address. | ||
716 | unsigned int * pSCB_VTOR = (unsigned int *) 0xE000ED08; | ||
717 | if ((unsigned int *)g_pfnVectors!=(unsigned int *) 0x00000000) { | ||
718 | *pSCB_VTOR = (unsigned int)g_pfnVectors; | ||
719 | } | ||
720 | #endif // (__USE_CMSIS) | ||
721 | #if defined (__cplusplus) | ||
722 | // | ||
723 | // Call C++ library initialisation | ||
724 | // | ||
725 | __libc_init_array(); | ||
726 | #endif | ||
727 | |||
728 | // Reenable interrupts | ||
729 | __asm volatile ("cpsie i"); | ||
730 | |||
731 | #if defined (__REDLIB__) | ||
732 | // Call the Redlib library, which in turn calls main() | ||
733 | __main(); | ||
734 | #else | ||
735 | main(); | ||
736 | #endif | ||
737 | |||
738 | // | ||
739 | // main() shouldn't return, but if it does, we'll just enter an infinite loop | ||
740 | // | ||
741 | while (1) { | ||
742 | ; | ||
743 | } | ||
744 | } | ||
745 | |||
746 | //***************************************************************************** | ||
747 | // Default core exception handlers. Override the ones here by defining your own | ||
748 | // handler routines in your application code. | ||
749 | //***************************************************************************** | ||
750 | WEAK_AV void NMI_Handler(void) | ||
751 | { while(1) {} | ||
752 | } | ||
753 | |||
754 | WEAK_AV void HardFault_Handler(void) | ||
755 | { while(1) {} | ||
756 | } | ||
757 | |||
758 | WEAK_AV void MemManage_Handler(void) | ||
759 | { while(1) {} | ||
760 | } | ||
761 | |||
762 | WEAK_AV void BusFault_Handler(void) | ||
763 | { while(1) {} | ||
764 | } | ||
765 | |||
766 | WEAK_AV void UsageFault_Handler(void) | ||
767 | { while(1) {} | ||
768 | } | ||
769 | |||
770 | WEAK_AV void SVC_Handler(void) | ||
771 | { while(1) {} | ||
772 | } | ||
773 | |||
774 | WEAK_AV void DebugMon_Handler(void) | ||
775 | { while(1) {} | ||
776 | } | ||
777 | |||
778 | WEAK_AV void PendSV_Handler(void) | ||
779 | { while(1) {} | ||
780 | } | ||
781 | |||
782 | WEAK_AV void SysTick_Handler(void) | ||
783 | { while(1) {} | ||
784 | } | ||
785 | |||
786 | //***************************************************************************** | ||
787 | // Processor ends up here if an unexpected interrupt occurs or a specific | ||
788 | // handler is not present in the application code. | ||
789 | //***************************************************************************** | ||
790 | WEAK_AV void IntDefaultHandler(void) | ||
791 | { while(1) {} | ||
792 | } | ||
793 | |||
794 | //***************************************************************************** | ||
795 | // Default application exception handlers. Override the ones here by defining | ||
796 | // your own handler routines in your application code. These routines call | ||
797 | // driver exception handlers or IntDefaultHandler() if no driver exception | ||
798 | // handler is included. | ||
799 | //***************************************************************************** | ||
800 | WEAK void DMA0_DMA16_IRQHandler(void) | ||
801 | { DMA0_DMA16_DriverIRQHandler(); | ||
802 | } | ||
803 | |||
804 | WEAK void DMA1_DMA17_IRQHandler(void) | ||
805 | { DMA1_DMA17_DriverIRQHandler(); | ||
806 | } | ||
807 | |||
808 | WEAK void DMA2_DMA18_IRQHandler(void) | ||
809 | { DMA2_DMA18_DriverIRQHandler(); | ||
810 | } | ||
811 | |||
812 | WEAK void DMA3_DMA19_IRQHandler(void) | ||
813 | { DMA3_DMA19_DriverIRQHandler(); | ||
814 | } | ||
815 | |||
816 | WEAK void DMA4_DMA20_IRQHandler(void) | ||
817 | { DMA4_DMA20_DriverIRQHandler(); | ||
818 | } | ||
819 | |||
820 | WEAK void DMA5_DMA21_IRQHandler(void) | ||
821 | { DMA5_DMA21_DriverIRQHandler(); | ||
822 | } | ||
823 | |||
824 | WEAK void DMA6_DMA22_IRQHandler(void) | ||
825 | { DMA6_DMA22_DriverIRQHandler(); | ||
826 | } | ||
827 | |||
828 | WEAK void DMA7_DMA23_IRQHandler(void) | ||
829 | { DMA7_DMA23_DriverIRQHandler(); | ||
830 | } | ||
831 | |||
832 | WEAK void DMA8_DMA24_IRQHandler(void) | ||
833 | { DMA8_DMA24_DriverIRQHandler(); | ||
834 | } | ||
835 | |||
836 | WEAK void DMA9_DMA25_IRQHandler(void) | ||
837 | { DMA9_DMA25_DriverIRQHandler(); | ||
838 | } | ||
839 | |||
840 | WEAK void DMA10_DMA26_IRQHandler(void) | ||
841 | { DMA10_DMA26_DriverIRQHandler(); | ||
842 | } | ||
843 | |||
844 | WEAK void DMA11_DMA27_IRQHandler(void) | ||
845 | { DMA11_DMA27_DriverIRQHandler(); | ||
846 | } | ||
847 | |||
848 | WEAK void DMA12_DMA28_IRQHandler(void) | ||
849 | { DMA12_DMA28_DriverIRQHandler(); | ||
850 | } | ||
851 | |||
852 | WEAK void DMA13_DMA29_IRQHandler(void) | ||
853 | { DMA13_DMA29_DriverIRQHandler(); | ||
854 | } | ||
855 | |||
856 | WEAK void DMA14_DMA30_IRQHandler(void) | ||
857 | { DMA14_DMA30_DriverIRQHandler(); | ||
858 | } | ||
859 | |||
860 | WEAK void DMA15_DMA31_IRQHandler(void) | ||
861 | { DMA15_DMA31_DriverIRQHandler(); | ||
862 | } | ||
863 | |||
864 | WEAK void DMA_ERROR_IRQHandler(void) | ||
865 | { DMA_ERROR_DriverIRQHandler(); | ||
866 | } | ||
867 | |||
868 | WEAK void CTI0_ERROR_IRQHandler(void) | ||
869 | { CTI0_ERROR_DriverIRQHandler(); | ||
870 | } | ||
871 | |||
872 | WEAK void CTI1_ERROR_IRQHandler(void) | ||
873 | { CTI1_ERROR_DriverIRQHandler(); | ||
874 | } | ||
875 | |||
876 | WEAK void CORE_IRQHandler(void) | ||
877 | { CORE_DriverIRQHandler(); | ||
878 | } | ||
879 | |||
880 | WEAK void LPUART1_IRQHandler(void) | ||
881 | { LPUART1_DriverIRQHandler(); | ||
882 | } | ||
883 | |||
884 | WEAK void LPUART2_IRQHandler(void) | ||
885 | { LPUART2_DriverIRQHandler(); | ||
886 | } | ||
887 | |||
888 | WEAK void LPUART3_IRQHandler(void) | ||
889 | { LPUART3_DriverIRQHandler(); | ||
890 | } | ||
891 | |||
892 | WEAK void LPUART4_IRQHandler(void) | ||
893 | { LPUART4_DriverIRQHandler(); | ||
894 | } | ||
895 | |||
896 | WEAK void LPUART5_IRQHandler(void) | ||
897 | { LPUART5_DriverIRQHandler(); | ||
898 | } | ||
899 | |||
900 | WEAK void LPUART6_IRQHandler(void) | ||
901 | { LPUART6_DriverIRQHandler(); | ||
902 | } | ||
903 | |||
904 | WEAK void LPUART7_IRQHandler(void) | ||
905 | { LPUART7_DriverIRQHandler(); | ||
906 | } | ||
907 | |||
908 | WEAK void LPUART8_IRQHandler(void) | ||
909 | { LPUART8_DriverIRQHandler(); | ||
910 | } | ||
911 | |||
912 | WEAK void LPI2C1_IRQHandler(void) | ||
913 | { LPI2C1_DriverIRQHandler(); | ||
914 | } | ||
915 | |||
916 | WEAK void LPI2C2_IRQHandler(void) | ||
917 | { LPI2C2_DriverIRQHandler(); | ||
918 | } | ||
919 | |||
920 | WEAK void LPI2C3_IRQHandler(void) | ||
921 | { LPI2C3_DriverIRQHandler(); | ||
922 | } | ||
923 | |||
924 | WEAK void LPI2C4_IRQHandler(void) | ||
925 | { LPI2C4_DriverIRQHandler(); | ||
926 | } | ||
927 | |||
928 | WEAK void LPSPI1_IRQHandler(void) | ||
929 | { LPSPI1_DriverIRQHandler(); | ||
930 | } | ||
931 | |||
932 | WEAK void LPSPI2_IRQHandler(void) | ||
933 | { LPSPI2_DriverIRQHandler(); | ||
934 | } | ||
935 | |||
936 | WEAK void LPSPI3_IRQHandler(void) | ||
937 | { LPSPI3_DriverIRQHandler(); | ||
938 | } | ||
939 | |||
940 | WEAK void LPSPI4_IRQHandler(void) | ||
941 | { LPSPI4_DriverIRQHandler(); | ||
942 | } | ||
943 | |||
944 | WEAK void CAN1_IRQHandler(void) | ||
945 | { CAN1_DriverIRQHandler(); | ||
946 | } | ||
947 | |||
948 | WEAK void CAN2_IRQHandler(void) | ||
949 | { CAN2_DriverIRQHandler(); | ||
950 | } | ||
951 | |||
952 | WEAK void FLEXRAM_IRQHandler(void) | ||
953 | { FLEXRAM_DriverIRQHandler(); | ||
954 | } | ||
955 | |||
956 | WEAK void KPP_IRQHandler(void) | ||
957 | { KPP_DriverIRQHandler(); | ||
958 | } | ||
959 | |||
960 | WEAK void TSC_DIG_IRQHandler(void) | ||
961 | { TSC_DIG_DriverIRQHandler(); | ||
962 | } | ||
963 | |||
964 | WEAK void GPR_IRQ_IRQHandler(void) | ||
965 | { GPR_IRQ_DriverIRQHandler(); | ||
966 | } | ||
967 | |||
968 | WEAK void Reserved58_IRQHandler(void) | ||
969 | { Reserved58_DriverIRQHandler(); | ||
970 | } | ||
971 | |||
972 | WEAK void Reserved59_IRQHandler(void) | ||
973 | { Reserved59_DriverIRQHandler(); | ||
974 | } | ||
975 | |||
976 | WEAK void Reserved60_IRQHandler(void) | ||
977 | { Reserved60_DriverIRQHandler(); | ||
978 | } | ||
979 | |||
980 | WEAK void WDOG2_IRQHandler(void) | ||
981 | { WDOG2_DriverIRQHandler(); | ||
982 | } | ||
983 | |||
984 | WEAK void SNVS_HP_WRAPPER_IRQHandler(void) | ||
985 | { SNVS_HP_WRAPPER_DriverIRQHandler(); | ||
986 | } | ||
987 | |||
988 | WEAK void SNVS_HP_WRAPPER_TZ_IRQHandler(void) | ||
989 | { SNVS_HP_WRAPPER_TZ_DriverIRQHandler(); | ||
990 | } | ||
991 | |||
992 | WEAK void SNVS_LP_WRAPPER_IRQHandler(void) | ||
993 | { SNVS_LP_WRAPPER_DriverIRQHandler(); | ||
994 | } | ||
995 | |||
996 | WEAK void CSU_IRQHandler(void) | ||
997 | { CSU_DriverIRQHandler(); | ||
998 | } | ||
999 | |||
1000 | WEAK void DCP_IRQHandler(void) | ||
1001 | { DCP_DriverIRQHandler(); | ||
1002 | } | ||
1003 | |||
1004 | WEAK void DCP_VMI_IRQHandler(void) | ||
1005 | { DCP_VMI_DriverIRQHandler(); | ||
1006 | } | ||
1007 | |||
1008 | WEAK void Reserved68_IRQHandler(void) | ||
1009 | { Reserved68_DriverIRQHandler(); | ||
1010 | } | ||
1011 | |||
1012 | WEAK void TRNG_IRQHandler(void) | ||
1013 | { TRNG_DriverIRQHandler(); | ||
1014 | } | ||
1015 | |||
1016 | WEAK void SJC_IRQHandler(void) | ||
1017 | { SJC_DriverIRQHandler(); | ||
1018 | } | ||
1019 | |||
1020 | WEAK void BEE_IRQHandler(void) | ||
1021 | { BEE_DriverIRQHandler(); | ||
1022 | } | ||
1023 | |||
1024 | WEAK void SAI1_IRQHandler(void) | ||
1025 | { SAI1_DriverIRQHandler(); | ||
1026 | } | ||
1027 | |||
1028 | WEAK void SAI2_IRQHandler(void) | ||
1029 | { SAI2_DriverIRQHandler(); | ||
1030 | } | ||
1031 | |||
1032 | WEAK void SAI3_RX_IRQHandler(void) | ||
1033 | { SAI3_RX_DriverIRQHandler(); | ||
1034 | } | ||
1035 | |||
1036 | WEAK void SAI3_TX_IRQHandler(void) | ||
1037 | { SAI3_TX_DriverIRQHandler(); | ||
1038 | } | ||
1039 | |||
1040 | WEAK void SPDIF_IRQHandler(void) | ||
1041 | { SPDIF_DriverIRQHandler(); | ||
1042 | } | ||
1043 | |||
1044 | WEAK void PMU_EVENT_IRQHandler(void) | ||
1045 | { PMU_EVENT_DriverIRQHandler(); | ||
1046 | } | ||
1047 | |||
1048 | WEAK void Reserved78_IRQHandler(void) | ||
1049 | { Reserved78_DriverIRQHandler(); | ||
1050 | } | ||
1051 | |||
1052 | WEAK void TEMP_LOW_HIGH_IRQHandler(void) | ||
1053 | { TEMP_LOW_HIGH_DriverIRQHandler(); | ||
1054 | } | ||
1055 | |||
1056 | WEAK void TEMP_PANIC_IRQHandler(void) | ||
1057 | { TEMP_PANIC_DriverIRQHandler(); | ||
1058 | } | ||
1059 | |||
1060 | WEAK void USB_PHY1_IRQHandler(void) | ||
1061 | { USB_PHY1_DriverIRQHandler(); | ||
1062 | } | ||
1063 | |||
1064 | WEAK void USB_PHY2_IRQHandler(void) | ||
1065 | { USB_PHY2_DriverIRQHandler(); | ||
1066 | } | ||
1067 | |||
1068 | WEAK void ADC1_IRQHandler(void) | ||
1069 | { ADC1_DriverIRQHandler(); | ||
1070 | } | ||
1071 | |||
1072 | WEAK void ADC2_IRQHandler(void) | ||
1073 | { ADC2_DriverIRQHandler(); | ||
1074 | } | ||
1075 | |||
1076 | WEAK void DCDC_IRQHandler(void) | ||
1077 | { DCDC_DriverIRQHandler(); | ||
1078 | } | ||
1079 | |||
1080 | WEAK void Reserved86_IRQHandler(void) | ||
1081 | { Reserved86_DriverIRQHandler(); | ||
1082 | } | ||
1083 | |||
1084 | WEAK void Reserved87_IRQHandler(void) | ||
1085 | { Reserved87_DriverIRQHandler(); | ||
1086 | } | ||
1087 | |||
1088 | WEAK void GPIO1_INT0_IRQHandler(void) | ||
1089 | { GPIO1_INT0_DriverIRQHandler(); | ||
1090 | } | ||
1091 | |||
1092 | WEAK void GPIO1_INT1_IRQHandler(void) | ||
1093 | { GPIO1_INT1_DriverIRQHandler(); | ||
1094 | } | ||
1095 | |||
1096 | WEAK void GPIO1_INT2_IRQHandler(void) | ||
1097 | { GPIO1_INT2_DriverIRQHandler(); | ||
1098 | } | ||
1099 | |||
1100 | WEAK void GPIO1_INT3_IRQHandler(void) | ||
1101 | { GPIO1_INT3_DriverIRQHandler(); | ||
1102 | } | ||
1103 | |||
1104 | WEAK void GPIO1_INT4_IRQHandler(void) | ||
1105 | { GPIO1_INT4_DriverIRQHandler(); | ||
1106 | } | ||
1107 | |||
1108 | WEAK void GPIO1_INT5_IRQHandler(void) | ||
1109 | { GPIO1_INT5_DriverIRQHandler(); | ||
1110 | } | ||
1111 | |||
1112 | WEAK void GPIO1_INT6_IRQHandler(void) | ||
1113 | { GPIO1_INT6_DriverIRQHandler(); | ||
1114 | } | ||
1115 | |||
1116 | WEAK void GPIO1_INT7_IRQHandler(void) | ||
1117 | { GPIO1_INT7_DriverIRQHandler(); | ||
1118 | } | ||
1119 | |||
1120 | WEAK void GPIO1_Combined_0_15_IRQHandler(void) | ||
1121 | { GPIO1_Combined_0_15_DriverIRQHandler(); | ||
1122 | } | ||
1123 | |||
1124 | WEAK void GPIO1_Combined_16_31_IRQHandler(void) | ||
1125 | { GPIO1_Combined_16_31_DriverIRQHandler(); | ||
1126 | } | ||
1127 | |||
1128 | WEAK void GPIO2_Combined_0_15_IRQHandler(void) | ||
1129 | { GPIO2_Combined_0_15_DriverIRQHandler(); | ||
1130 | } | ||
1131 | |||
1132 | WEAK void GPIO2_Combined_16_31_IRQHandler(void) | ||
1133 | { GPIO2_Combined_16_31_DriverIRQHandler(); | ||
1134 | } | ||
1135 | |||
1136 | WEAK void GPIO3_Combined_0_15_IRQHandler(void) | ||
1137 | { GPIO3_Combined_0_15_DriverIRQHandler(); | ||
1138 | } | ||
1139 | |||
1140 | WEAK void GPIO3_Combined_16_31_IRQHandler(void) | ||
1141 | { GPIO3_Combined_16_31_DriverIRQHandler(); | ||
1142 | } | ||
1143 | |||
1144 | WEAK void GPIO4_Combined_0_15_IRQHandler(void) | ||
1145 | { GPIO4_Combined_0_15_DriverIRQHandler(); | ||
1146 | } | ||
1147 | |||
1148 | WEAK void GPIO4_Combined_16_31_IRQHandler(void) | ||
1149 | { GPIO4_Combined_16_31_DriverIRQHandler(); | ||
1150 | } | ||
1151 | |||
1152 | WEAK void GPIO5_Combined_0_15_IRQHandler(void) | ||
1153 | { GPIO5_Combined_0_15_DriverIRQHandler(); | ||
1154 | } | ||
1155 | |||
1156 | WEAK void GPIO5_Combined_16_31_IRQHandler(void) | ||
1157 | { GPIO5_Combined_16_31_DriverIRQHandler(); | ||
1158 | } | ||
1159 | |||
1160 | WEAK void FLEXIO1_IRQHandler(void) | ||
1161 | { FLEXIO1_DriverIRQHandler(); | ||
1162 | } | ||
1163 | |||
1164 | WEAK void FLEXIO2_IRQHandler(void) | ||
1165 | { FLEXIO2_DriverIRQHandler(); | ||
1166 | } | ||
1167 | |||
1168 | WEAK void WDOG1_IRQHandler(void) | ||
1169 | { WDOG1_DriverIRQHandler(); | ||
1170 | } | ||
1171 | |||
1172 | WEAK void RTWDOG_IRQHandler(void) | ||
1173 | { RTWDOG_DriverIRQHandler(); | ||
1174 | } | ||
1175 | |||
1176 | WEAK void EWM_IRQHandler(void) | ||
1177 | { EWM_DriverIRQHandler(); | ||
1178 | } | ||
1179 | |||
1180 | WEAK void CCM_1_IRQHandler(void) | ||
1181 | { CCM_1_DriverIRQHandler(); | ||
1182 | } | ||
1183 | |||
1184 | WEAK void CCM_2_IRQHandler(void) | ||
1185 | { CCM_2_DriverIRQHandler(); | ||
1186 | } | ||
1187 | |||
1188 | WEAK void GPC_IRQHandler(void) | ||
1189 | { GPC_DriverIRQHandler(); | ||
1190 | } | ||
1191 | |||
1192 | WEAK void SRC_IRQHandler(void) | ||
1193 | { SRC_DriverIRQHandler(); | ||
1194 | } | ||
1195 | |||
1196 | WEAK void Reserved115_IRQHandler(void) | ||
1197 | { Reserved115_DriverIRQHandler(); | ||
1198 | } | ||
1199 | |||
1200 | WEAK void GPT1_IRQHandler(void) | ||
1201 | { GPT1_DriverIRQHandler(); | ||
1202 | } | ||
1203 | |||
1204 | WEAK void GPT2_IRQHandler(void) | ||
1205 | { GPT2_DriverIRQHandler(); | ||
1206 | } | ||
1207 | |||
1208 | WEAK void PWM1_0_IRQHandler(void) | ||
1209 | { PWM1_0_DriverIRQHandler(); | ||
1210 | } | ||
1211 | |||
1212 | WEAK void PWM1_1_IRQHandler(void) | ||
1213 | { PWM1_1_DriverIRQHandler(); | ||
1214 | } | ||
1215 | |||
1216 | WEAK void PWM1_2_IRQHandler(void) | ||
1217 | { PWM1_2_DriverIRQHandler(); | ||
1218 | } | ||
1219 | |||
1220 | WEAK void PWM1_3_IRQHandler(void) | ||
1221 | { PWM1_3_DriverIRQHandler(); | ||
1222 | } | ||
1223 | |||
1224 | WEAK void PWM1_FAULT_IRQHandler(void) | ||
1225 | { PWM1_FAULT_DriverIRQHandler(); | ||
1226 | } | ||
1227 | |||
1228 | WEAK void FLEXSPI2_IRQHandler(void) | ||
1229 | { FLEXSPI2_DriverIRQHandler(); | ||
1230 | } | ||
1231 | |||
1232 | WEAK void FLEXSPI_IRQHandler(void) | ||
1233 | { FLEXSPI_DriverIRQHandler(); | ||
1234 | } | ||
1235 | |||
1236 | WEAK void SEMC_IRQHandler(void) | ||
1237 | { SEMC_DriverIRQHandler(); | ||
1238 | } | ||
1239 | |||
1240 | WEAK void USDHC1_IRQHandler(void) | ||
1241 | { USDHC1_DriverIRQHandler(); | ||
1242 | } | ||
1243 | |||
1244 | WEAK void USDHC2_IRQHandler(void) | ||
1245 | { USDHC2_DriverIRQHandler(); | ||
1246 | } | ||
1247 | |||
1248 | WEAK void USB_OTG2_IRQHandler(void) | ||
1249 | { USB_OTG2_DriverIRQHandler(); | ||
1250 | } | ||
1251 | |||
1252 | WEAK void USB_OTG1_IRQHandler(void) | ||
1253 | { USB_OTG1_DriverIRQHandler(); | ||
1254 | } | ||
1255 | |||
1256 | WEAK void ENET_IRQHandler(void) | ||
1257 | { ENET_DriverIRQHandler(); | ||
1258 | } | ||
1259 | |||
1260 | WEAK void ENET_1588_Timer_IRQHandler(void) | ||
1261 | { ENET_1588_Timer_DriverIRQHandler(); | ||
1262 | } | ||
1263 | |||
1264 | WEAK void XBAR1_IRQ_0_1_IRQHandler(void) | ||
1265 | { XBAR1_IRQ_0_1_DriverIRQHandler(); | ||
1266 | } | ||
1267 | |||
1268 | WEAK void XBAR1_IRQ_2_3_IRQHandler(void) | ||
1269 | { XBAR1_IRQ_2_3_DriverIRQHandler(); | ||
1270 | } | ||
1271 | |||
1272 | WEAK void ADC_ETC_IRQ0_IRQHandler(void) | ||
1273 | { ADC_ETC_IRQ0_DriverIRQHandler(); | ||
1274 | } | ||
1275 | |||
1276 | WEAK void ADC_ETC_IRQ1_IRQHandler(void) | ||
1277 | { ADC_ETC_IRQ1_DriverIRQHandler(); | ||
1278 | } | ||
1279 | |||
1280 | WEAK void ADC_ETC_IRQ2_IRQHandler(void) | ||
1281 | { ADC_ETC_IRQ2_DriverIRQHandler(); | ||
1282 | } | ||
1283 | |||
1284 | WEAK void ADC_ETC_ERROR_IRQ_IRQHandler(void) | ||
1285 | { ADC_ETC_ERROR_IRQ_DriverIRQHandler(); | ||
1286 | } | ||
1287 | |||
1288 | WEAK void PIT_IRQHandler(void) | ||
1289 | { PIT_DriverIRQHandler(); | ||
1290 | } | ||
1291 | |||
1292 | WEAK void ACMP1_IRQHandler(void) | ||
1293 | { ACMP1_DriverIRQHandler(); | ||
1294 | } | ||
1295 | |||
1296 | WEAK void ACMP2_IRQHandler(void) | ||
1297 | { ACMP2_DriverIRQHandler(); | ||
1298 | } | ||
1299 | |||
1300 | WEAK void ACMP3_IRQHandler(void) | ||
1301 | { ACMP3_DriverIRQHandler(); | ||
1302 | } | ||
1303 | |||
1304 | WEAK void ACMP4_IRQHandler(void) | ||
1305 | { ACMP4_DriverIRQHandler(); | ||
1306 | } | ||
1307 | |||
1308 | WEAK void Reserved143_IRQHandler(void) | ||
1309 | { Reserved143_DriverIRQHandler(); | ||
1310 | } | ||
1311 | |||
1312 | WEAK void Reserved144_IRQHandler(void) | ||
1313 | { Reserved144_DriverIRQHandler(); | ||
1314 | } | ||
1315 | |||
1316 | WEAK void ENC1_IRQHandler(void) | ||
1317 | { ENC1_DriverIRQHandler(); | ||
1318 | } | ||
1319 | |||
1320 | WEAK void ENC2_IRQHandler(void) | ||
1321 | { ENC2_DriverIRQHandler(); | ||
1322 | } | ||
1323 | |||
1324 | WEAK void ENC3_IRQHandler(void) | ||
1325 | { ENC3_DriverIRQHandler(); | ||
1326 | } | ||
1327 | |||
1328 | WEAK void ENC4_IRQHandler(void) | ||
1329 | { ENC4_DriverIRQHandler(); | ||
1330 | } | ||
1331 | |||
1332 | WEAK void TMR1_IRQHandler(void) | ||
1333 | { TMR1_DriverIRQHandler(); | ||
1334 | } | ||
1335 | |||
1336 | WEAK void TMR2_IRQHandler(void) | ||
1337 | { TMR2_DriverIRQHandler(); | ||
1338 | } | ||
1339 | |||
1340 | WEAK void TMR3_IRQHandler(void) | ||
1341 | { TMR3_DriverIRQHandler(); | ||
1342 | } | ||
1343 | |||
1344 | WEAK void TMR4_IRQHandler(void) | ||
1345 | { TMR4_DriverIRQHandler(); | ||
1346 | } | ||
1347 | |||
1348 | WEAK void PWM2_0_IRQHandler(void) | ||
1349 | { PWM2_0_DriverIRQHandler(); | ||
1350 | } | ||
1351 | |||
1352 | WEAK void PWM2_1_IRQHandler(void) | ||
1353 | { PWM2_1_DriverIRQHandler(); | ||
1354 | } | ||
1355 | |||
1356 | WEAK void PWM2_2_IRQHandler(void) | ||
1357 | { PWM2_2_DriverIRQHandler(); | ||
1358 | } | ||
1359 | |||
1360 | WEAK void PWM2_3_IRQHandler(void) | ||
1361 | { PWM2_3_DriverIRQHandler(); | ||
1362 | } | ||
1363 | |||
1364 | WEAK void PWM2_FAULT_IRQHandler(void) | ||
1365 | { PWM2_FAULT_DriverIRQHandler(); | ||
1366 | } | ||
1367 | |||
1368 | WEAK void PWM3_0_IRQHandler(void) | ||
1369 | { PWM3_0_DriverIRQHandler(); | ||
1370 | } | ||
1371 | |||
1372 | WEAK void PWM3_1_IRQHandler(void) | ||
1373 | { PWM3_1_DriverIRQHandler(); | ||
1374 | } | ||
1375 | |||
1376 | WEAK void PWM3_2_IRQHandler(void) | ||
1377 | { PWM3_2_DriverIRQHandler(); | ||
1378 | } | ||
1379 | |||
1380 | WEAK void PWM3_3_IRQHandler(void) | ||
1381 | { PWM3_3_DriverIRQHandler(); | ||
1382 | } | ||
1383 | |||
1384 | WEAK void PWM3_FAULT_IRQHandler(void) | ||
1385 | { PWM3_FAULT_DriverIRQHandler(); | ||
1386 | } | ||
1387 | |||
1388 | WEAK void PWM4_0_IRQHandler(void) | ||
1389 | { PWM4_0_DriverIRQHandler(); | ||
1390 | } | ||
1391 | |||
1392 | WEAK void PWM4_1_IRQHandler(void) | ||
1393 | { PWM4_1_DriverIRQHandler(); | ||
1394 | } | ||
1395 | |||
1396 | WEAK void PWM4_2_IRQHandler(void) | ||
1397 | { PWM4_2_DriverIRQHandler(); | ||
1398 | } | ||
1399 | |||
1400 | WEAK void PWM4_3_IRQHandler(void) | ||
1401 | { PWM4_3_DriverIRQHandler(); | ||
1402 | } | ||
1403 | |||
1404 | WEAK void PWM4_FAULT_IRQHandler(void) | ||
1405 | { PWM4_FAULT_DriverIRQHandler(); | ||
1406 | } | ||
1407 | |||
1408 | WEAK void ENET2_IRQHandler(void) | ||
1409 | { ENET2_DriverIRQHandler(); | ||
1410 | } | ||
1411 | |||
1412 | WEAK void ENET2_1588_Timer_IRQHandler(void) | ||
1413 | { ENET2_1588_Timer_DriverIRQHandler(); | ||
1414 | } | ||
1415 | |||
1416 | WEAK void CAN3_IRQHandler(void) | ||
1417 | { CAN3_DriverIRQHandler(); | ||
1418 | } | ||
1419 | |||
1420 | WEAK void Reserved171_IRQHandler(void) | ||
1421 | { Reserved171_DriverIRQHandler(); | ||
1422 | } | ||
1423 | |||
1424 | WEAK void FLEXIO3_IRQHandler(void) | ||
1425 | { FLEXIO3_DriverIRQHandler(); | ||
1426 | } | ||
1427 | |||
1428 | WEAK void GPIO6_7_8_9_IRQHandler(void) | ||
1429 | { GPIO6_7_8_9_DriverIRQHandler(); | ||
1430 | } | ||
1431 | |||
1432 | //***************************************************************************** | ||
1433 | |||
1434 | #if defined (DEBUG) | ||
1435 | #pragma GCC pop_options | ||
1436 | #endif // (DEBUG) | ||