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