1/* ------------------------------------------------------------------------- */
2/*  @file:    startup_MCIMX7U5_cm4.s                                         */
3/*  @purpose: CMSIS Cortex-M4 Core Device Startup File                       */
4/*            MCIMX7U5_cm4                                                   */
5/*  @version: 7.0                                                            */
6/*  @date:    2018-11-5                                                      */
7/*  @build:   b200408                                                        */
8/* ------------------------------------------------------------------------- */
9/*                                                                           */
10/* Copyright 1997-2016 Freescale Semiconductor, Inc.                         */
11/* Copyright 2016-2020 NXP                                                   */
12/* All rights reserved.                                                      */
13/*                                                                           */
14/* SPDX-License-Identifier: BSD-3-Clause                                     */
15/*****************************************************************************/
16/* Version: GCC for ARM Embedded Processors                                  */
17/*****************************************************************************/
18    .syntax unified
19    .arch armv7-m
20
21    .section .isr_vector, "a"
22    .align 2
23    .globl __isr_vector
24__isr_vector:
25    .long   __StackTop                                      /* Top of Stack */
26    .long   Reset_Handler                                   /* Reset Handler */
27    .long   NMI_Handler                                     /* NMI Handler*/
28    .long   HardFault_Handler                               /* Hard Fault Handler*/
29    .long   MemManage_Handler                               /* MPU Fault Handler*/
30    .long   BusFault_Handler                                /* Bus Fault Handler*/
31    .long   UsageFault_Handler                              /* Usage Fault Handler*/
32    .long   0                                               /* Reserved*/
33    .long   0                                               /* Reserved*/
34    .long   0                                               /* Reserved*/
35    .long   0                                               /* Reserved*/
36    .long   SVC_Handler                                     /* SVCall Handler*/
37    .long   DebugMon_Handler                                /* Debug Monitor Handler*/
38    .long   0                                               /* Reserved*/
39    .long   PendSV_Handler                                  /* PendSV Handler*/
40    .long   SysTick_Handler                                 /* SysTick Handler*/
41
42                                                            /* External Interrupts*/
43    .long   CTI0_IRQHandler                                 /* Cross Trigger Interface for CM4*/
44    .long   DMA0_0_4_IRQHandler                             /* DMA Channel 0, 4 Transfer Complete*/
45    .long   DMA0_1_5_IRQHandler                             /* DMA Channel 1, 5 Transfer Complete*/
46    .long   DMA0_2_6_IRQHandler                             /* DMA Channel 2, 6 Transfer Complete*/
47    .long   DMA0_3_7_IRQHandler                             /* DMA Channel 3, 7 Transfer Complete*/
48    .long   DMA0_8_12_IRQHandler                            /* DMA Channel 8, 12 Transfer Complete*/
49    .long   DMA0_9_13_IRQHandler                            /* DMA Channel 9, 13 Transfer Complete*/
50    .long   DMA0_10_14_IRQHandler                           /* DMA Channel 10, 14 Transfer Complete*/
51    .long   DMA0_11_15_IRQHandler                           /* DMA Channel 11, 15 Transfer Complete*/
52    .long   DMA0_16_20_IRQHandler                           /* DMA Channel 16, 20 Transfer Complete*/
53    .long   DMA0_17_21_IRQHandler                           /* DMA Channel 17, 21 Transfer Complete*/
54    .long   DMA0_18_22_IRQHandler                           /* DMA Channel 18, 22 Transfer Complete*/
55    .long   DMA0_19_23_IRQHandler                           /* DMA Channel 19, 23 Transfer Complete*/
56    .long   DMA0_24_28_IRQHandler                           /* DMA Channel 24, 28 Transfer Complete*/
57    .long   DMA0_25_29_IRQHandler                           /* DMA Channel 25, 29 Transfer Complete*/
58    .long   DMA0_26_30_IRQHandler                           /* DMA Channel 26, 30 Transfer Complete*/
59    .long   DMA0_27_31_IRQHandler                           /* DMA Channel 27, 31 Transfer Complete*/
60    .long   DMA0_Error_IRQHandler                           /* DMA Error Interrupt - All Channels*/
61    .long   MCM0_IRQHandler                                 /* MCM Interrupt*/
62    .long   EWM_IRQHandler                                  /* External Watchdog Monitor Interrupt*/
63    .long   LLWU0_IRQHandler                                /* Low Leakage Wake Up*/
64    .long   SIM_IRQHandler                                  /* System Integation Module*/
65    .long   MU_A_IRQHandler                                 /* Messaging Unit - Side A*/
66    .long   Reserved39_IRQHandler                           /* Secured JTAG Controller*/
67    .long   Software1_IRQHandler                            /* Software Interrupt*/
68    .long   Software2_IRQHandler                            /* Software Interrupt*/
69    .long   WDOG0_IRQHandler                                /* Watchdog Interrupt*/
70    .long   SCG0_IRQHandler                                 /* System Clock Generator for M4 domain*/
71    .long   QSPI_IRQHandler                                 /* Quad Serial Peripheral Interface*/
72    .long   LTC_IRQHandler                                  /* Low Power Trusted Cryptography*/
73    .long   XRDC_IRQHandler                                 /* Extended Domain Resource Controller*/
74    .long   SNVS_IRQHandler                                 /* Secure Non-Volatile Storage Consolidated Interrupt*/
75    .long   TRNG0_IRQHandler                                /* Random Number Generator*/
76    .long   LPIT0_IRQHandler                                /* Low Power Periodic Interrupt Timer*/
77    .long   PMC0_IRQHandler                                 /* Power Management  Control interrupts for M4 domain*/
78    .long   CMC0_IRQHandler                                 /* Core Mode Controller interrupts for M4 domain*/
79    .long   LPTMR0_IRQHandler                               /* Low Power Timer*/
80    .long   LPTMR1_IRQHandler                               /* Low Power Timer*/
81    .long   TPM0_IRQHandler                                 /* Timer PWM module*/
82    .long   TPM1_IRQHandler                                 /* Timer PWM module*/
83    .long   TPM2_IRQHandler                                 /* Timer PWM module*/
84    .long   TPM3_IRQHandler                                 /* Timer PWM module*/
85    .long   FLEXIO0_IRQHandler                              /* Flexible IO*/
86    .long   LPI2C0_IRQHandler                               /* Inter-integrated circuit 0*/
87    .long   LPI2C1_IRQHandler                               /* Inter-integrated circuit 1*/
88    .long   LPI2C2_IRQHandler                               /* Inter-integrated circuit 2*/
89    .long   LPI2C3_IRQHandler                               /* Inter-integrated circuit 3*/
90    .long   I2S0_IRQHandler                                 /* Serial Audio Interface 0*/
91    .long   I2S1_IRQHandler                                 /* Serial Audio Interface 1*/
92    .long   LPSPI0_IRQHandler                               /* Low Power Serial Peripheral Interface*/
93    .long   LPSPI1_IRQHandler                               /* Low Power Serial Peripheral Interface*/
94    .long   LPUART0_IRQHandler                              /* Low Power UART*/
95    .long   LPUART1_IRQHandler                              /* Low Power UART*/
96    .long   LPUART2_IRQHandler                              /* Low Power UART*/
97    .long   LPUART3_IRQHandler                              /* Low Power UART*/
98    .long   DPM_IRQHandler                                  /* Dynamic Process Monitor*/
99    .long   PCTLA_IRQHandler                                /* Port A pin interrupt*/
100    .long   PCTLB_IRQHandler                                /* Port B pin interrupt*/
101    .long   ADC0_IRQHandler                                 /* Analog to Digital Convertor*/
102    .long   ADC1_IRQHandler                                 /* Analog to Digital Convertor*/
103    .long   CMP0_IRQHandler                                 /* Comparator*/
104    .long   CMP1_IRQHandler                                 /* Comparator*/
105    .long   DAC0_IRQHandler                                 /* Digital to Analog Convertor*/
106    .long   DAC1_IRQHandler                                 /* Digital to Analog Convertor*/
107    .long   WDOG1_IRQHandler                                /* Watchdog Interrupt from A7 subsystem*/
108    .long   USB0_IRQHandler                                 /* USB 0 Interrupt from A7 subsystem*/
109    .long   USB1_IRQHandler                                 /* USB 1 Interrupt from A7 subsystem*/
110    .long   Reserved83_IRQHandler                           /* */
111    .long   WDOG2_IRQHandler                                /* Watchdog Interrupt from A7 subsystem*/
112    .long   USBPHY_IRQHandler                               /* USB PHY (used in conjunction with USBOTG1)*/
113    .long   CMC1_IRQHandler                                 /* A7 resets*/
114    .long   Reserved87_IRQHandler                           /* Reserved interrupt*/
115    .long   Reserved88_IRQHandler                           /* Reserved interrupt*/
116    .long   Reserved89_IRQHandler                           /* Reserved interrupt*/
117    .long   Reserved90_IRQHandler                           /* Reserved interrupt*/
118    .long   GPU3D_IRQHandler                                /* Graphics Processing Unit 3D*/
119    .long   GPU2D_IRQHandler                                /* Graphics Processing Unit 2D*/
120    .long   Reserved93_IRQHandler                           /* Reserved interrupt*/
121    .long   Reserved94_IRQHandler                           /* Reserved interrupt*/
122    .long   Reserved95_IRQHandler                           /* Reserved interrupt*/
123    .long   Reserved96_IRQHandler                           /* Reserved interrupt*/
124    .long   Reserved97_IRQHandler                           /* Reserved interrupt*/
125    .long   Reserved98_IRQHandler                           /* Reserved interrupt*/
126    .long   Reserved99_IRQHandler                           /* Reserved interrupt*/
127    .long   Reserved100_IRQHandler                          /* Reserved interrupt*/
128    .long   Reserved101_IRQHandler                          /* Reserved interrupt*/
129    .long   Reserved102_IRQHandler                          /* Reserved interrupt*/
130    .long   Reserved103_IRQHandler                          /* Reserved interrupt*/
131    .long   Reserved104_IRQHandler                          /* Reserved interrupt*/
132    .long   Reserved105_IRQHandler                          /* Reserved interrupt*/
133    .long   Reserved106_IRQHandler                          /* Reserved interrupt*/
134    .long   Reserved107_IRQHandler                          /* Reserved interrupt*/
135    .long   Reserved108_IRQHandler                          /* Reserved interrupt*/
136    .long   Reserved109_IRQHandler                          /* Reserved interrupt*/
137    .long   Reserved110_IRQHandler                          /* Reserved interrupt*/
138    .long   Reserved111_IRQHandler                          /* Reserved interrupt*/
139    .long   Reserved112_IRQHandler                          /* Reserved interrupt*/
140    .long   Reserved113_IRQHandler                          /* Reserved interrupt*/
141    .long   Reserved114_IRQHandler                          /* Reserved interrupt*/
142    .long   Reserved115_IRQHandler                          /* Reserved interrupt*/
143    .long   Reserved116_IRQHandler                          /* Reserved interrupt*/
144    .long   Reserved117_IRQHandler                          /* Reserved interrupt*/
145    .long   Reserved118_IRQHandler                          /* Reserved interrupt*/
146    .long   Reserved119_IRQHandler                          /* Reserved interrupt*/
147    .long   Reserved120_IRQHandler                          /* Reserved interrupt*/
148    .long   Reserved121_IRQHandler                          /* Reserved interrupt*/
149    .long   Reserved122_IRQHandler                          /* Reserved interrupt*/
150    .long   Reserved123_IRQHandler                          /* Reserved interrupt*/
151    .long   Reserved124_IRQHandler                          /* Reserved interrupt*/
152    .long   Reserved125_IRQHandler                          /* Reserved interrupt*/
153    .long   Reserved126_IRQHandler                          /* Reserved interrupt*/
154    .long   Reserved127_IRQHandler                          /* Reserved interrupt*/
155    .long   Reserved128_IRQHandler                          /* Reserved interrupt*/
156    .long   Reserved129_IRQHandler                          /* Reserved interrupt*/
157    .long   Reserved130_IRQHandler                          /* Reserved interrupt*/
158    .long   Reserved131_IRQHandler                          /* Reserved interrupt*/
159    .long   Reserved132_IRQHandler                          /* Reserved interrupt*/
160    .long   Reserved133_IRQHandler                          /* Reserved interrupt*/
161    .long   Reserved134_IRQHandler                          /* Reserved interrupt*/
162    .long   Reserved135_IRQHandler                          /* Reserved interrupt*/
163    .long   Reserved136_IRQHandler                          /* Reserved interrupt*/
164    .long   Reserved137_IRQHandler                          /* Reserved interrupt*/
165    .long   Reserved138_IRQHandler                          /* Reserved interrupt*/
166    .long   Reserved139_IRQHandler                          /* Reserved interrupt*/
167    .long   Reserved140_IRQHandler                          /* Reserved interrupt*/
168    .long   Reserved141_IRQHandler                          /* Reserved interrupt*/
169    .long   Reserved142_IRQHandler                          /* Reserved interrupt*/
170    .long   Reserved143_IRQHandler                          /* Reserved interrupt*/
171
172    .size    __isr_vector, . - __isr_vector
173
174    .text
175    .thumb
176
177/* Reset Handler */
178
179    .thumb_func
180    .align 2
181    .globl   Reset_Handler
182    .weak    Reset_Handler
183    .type    Reset_Handler, %function
184Reset_Handler:
185    cpsid   i               /* Mask interrupts */
186    .equ    VTOR, 0xE000ED08
187    ldr     r0, =VTOR
188    ldr     r1, =__isr_vector
189    str     r1, [r0]
190    ldr     r2, [r1]
191    msr     msp, r2
192#ifndef __NO_SYSTEM_INIT
193    ldr   r0,=SystemInit
194    blx   r0
195#endif
196/*     Loop to copy data from read only memory to RAM. The ranges
197 *      of copy from/to are specified by following symbols evaluated in
198 *      linker script.
199 *      __etext: End of code section, i.e., begin of data sections to copy from.
200 *      __data_start__/__data_end__: RAM address range that data should be
201 *      copied to. Both must be aligned to 4 bytes boundary.  */
202
203    ldr    r1, =__etext
204    ldr    r2, =__data_start__
205    ldr    r3, =__data_end__
206
207#ifdef __PERFORMANCE_IMPLEMENTATION
208/* Here are two copies of loop implementations. First one favors performance
209 * and the second one favors code size. Default uses the second one.
210 * Define macro "__PERFORMANCE_IMPLEMENTATION" in project to use the first one */
211    subs    r3, r2
212    ble    .LC1
213.LC0:
214    subs    r3, #4
215    ldr    r0, [r1, r3]
216    str    r0, [r2, r3]
217    bgt    .LC0
218.LC1:
219#else  /* code size implemenation */
220.LC0:
221    cmp     r2, r3
222    ittt    lt
223    ldrlt   r0, [r1], #4
224    strlt   r0, [r2], #4
225    blt    .LC0
226#endif
227
228#ifdef __STARTUP_CLEAR_BSS
229/*     This part of work usually is done in C library startup code. Otherwise,
230 *     define this macro to enable it in this startup.
231 *
232 *     Loop to zero out BSS section, which uses following symbols
233 *     in linker script:
234 *      __bss_start__: start of BSS section. Must align to 4
235 *      __bss_end__: end of BSS section. Must align to 4
236 */
237    ldr r1, =__bss_start__
238    ldr r2, =__bss_end__
239
240    movs    r0, 0
241.LC2:
242    cmp     r1, r2
243    itt    lt
244    strlt   r0, [r1], #4
245    blt    .LC2
246#endif /* __STARTUP_CLEAR_BSS */
247
248    cpsie   i               /* Unmask interrupts */
249#ifndef __START
250#define __START _start
251#endif
252#ifndef __ATOLLIC__
253    ldr   r0,=__START
254    blx   r0
255#else
256    ldr   r0,=__libc_init_array
257    blx   r0
258    ldr   r0,=main
259    bx    r0
260#endif
261    .pool
262    .size Reset_Handler, . - Reset_Handler
263
264    .align  1
265    .thumb_func
266    .weak DefaultISR
267    .type DefaultISR, %function
268DefaultISR:
269    b DefaultISR
270    .size DefaultISR, . - DefaultISR
271
272    .align 1
273    .thumb_func
274    .weak NMI_Handler
275    .type NMI_Handler, %function
276NMI_Handler:
277    ldr   r0,=NMI_Handler
278    bx    r0
279    .size NMI_Handler, . - NMI_Handler
280
281    .align 1
282    .thumb_func
283    .weak HardFault_Handler
284    .type HardFault_Handler, %function
285HardFault_Handler:
286    ldr   r0,=HardFault_Handler
287    bx    r0
288    .size HardFault_Handler, . - HardFault_Handler
289
290    .align 1
291    .thumb_func
292    .weak SVC_Handler
293    .type SVC_Handler, %function
294SVC_Handler:
295    ldr   r0,=SVC_Handler
296    bx    r0
297    .size SVC_Handler, . - SVC_Handler
298
299    .align 1
300    .thumb_func
301    .weak PendSV_Handler
302    .type PendSV_Handler, %function
303PendSV_Handler:
304    ldr   r0,=PendSV_Handler
305    bx    r0
306    .size PendSV_Handler, . - PendSV_Handler
307
308    .align 1
309    .thumb_func
310    .weak SysTick_Handler
311    .type SysTick_Handler, %function
312SysTick_Handler:
313    ldr   r0,=SysTick_Handler
314    bx    r0
315    .size SysTick_Handler, . - SysTick_Handler
316
317    .align 1
318    .thumb_func
319    .weak DMA0_0_4_IRQHandler
320    .type DMA0_0_4_IRQHandler, %function
321DMA0_0_4_IRQHandler:
322    ldr   r0,=DMA0_0_4_DriverIRQHandler
323    bx    r0
324    .size DMA0_0_4_IRQHandler, . - DMA0_0_4_IRQHandler
325
326    .align 1
327    .thumb_func
328    .weak DMA0_1_5_IRQHandler
329    .type DMA0_1_5_IRQHandler, %function
330DMA0_1_5_IRQHandler:
331    ldr   r0,=DMA0_1_5_DriverIRQHandler
332    bx    r0
333    .size DMA0_1_5_IRQHandler, . - DMA0_1_5_IRQHandler
334
335    .align 1
336    .thumb_func
337    .weak DMA0_2_6_IRQHandler
338    .type DMA0_2_6_IRQHandler, %function
339DMA0_2_6_IRQHandler:
340    ldr   r0,=DMA0_2_6_DriverIRQHandler
341    bx    r0
342    .size DMA0_2_6_IRQHandler, . - DMA0_2_6_IRQHandler
343
344    .align 1
345    .thumb_func
346    .weak DMA0_3_7_IRQHandler
347    .type DMA0_3_7_IRQHandler, %function
348DMA0_3_7_IRQHandler:
349    ldr   r0,=DMA0_3_7_DriverIRQHandler
350    bx    r0
351    .size DMA0_3_7_IRQHandler, . - DMA0_3_7_IRQHandler
352
353    .align 1
354    .thumb_func
355    .weak DMA0_8_12_IRQHandler
356    .type DMA0_8_12_IRQHandler, %function
357DMA0_8_12_IRQHandler:
358    ldr   r0,=DMA0_8_12_DriverIRQHandler
359    bx    r0
360    .size DMA0_8_12_IRQHandler, . - DMA0_8_12_IRQHandler
361
362    .align 1
363    .thumb_func
364    .weak DMA0_9_13_IRQHandler
365    .type DMA0_9_13_IRQHandler, %function
366DMA0_9_13_IRQHandler:
367    ldr   r0,=DMA0_9_13_DriverIRQHandler
368    bx    r0
369    .size DMA0_9_13_IRQHandler, . - DMA0_9_13_IRQHandler
370
371    .align 1
372    .thumb_func
373    .weak DMA0_10_14_IRQHandler
374    .type DMA0_10_14_IRQHandler, %function
375DMA0_10_14_IRQHandler:
376    ldr   r0,=DMA0_10_14_DriverIRQHandler
377    bx    r0
378    .size DMA0_10_14_IRQHandler, . - DMA0_10_14_IRQHandler
379
380    .align 1
381    .thumb_func
382    .weak DMA0_11_15_IRQHandler
383    .type DMA0_11_15_IRQHandler, %function
384DMA0_11_15_IRQHandler:
385    ldr   r0,=DMA0_11_15_DriverIRQHandler
386    bx    r0
387    .size DMA0_11_15_IRQHandler, . - DMA0_11_15_IRQHandler
388
389    .align 1
390    .thumb_func
391    .weak DMA0_16_20_IRQHandler
392    .type DMA0_16_20_IRQHandler, %function
393DMA0_16_20_IRQHandler:
394    ldr   r0,=DMA0_16_20_DriverIRQHandler
395    bx    r0
396    .size DMA0_16_20_IRQHandler, . - DMA0_16_20_IRQHandler
397
398    .align 1
399    .thumb_func
400    .weak DMA0_17_21_IRQHandler
401    .type DMA0_17_21_IRQHandler, %function
402DMA0_17_21_IRQHandler:
403    ldr   r0,=DMA0_17_21_DriverIRQHandler
404    bx    r0
405    .size DMA0_17_21_IRQHandler, . - DMA0_17_21_IRQHandler
406
407    .align 1
408    .thumb_func
409    .weak DMA0_18_22_IRQHandler
410    .type DMA0_18_22_IRQHandler, %function
411DMA0_18_22_IRQHandler:
412    ldr   r0,=DMA0_18_22_DriverIRQHandler
413    bx    r0
414    .size DMA0_18_22_IRQHandler, . - DMA0_18_22_IRQHandler
415
416    .align 1
417    .thumb_func
418    .weak DMA0_19_23_IRQHandler
419    .type DMA0_19_23_IRQHandler, %function
420DMA0_19_23_IRQHandler:
421    ldr   r0,=DMA0_19_23_DriverIRQHandler
422    bx    r0
423    .size DMA0_19_23_IRQHandler, . - DMA0_19_23_IRQHandler
424
425    .align 1
426    .thumb_func
427    .weak DMA0_24_28_IRQHandler
428    .type DMA0_24_28_IRQHandler, %function
429DMA0_24_28_IRQHandler:
430    ldr   r0,=DMA0_24_28_DriverIRQHandler
431    bx    r0
432    .size DMA0_24_28_IRQHandler, . - DMA0_24_28_IRQHandler
433
434    .align 1
435    .thumb_func
436    .weak DMA0_25_29_IRQHandler
437    .type DMA0_25_29_IRQHandler, %function
438DMA0_25_29_IRQHandler:
439    ldr   r0,=DMA0_25_29_DriverIRQHandler
440    bx    r0
441    .size DMA0_25_29_IRQHandler, . - DMA0_25_29_IRQHandler
442
443    .align 1
444    .thumb_func
445    .weak DMA0_26_30_IRQHandler
446    .type DMA0_26_30_IRQHandler, %function
447DMA0_26_30_IRQHandler:
448    ldr   r0,=DMA0_26_30_DriverIRQHandler
449    bx    r0
450    .size DMA0_26_30_IRQHandler, . - DMA0_26_30_IRQHandler
451
452    .align 1
453    .thumb_func
454    .weak DMA0_27_31_IRQHandler
455    .type DMA0_27_31_IRQHandler, %function
456DMA0_27_31_IRQHandler:
457    ldr   r0,=DMA0_27_31_DriverIRQHandler
458    bx    r0
459    .size DMA0_27_31_IRQHandler, . - DMA0_27_31_IRQHandler
460
461    .align 1
462    .thumb_func
463    .weak DMA0_Error_IRQHandler
464    .type DMA0_Error_IRQHandler, %function
465DMA0_Error_IRQHandler:
466    ldr   r0,=DMA0_Error_DriverIRQHandler
467    bx    r0
468    .size DMA0_Error_IRQHandler, . - DMA0_Error_IRQHandler
469
470    .align 1
471    .thumb_func
472    .weak QSPI_IRQHandler
473    .type QSPI_IRQHandler, %function
474QSPI_IRQHandler:
475    ldr   r0,=QSPI_DriverIRQHandler
476    bx    r0
477    .size QSPI_IRQHandler, . - QSPI_IRQHandler
478
479    .align 1
480    .thumb_func
481    .weak FLEXIO0_IRQHandler
482    .type FLEXIO0_IRQHandler, %function
483FLEXIO0_IRQHandler:
484    ldr   r0,=FLEXIO0_DriverIRQHandler
485    bx    r0
486    .size FLEXIO0_IRQHandler, . - FLEXIO0_IRQHandler
487
488    .align 1
489    .thumb_func
490    .weak LPI2C0_IRQHandler
491    .type LPI2C0_IRQHandler, %function
492LPI2C0_IRQHandler:
493    ldr   r0,=LPI2C0_DriverIRQHandler
494    bx    r0
495    .size LPI2C0_IRQHandler, . - LPI2C0_IRQHandler
496
497    .align 1
498    .thumb_func
499    .weak LPI2C1_IRQHandler
500    .type LPI2C1_IRQHandler, %function
501LPI2C1_IRQHandler:
502    ldr   r0,=LPI2C1_DriverIRQHandler
503    bx    r0
504    .size LPI2C1_IRQHandler, . - LPI2C1_IRQHandler
505
506    .align 1
507    .thumb_func
508    .weak LPI2C2_IRQHandler
509    .type LPI2C2_IRQHandler, %function
510LPI2C2_IRQHandler:
511    ldr   r0,=LPI2C2_DriverIRQHandler
512    bx    r0
513    .size LPI2C2_IRQHandler, . - LPI2C2_IRQHandler
514
515    .align 1
516    .thumb_func
517    .weak LPI2C3_IRQHandler
518    .type LPI2C3_IRQHandler, %function
519LPI2C3_IRQHandler:
520    ldr   r0,=LPI2C3_DriverIRQHandler
521    bx    r0
522    .size LPI2C3_IRQHandler, . - LPI2C3_IRQHandler
523
524    .align 1
525    .thumb_func
526    .weak I2S0_IRQHandler
527    .type I2S0_IRQHandler, %function
528I2S0_IRQHandler:
529    ldr   r0,=I2S0_DriverIRQHandler
530    bx    r0
531    .size I2S0_IRQHandler, . - I2S0_IRQHandler
532
533    .align 1
534    .thumb_func
535    .weak I2S1_IRQHandler
536    .type I2S1_IRQHandler, %function
537I2S1_IRQHandler:
538    ldr   r0,=I2S1_DriverIRQHandler
539    bx    r0
540    .size I2S1_IRQHandler, . - I2S1_IRQHandler
541
542    .align 1
543    .thumb_func
544    .weak LPSPI0_IRQHandler
545    .type LPSPI0_IRQHandler, %function
546LPSPI0_IRQHandler:
547    ldr   r0,=LPSPI0_DriverIRQHandler
548    bx    r0
549    .size LPSPI0_IRQHandler, . - LPSPI0_IRQHandler
550
551    .align 1
552    .thumb_func
553    .weak LPSPI1_IRQHandler
554    .type LPSPI1_IRQHandler, %function
555LPSPI1_IRQHandler:
556    ldr   r0,=LPSPI1_DriverIRQHandler
557    bx    r0
558    .size LPSPI1_IRQHandler, . - LPSPI1_IRQHandler
559
560    .align 1
561    .thumb_func
562    .weak LPUART0_IRQHandler
563    .type LPUART0_IRQHandler, %function
564LPUART0_IRQHandler:
565    ldr   r0,=LPUART0_DriverIRQHandler
566    bx    r0
567    .size LPUART0_IRQHandler, . - LPUART0_IRQHandler
568
569    .align 1
570    .thumb_func
571    .weak LPUART1_IRQHandler
572    .type LPUART1_IRQHandler, %function
573LPUART1_IRQHandler:
574    ldr   r0,=LPUART1_DriverIRQHandler
575    bx    r0
576    .size LPUART1_IRQHandler, . - LPUART1_IRQHandler
577
578    .align 1
579    .thumb_func
580    .weak LPUART2_IRQHandler
581    .type LPUART2_IRQHandler, %function
582LPUART2_IRQHandler:
583    ldr   r0,=LPUART2_DriverIRQHandler
584    bx    r0
585    .size LPUART2_IRQHandler, . - LPUART2_IRQHandler
586
587    .align 1
588    .thumb_func
589    .weak LPUART3_IRQHandler
590    .type LPUART3_IRQHandler, %function
591LPUART3_IRQHandler:
592    ldr   r0,=LPUART3_DriverIRQHandler
593    bx    r0
594    .size LPUART3_IRQHandler, . - LPUART3_IRQHandler
595
596
597/*    Macro to define default handlers. Default handler
598 *    will be weak symbol and just dead loops. They can be
599 *    overwritten by other handlers */
600    .macro def_irq_handler  handler_name
601    .weak \handler_name
602    .set  \handler_name, DefaultISR
603    .endm
604
605/* Exception Handlers */
606    def_irq_handler    MemManage_Handler
607    def_irq_handler    BusFault_Handler
608    def_irq_handler    UsageFault_Handler
609    def_irq_handler    DebugMon_Handler
610    def_irq_handler    CTI0_IRQHandler
611    def_irq_handler    DMA0_0_4_DriverIRQHandler
612    def_irq_handler    DMA0_1_5_DriverIRQHandler
613    def_irq_handler    DMA0_2_6_DriverIRQHandler
614    def_irq_handler    DMA0_3_7_DriverIRQHandler
615    def_irq_handler    DMA0_8_12_DriverIRQHandler
616    def_irq_handler    DMA0_9_13_DriverIRQHandler
617    def_irq_handler    DMA0_10_14_DriverIRQHandler
618    def_irq_handler    DMA0_11_15_DriverIRQHandler
619    def_irq_handler    DMA0_16_20_DriverIRQHandler
620    def_irq_handler    DMA0_17_21_DriverIRQHandler
621    def_irq_handler    DMA0_18_22_DriverIRQHandler
622    def_irq_handler    DMA0_19_23_DriverIRQHandler
623    def_irq_handler    DMA0_24_28_DriverIRQHandler
624    def_irq_handler    DMA0_25_29_DriverIRQHandler
625    def_irq_handler    DMA0_26_30_DriverIRQHandler
626    def_irq_handler    DMA0_27_31_DriverIRQHandler
627    def_irq_handler    DMA0_Error_DriverIRQHandler
628    def_irq_handler    MCM0_IRQHandler
629    def_irq_handler    EWM_IRQHandler
630    def_irq_handler    LLWU0_IRQHandler
631    def_irq_handler    SIM_IRQHandler
632    def_irq_handler    MU_A_IRQHandler
633    def_irq_handler    Reserved39_IRQHandler
634    def_irq_handler    Software1_IRQHandler
635    def_irq_handler    Software2_IRQHandler
636    def_irq_handler    WDOG0_IRQHandler
637    def_irq_handler    SCG0_IRQHandler
638    def_irq_handler    QSPI_DriverIRQHandler
639    def_irq_handler    LTC_IRQHandler
640    def_irq_handler    XRDC_IRQHandler
641    def_irq_handler    SNVS_IRQHandler
642    def_irq_handler    TRNG0_IRQHandler
643    def_irq_handler    LPIT0_IRQHandler
644    def_irq_handler    PMC0_IRQHandler
645    def_irq_handler    CMC0_IRQHandler
646    def_irq_handler    LPTMR0_IRQHandler
647    def_irq_handler    LPTMR1_IRQHandler
648    def_irq_handler    TPM0_IRQHandler
649    def_irq_handler    TPM1_IRQHandler
650    def_irq_handler    TPM2_IRQHandler
651    def_irq_handler    TPM3_IRQHandler
652    def_irq_handler    FLEXIO0_DriverIRQHandler
653    def_irq_handler    LPI2C0_DriverIRQHandler
654    def_irq_handler    LPI2C1_DriverIRQHandler
655    def_irq_handler    LPI2C2_DriverIRQHandler
656    def_irq_handler    LPI2C3_DriverIRQHandler
657    def_irq_handler    I2S0_DriverIRQHandler
658    def_irq_handler    I2S1_DriverIRQHandler
659    def_irq_handler    LPSPI0_DriverIRQHandler
660    def_irq_handler    LPSPI1_DriverIRQHandler
661    def_irq_handler    LPUART0_DriverIRQHandler
662    def_irq_handler    LPUART1_DriverIRQHandler
663    def_irq_handler    LPUART2_DriverIRQHandler
664    def_irq_handler    LPUART3_DriverIRQHandler
665    def_irq_handler    DPM_IRQHandler
666    def_irq_handler    PCTLA_IRQHandler
667    def_irq_handler    PCTLB_IRQHandler
668    def_irq_handler    ADC0_IRQHandler
669    def_irq_handler    ADC1_IRQHandler
670    def_irq_handler    CMP0_IRQHandler
671    def_irq_handler    CMP1_IRQHandler
672    def_irq_handler    DAC0_IRQHandler
673    def_irq_handler    DAC1_IRQHandler
674    def_irq_handler    WDOG1_IRQHandler
675    def_irq_handler    USB0_IRQHandler
676    def_irq_handler    USB1_IRQHandler
677    def_irq_handler    Reserved83_IRQHandler
678    def_irq_handler    WDOG2_IRQHandler
679    def_irq_handler    USBPHY_IRQHandler
680    def_irq_handler    CMC1_IRQHandler
681    def_irq_handler    Reserved87_IRQHandler
682    def_irq_handler    Reserved88_IRQHandler
683    def_irq_handler    Reserved89_IRQHandler
684    def_irq_handler    Reserved90_IRQHandler
685    def_irq_handler    GPU3D_IRQHandler
686    def_irq_handler    GPU2D_IRQHandler
687    def_irq_handler    Reserved93_IRQHandler
688    def_irq_handler    Reserved94_IRQHandler
689    def_irq_handler    Reserved95_IRQHandler
690    def_irq_handler    Reserved96_IRQHandler
691    def_irq_handler    Reserved97_IRQHandler
692    def_irq_handler    Reserved98_IRQHandler
693    def_irq_handler    Reserved99_IRQHandler
694    def_irq_handler    Reserved100_IRQHandler
695    def_irq_handler    Reserved101_IRQHandler
696    def_irq_handler    Reserved102_IRQHandler
697    def_irq_handler    Reserved103_IRQHandler
698    def_irq_handler    Reserved104_IRQHandler
699    def_irq_handler    Reserved105_IRQHandler
700    def_irq_handler    Reserved106_IRQHandler
701    def_irq_handler    Reserved107_IRQHandler
702    def_irq_handler    Reserved108_IRQHandler
703    def_irq_handler    Reserved109_IRQHandler
704    def_irq_handler    Reserved110_IRQHandler
705    def_irq_handler    Reserved111_IRQHandler
706    def_irq_handler    Reserved112_IRQHandler
707    def_irq_handler    Reserved113_IRQHandler
708    def_irq_handler    Reserved114_IRQHandler
709    def_irq_handler    Reserved115_IRQHandler
710    def_irq_handler    Reserved116_IRQHandler
711    def_irq_handler    Reserved117_IRQHandler
712    def_irq_handler    Reserved118_IRQHandler
713    def_irq_handler    Reserved119_IRQHandler
714    def_irq_handler    Reserved120_IRQHandler
715    def_irq_handler    Reserved121_IRQHandler
716    def_irq_handler    Reserved122_IRQHandler
717    def_irq_handler    Reserved123_IRQHandler
718    def_irq_handler    Reserved124_IRQHandler
719    def_irq_handler    Reserved125_IRQHandler
720    def_irq_handler    Reserved126_IRQHandler
721    def_irq_handler    Reserved127_IRQHandler
722    def_irq_handler    Reserved128_IRQHandler
723    def_irq_handler    Reserved129_IRQHandler
724    def_irq_handler    Reserved130_IRQHandler
725    def_irq_handler    Reserved131_IRQHandler
726    def_irq_handler    Reserved132_IRQHandler
727    def_irq_handler    Reserved133_IRQHandler
728    def_irq_handler    Reserved134_IRQHandler
729    def_irq_handler    Reserved135_IRQHandler
730    def_irq_handler    Reserved136_IRQHandler
731    def_irq_handler    Reserved137_IRQHandler
732    def_irq_handler    Reserved138_IRQHandler
733    def_irq_handler    Reserved139_IRQHandler
734    def_irq_handler    Reserved140_IRQHandler
735    def_irq_handler    Reserved141_IRQHandler
736    def_irq_handler    Reserved142_IRQHandler
737    def_irq_handler    Reserved143_IRQHandler
738
739    .end
740