aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/ext/mcux-sdk/devices/LPC5516/mcuxpresso/startup_lpc5516.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/ext/mcux-sdk/devices/LPC5516/mcuxpresso/startup_lpc5516.cpp')
-rw-r--r--lib/chibios-contrib/ext/mcux-sdk/devices/LPC5516/mcuxpresso/startup_lpc5516.cpp755
1 files changed, 755 insertions, 0 deletions
diff --git a/lib/chibios-contrib/ext/mcux-sdk/devices/LPC5516/mcuxpresso/startup_lpc5516.cpp b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC5516/mcuxpresso/startup_lpc5516.cpp
new file mode 100644
index 000000000..11b9b65b4
--- /dev/null
+++ b/lib/chibios-contrib/ext/mcux-sdk/devices/LPC5516/mcuxpresso/startup_lpc5516.cpp
@@ -0,0 +1,755 @@
1//*****************************************************************************
2// LPC5516 startup code for use with MCUXpresso IDE
3//
4// Version : 210220
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 SecureFault_Handler(void);
70WEAK void SVC_Handler(void);
71WEAK void DebugMon_Handler(void);
72WEAK void PendSV_Handler(void);
73WEAK void SysTick_Handler(void);
74WEAK void IntDefaultHandler(void);
75
76//*****************************************************************************
77// Forward declaration of the application IRQ handlers. When the application
78// defines a handler (with the same name), this will automatically take
79// precedence over weak definitions below
80//*****************************************************************************
81WEAK void WDT_BOD_IRQHandler(void);
82WEAK void DMA0_IRQHandler(void);
83WEAK void GINT0_IRQHandler(void);
84WEAK void GINT1_IRQHandler(void);
85WEAK void PIN_INT0_IRQHandler(void);
86WEAK void PIN_INT1_IRQHandler(void);
87WEAK void PIN_INT2_IRQHandler(void);
88WEAK void PIN_INT3_IRQHandler(void);
89WEAK void UTICK0_IRQHandler(void);
90WEAK void MRT0_IRQHandler(void);
91WEAK void CTIMER0_IRQHandler(void);
92WEAK void CTIMER1_IRQHandler(void);
93WEAK void SCT0_IRQHandler(void);
94WEAK void CTIMER3_IRQHandler(void);
95WEAK void FLEXCOMM0_IRQHandler(void);
96WEAK void FLEXCOMM1_IRQHandler(void);
97WEAK void FLEXCOMM2_IRQHandler(void);
98WEAK void FLEXCOMM3_IRQHandler(void);
99WEAK void FLEXCOMM4_IRQHandler(void);
100WEAK void FLEXCOMM5_IRQHandler(void);
101WEAK void FLEXCOMM6_IRQHandler(void);
102WEAK void FLEXCOMM7_IRQHandler(void);
103WEAK void ADC0_IRQHandler(void);
104WEAK void Reserved39_IRQHandler(void);
105WEAK void ACMP_IRQHandler(void);
106WEAK void Reserved41_IRQHandler(void);
107WEAK void Reserved42_IRQHandler(void);
108WEAK void USB0_NEEDCLK_IRQHandler(void);
109WEAK void USB0_IRQHandler(void);
110WEAK void RTC_IRQHandler(void);
111WEAK void Reserved46_IRQHandler(void);
112WEAK void Reserved47_IRQHandler(void);
113WEAK void PIN_INT4_IRQHandler(void);
114WEAK void PIN_INT5_IRQHandler(void);
115WEAK void PIN_INT6_IRQHandler(void);
116WEAK void PIN_INT7_IRQHandler(void);
117WEAK void CTIMER2_IRQHandler(void);
118WEAK void CTIMER4_IRQHandler(void);
119WEAK void OS_EVENT_IRQHandler(void);
120WEAK void Reserved55_IRQHandler(void);
121WEAK void Reserved56_IRQHandler(void);
122WEAK void Reserved57_IRQHandler(void);
123WEAK void Reserved58_IRQHandler(void);
124WEAK void CAN0_IRQ0_IRQHandler(void);
125WEAK void CAN0_IRQ1_IRQHandler(void);
126WEAK void Reserved61_IRQHandler(void);
127WEAK void USB1_PHY_IRQHandler(void);
128WEAK void USB1_IRQHandler(void);
129WEAK void USB1_NEEDCLK_IRQHandler(void);
130WEAK void SEC_HYPERVISOR_CALL_IRQHandler(void);
131WEAK void SEC_GPIO_INT0_IRQ0_IRQHandler(void);
132WEAK void SEC_GPIO_INT0_IRQ1_IRQHandler(void);
133WEAK void PLU_IRQHandler(void);
134WEAK void SEC_VIO_IRQHandler(void);
135WEAK void Reserved70_IRQHandler(void);
136WEAK void CASER_IRQHandler(void);
137WEAK void PUF_IRQHandler(void);
138WEAK void Reserved73_IRQHandler(void);
139WEAK void DMA1_IRQHandler(void);
140WEAK void FLEXCOMM8_IRQHandler(void);
141WEAK void CodeWDG_IRQHandler(void);
142
143//*****************************************************************************
144// Forward declaration of the driver IRQ handlers. These are aliased
145// to the IntDefaultHandler, which is a 'forever' loop. When the driver
146// defines a handler (with the same name), this will automatically take
147// precedence over these weak definitions
148//*****************************************************************************
149void WDT_BOD_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
150void DMA0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
151void GINT0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
152void GINT1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
153void PIN_INT0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
154void PIN_INT1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
155void PIN_INT2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
156void PIN_INT3_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
157void UTICK0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
158void MRT0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
159void CTIMER0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
160void CTIMER1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
161void SCT0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
162void CTIMER3_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
163void FLEXCOMM0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
164void FLEXCOMM1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
165void FLEXCOMM2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
166void FLEXCOMM3_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
167void FLEXCOMM4_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
168void FLEXCOMM5_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
169void FLEXCOMM6_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
170void FLEXCOMM7_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
171void ADC0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
172void Reserved39_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
173void ACMP_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
174void Reserved41_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
175void Reserved42_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
176void USB0_NEEDCLK_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
177void USB0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
178void RTC_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
179void Reserved46_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
180void Reserved47_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
181void PIN_INT4_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
182void PIN_INT5_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
183void PIN_INT6_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
184void PIN_INT7_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
185void CTIMER2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
186void CTIMER4_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
187void OS_EVENT_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
188void Reserved55_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
189void Reserved56_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
190void Reserved57_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
191void Reserved58_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
192void CAN0_IRQ0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
193void CAN0_IRQ1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
194void Reserved61_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
195void USB1_PHY_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
196void USB1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
197void USB1_NEEDCLK_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
198void SEC_HYPERVISOR_CALL_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
199void SEC_GPIO_INT0_IRQ0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
200void SEC_GPIO_INT0_IRQ1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
201void PLU_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
202void SEC_VIO_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
203void Reserved70_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
204void CASER_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
205void PUF_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
206void Reserved73_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
207void DMA1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
208void FLEXCOMM8_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
209void CodeWDG_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
210
211//*****************************************************************************
212// The entry point for the application.
213// __main() is the entry point for Redlib based applications
214// main() is the entry point for Newlib based applications
215//*****************************************************************************
216#if defined (__REDLIB__)
217extern void __main(void);
218#endif
219extern int main(void);
220
221//*****************************************************************************
222// External declaration for the pointer to the stack top from the Linker Script
223//*****************************************************************************
224extern void _vStackTop(void);
225//*****************************************************************************
226// External declaration for LPC MCU vector table checksum from Linker Script
227//*****************************************************************************
228WEAK extern void __valid_user_code_checksum();
229
230//*****************************************************************************
231//*****************************************************************************
232#if defined (__cplusplus)
233} // extern "C"
234#endif
235//*****************************************************************************
236// The vector table.
237// This relies on the linker script to place at correct location in memory.
238//*****************************************************************************
239
240
241
242extern void (* const g_pfnVectors[])(void);
243extern void * __Vectors __attribute__ ((alias ("g_pfnVectors")));
244
245__attribute__ ((used, section(".isr_vector")))
246void (* const g_pfnVectors[])(void) = {
247 // Core Level - CM33
248 &_vStackTop, // The initial stack pointer
249 ResetISR, // The reset handler
250 NMI_Handler, // The NMI handler
251 HardFault_Handler, // The hard fault handler
252 MemManage_Handler, // The MPU fault handler
253 BusFault_Handler, // The bus fault handler
254 UsageFault_Handler, // The usage fault handler
255 SecureFault_Handler, // The secure fault handler
256 0, // ECRP
257 0, // Reserved
258 0, // Reserved
259 SVC_Handler, // SVCall handler
260 DebugMon_Handler, // Debug monitor handler
261 0, // Reserved
262 PendSV_Handler, // The PendSV handler
263 SysTick_Handler, // The SysTick handler
264
265 // Chip Level - LPC5516
266 WDT_BOD_IRQHandler, // 16: Windowed watchdog timer, Brownout detect, Flash interrupt
267 DMA0_IRQHandler, // 17: DMA0 controller
268 GINT0_IRQHandler, // 18: GPIO group 0
269 GINT1_IRQHandler, // 19: GPIO group 1
270 PIN_INT0_IRQHandler, // 20: Pin interrupt 0 or pattern match engine slice 0
271 PIN_INT1_IRQHandler, // 21: Pin interrupt 1or pattern match engine slice 1
272 PIN_INT2_IRQHandler, // 22: Pin interrupt 2 or pattern match engine slice 2
273 PIN_INT3_IRQHandler, // 23: Pin interrupt 3 or pattern match engine slice 3
274 UTICK0_IRQHandler, // 24: Micro-tick Timer
275 MRT0_IRQHandler, // 25: Multi-rate timer
276 CTIMER0_IRQHandler, // 26: Standard counter/timer CTIMER0
277 CTIMER1_IRQHandler, // 27: Standard counter/timer CTIMER1
278 SCT0_IRQHandler, // 28: SCTimer/PWM
279 CTIMER3_IRQHandler, // 29: Standard counter/timer CTIMER3
280 FLEXCOMM0_IRQHandler, // 30: Flexcomm Interface 0 (USART, SPI, I2C, I2S, FLEXCOMM)
281 FLEXCOMM1_IRQHandler, // 31: Flexcomm Interface 1 (USART, SPI, I2C, I2S, FLEXCOMM)
282 FLEXCOMM2_IRQHandler, // 32: Flexcomm Interface 2 (USART, SPI, I2C, I2S, FLEXCOMM)
283 FLEXCOMM3_IRQHandler, // 33: Flexcomm Interface 3 (USART, SPI, I2C, I2S, FLEXCOMM)
284 FLEXCOMM4_IRQHandler, // 34: Flexcomm Interface 4 (USART, SPI, I2C, I2S, FLEXCOMM)
285 FLEXCOMM5_IRQHandler, // 35: Flexcomm Interface 5 (USART, SPI, I2C, I2S, FLEXCOMM)
286 FLEXCOMM6_IRQHandler, // 36: Flexcomm Interface 6 (USART, SPI, I2C, I2S, FLEXCOMM)
287 FLEXCOMM7_IRQHandler, // 37: Flexcomm Interface 7 (USART, SPI, I2C, I2S, FLEXCOMM)
288 ADC0_IRQHandler, // 38: ADC0
289 Reserved39_IRQHandler, // 39: Reserved interrupt
290 ACMP_IRQHandler, // 40: ACMP interrupts
291 Reserved41_IRQHandler, // 41: Reserved interrupt
292 Reserved42_IRQHandler, // 42: Reserved interrupt
293 USB0_NEEDCLK_IRQHandler, // 43: USB Activity Wake-up Interrupt
294 USB0_IRQHandler, // 44: USB device
295 RTC_IRQHandler, // 45: RTC alarm and wake-up interrupts
296 Reserved46_IRQHandler, // 46: Reserved interrupt
297 Reserved47_IRQHandler, // 47: Reserved interrupt
298 PIN_INT4_IRQHandler, // 48: Pin interrupt 4 or pattern match engine slice 4 int
299 PIN_INT5_IRQHandler, // 49: Pin interrupt 5 or pattern match engine slice 5 int
300 PIN_INT6_IRQHandler, // 50: Pin interrupt 6 or pattern match engine slice 6 int
301 PIN_INT7_IRQHandler, // 51: Pin interrupt 7 or pattern match engine slice 7 int
302 CTIMER2_IRQHandler, // 52: Standard counter/timer CTIMER2
303 CTIMER4_IRQHandler, // 53: Standard counter/timer CTIMER4
304 OS_EVENT_IRQHandler, // 54: OS_EVENT_TIMER and OS_EVENT_WAKEUP interrupts
305 Reserved55_IRQHandler, // 55: Reserved interrupt
306 Reserved56_IRQHandler, // 56: Reserved interrupt
307 Reserved57_IRQHandler, // 57: Reserved interrupt
308 Reserved58_IRQHandler, // 58: Reserved interrupt
309 CAN0_IRQ0_IRQHandler, // 59: CAN0 interrupt0
310 CAN0_IRQ1_IRQHandler, // 60: CAN0 interrupt1
311 Reserved61_IRQHandler, // 61: Reserved interrupt
312 USB1_PHY_IRQHandler, // 62: USB1_PHY
313 USB1_IRQHandler, // 63: USB1 interrupt
314 USB1_NEEDCLK_IRQHandler, // 64: USB1 activity
315 SEC_HYPERVISOR_CALL_IRQHandler, // 65: SEC_HYPERVISOR_CALL interrupt
316 SEC_GPIO_INT0_IRQ0_IRQHandler, // 66: SEC_GPIO_INT0_IRQ0 interrupt
317 SEC_GPIO_INT0_IRQ1_IRQHandler, // 67: SEC_GPIO_INT0_IRQ1 interrupt
318 PLU_IRQHandler, // 68: PLU interrupt
319 SEC_VIO_IRQHandler, // 69: SEC_VIO interrupt
320 Reserved70_IRQHandler, // 70: Reserved interrupt
321 CASER_IRQHandler, // 71: CASPER interrupt
322 PUF_IRQHandler, // 72: PUF interrupt
323 Reserved73_IRQHandler, // 73: Reserved interrupt
324 DMA1_IRQHandler, // 74: DMA1 interrupt
325 FLEXCOMM8_IRQHandler, // 75: Flexcomm Interface 8 (SPI, , FLEXCOMM)
326 CodeWDG_IRQHandler, // 76: CodeWDG interrupt
327
328
329}; /* End of g_pfnVectors */
330
331//*****************************************************************************
332// Functions to carry out the initialization of RW and BSS data sections. These
333// are written as separate functions rather than being inlined within the
334// ResetISR() function in order to cope with MCUs with multiple banks of
335// memory.
336//*****************************************************************************
337__attribute__ ((section(".after_vectors.init_data")))
338void data_init(unsigned int romstart, unsigned int start, unsigned int len) {
339 unsigned int *pulDest = (unsigned int*) start;
340 unsigned int *pulSrc = (unsigned int*) romstart;
341 unsigned int loop;
342 for (loop = 0; loop < len; loop = loop + 4)
343 *pulDest++ = *pulSrc++;
344}
345
346__attribute__ ((section(".after_vectors.init_bss")))
347void bss_init(unsigned int start, unsigned int len) {
348 unsigned int *pulDest = (unsigned int*) start;
349 unsigned int loop;
350 for (loop = 0; loop < len; loop = loop + 4)
351 *pulDest++ = 0;
352}
353
354//*****************************************************************************
355// The following symbols are constructs generated by the linker, indicating
356// the location of various points in the "Global Section Table". This table is
357// created by the linker via the Code Red managed linker script mechanism. It
358// contains the load address, execution address and length of each RW data
359// section and the execution and length of each BSS (zero initialized) section.
360//*****************************************************************************
361extern unsigned int __data_section_table;
362extern unsigned int __data_section_table_end;
363extern unsigned int __bss_section_table;
364extern unsigned int __bss_section_table_end;
365
366//*****************************************************************************
367// Reset entry point for your code.
368// Sets up a simple runtime environment and initializes the C/C++
369// library.
370//*****************************************************************************
371__attribute__ ((section(".after_vectors.reset")))
372void ResetISR(void) {
373
374 // Disable interrupts
375 __asm volatile ("cpsid i");
376
377
378
379#if defined (__USE_CMSIS)
380// If __USE_CMSIS defined, then call CMSIS SystemInit code
381 SystemInit();
382
383#endif // (__USE_CMSIS)
384
385 //
386 // Copy the data sections from flash to SRAM.
387 //
388 unsigned int LoadAddr, ExeAddr, SectionLen;
389 unsigned int *SectionTableAddr;
390
391 // Load base address of Global Section Table
392 SectionTableAddr = &__data_section_table;
393
394 // Copy the data sections from flash to SRAM.
395 while (SectionTableAddr < &__data_section_table_end) {
396 LoadAddr = *SectionTableAddr++;
397 ExeAddr = *SectionTableAddr++;
398 SectionLen = *SectionTableAddr++;
399 data_init(LoadAddr, ExeAddr, SectionLen);
400 }
401
402 // At this point, SectionTableAddr = &__bss_section_table;
403 // Zero fill the bss segment
404 while (SectionTableAddr < &__bss_section_table_end) {
405 ExeAddr = *SectionTableAddr++;
406 SectionLen = *SectionTableAddr++;
407 bss_init(ExeAddr, SectionLen);
408 }
409
410
411#if !defined (__USE_CMSIS)
412// Assume that if __USE_CMSIS defined, then CMSIS SystemInit code
413// will setup the VTOR register
414
415 // Check to see if we are running the code from a non-zero
416 // address (eg RAM, external flash), in which case we need
417 // to modify the VTOR register to tell the CPU that the
418 // vector table is located at a non-0x0 address.
419 unsigned int * pSCB_VTOR = (unsigned int *) 0xE000ED08;
420 if ((unsigned int *)g_pfnVectors!=(unsigned int *) 0x00000000) {
421 *pSCB_VTOR = (unsigned int)g_pfnVectors;
422 }
423#endif // (__USE_CMSIS)
424#if defined (__cplusplus)
425 //
426 // Call C++ library initialisation
427 //
428 __libc_init_array();
429#endif
430
431 // Reenable interrupts
432 __asm volatile ("cpsie i");
433
434#if defined (__REDLIB__)
435 // Call the Redlib library, which in turn calls main()
436 __main();
437#else
438 main();
439#endif
440
441 //
442 // main() shouldn't return, but if it does, we'll just enter an infinite loop
443 //
444 while (1) {
445 ;
446 }
447}
448
449//*****************************************************************************
450// Default core exception handlers. Override the ones here by defining your own
451// handler routines in your application code.
452//*****************************************************************************
453WEAK_AV void NMI_Handler(void)
454{ while(1) {}
455}
456
457WEAK_AV void HardFault_Handler(void)
458{ while(1) {}
459}
460
461WEAK_AV void MemManage_Handler(void)
462{ while(1) {}
463}
464
465WEAK_AV void BusFault_Handler(void)
466{ while(1) {}
467}
468
469WEAK_AV void UsageFault_Handler(void)
470{ while(1) {}
471}
472
473WEAK_AV void SecureFault_Handler(void)
474{ while(1) {}
475}
476
477WEAK_AV void SVC_Handler(void)
478{ while(1) {}
479}
480
481WEAK_AV void DebugMon_Handler(void)
482{ while(1) {}
483}
484
485WEAK_AV void PendSV_Handler(void)
486{ while(1) {}
487}
488
489WEAK_AV void SysTick_Handler(void)
490{ while(1) {}
491}
492
493//*****************************************************************************
494// Processor ends up here if an unexpected interrupt occurs or a specific
495// handler is not present in the application code.
496//*****************************************************************************
497WEAK_AV void IntDefaultHandler(void)
498{ while(1) {}
499}
500
501//*****************************************************************************
502// Default application exception handlers. Override the ones here by defining
503// your own handler routines in your application code. These routines call
504// driver exception handlers or IntDefaultHandler() if no driver exception
505// handler is included.
506//*****************************************************************************
507WEAK void WDT_BOD_IRQHandler(void)
508{ WDT_BOD_DriverIRQHandler();
509}
510
511WEAK void DMA0_IRQHandler(void)
512{ DMA0_DriverIRQHandler();
513}
514
515WEAK void GINT0_IRQHandler(void)
516{ GINT0_DriverIRQHandler();
517}
518
519WEAK void GINT1_IRQHandler(void)
520{ GINT1_DriverIRQHandler();
521}
522
523WEAK void PIN_INT0_IRQHandler(void)
524{ PIN_INT0_DriverIRQHandler();
525}
526
527WEAK void PIN_INT1_IRQHandler(void)
528{ PIN_INT1_DriverIRQHandler();
529}
530
531WEAK void PIN_INT2_IRQHandler(void)
532{ PIN_INT2_DriverIRQHandler();
533}
534
535WEAK void PIN_INT3_IRQHandler(void)
536{ PIN_INT3_DriverIRQHandler();
537}
538
539WEAK void UTICK0_IRQHandler(void)
540{ UTICK0_DriverIRQHandler();
541}
542
543WEAK void MRT0_IRQHandler(void)
544{ MRT0_DriverIRQHandler();
545}
546
547WEAK void CTIMER0_IRQHandler(void)
548{ CTIMER0_DriverIRQHandler();
549}
550
551WEAK void CTIMER1_IRQHandler(void)
552{ CTIMER1_DriverIRQHandler();
553}
554
555WEAK void SCT0_IRQHandler(void)
556{ SCT0_DriverIRQHandler();
557}
558
559WEAK void CTIMER3_IRQHandler(void)
560{ CTIMER3_DriverIRQHandler();
561}
562
563WEAK void FLEXCOMM0_IRQHandler(void)
564{ FLEXCOMM0_DriverIRQHandler();
565}
566
567WEAK void FLEXCOMM1_IRQHandler(void)
568{ FLEXCOMM1_DriverIRQHandler();
569}
570
571WEAK void FLEXCOMM2_IRQHandler(void)
572{ FLEXCOMM2_DriverIRQHandler();
573}
574
575WEAK void FLEXCOMM3_IRQHandler(void)
576{ FLEXCOMM3_DriverIRQHandler();
577}
578
579WEAK void FLEXCOMM4_IRQHandler(void)
580{ FLEXCOMM4_DriverIRQHandler();
581}
582
583WEAK void FLEXCOMM5_IRQHandler(void)
584{ FLEXCOMM5_DriverIRQHandler();
585}
586
587WEAK void FLEXCOMM6_IRQHandler(void)
588{ FLEXCOMM6_DriverIRQHandler();
589}
590
591WEAK void FLEXCOMM7_IRQHandler(void)
592{ FLEXCOMM7_DriverIRQHandler();
593}
594
595WEAK void ADC0_IRQHandler(void)
596{ ADC0_DriverIRQHandler();
597}
598
599WEAK void Reserved39_IRQHandler(void)
600{ Reserved39_DriverIRQHandler();
601}
602
603WEAK void ACMP_IRQHandler(void)
604{ ACMP_DriverIRQHandler();
605}
606
607WEAK void Reserved41_IRQHandler(void)
608{ Reserved41_DriverIRQHandler();
609}
610
611WEAK void Reserved42_IRQHandler(void)
612{ Reserved42_DriverIRQHandler();
613}
614
615WEAK void USB0_NEEDCLK_IRQHandler(void)
616{ USB0_NEEDCLK_DriverIRQHandler();
617}
618
619WEAK void USB0_IRQHandler(void)
620{ USB0_DriverIRQHandler();
621}
622
623WEAK void RTC_IRQHandler(void)
624{ RTC_DriverIRQHandler();
625}
626
627WEAK void Reserved46_IRQHandler(void)
628{ Reserved46_DriverIRQHandler();
629}
630
631WEAK void Reserved47_IRQHandler(void)
632{ Reserved47_DriverIRQHandler();
633}
634
635WEAK void PIN_INT4_IRQHandler(void)
636{ PIN_INT4_DriverIRQHandler();
637}
638
639WEAK void PIN_INT5_IRQHandler(void)
640{ PIN_INT5_DriverIRQHandler();
641}
642
643WEAK void PIN_INT6_IRQHandler(void)
644{ PIN_INT6_DriverIRQHandler();
645}
646
647WEAK void PIN_INT7_IRQHandler(void)
648{ PIN_INT7_DriverIRQHandler();
649}
650
651WEAK void CTIMER2_IRQHandler(void)
652{ CTIMER2_DriverIRQHandler();
653}
654
655WEAK void CTIMER4_IRQHandler(void)
656{ CTIMER4_DriverIRQHandler();
657}
658
659WEAK void OS_EVENT_IRQHandler(void)
660{ OS_EVENT_DriverIRQHandler();
661}
662
663WEAK void Reserved55_IRQHandler(void)
664{ Reserved55_DriverIRQHandler();
665}
666
667WEAK void Reserved56_IRQHandler(void)
668{ Reserved56_DriverIRQHandler();
669}
670
671WEAK void Reserved57_IRQHandler(void)
672{ Reserved57_DriverIRQHandler();
673}
674
675WEAK void Reserved58_IRQHandler(void)
676{ Reserved58_DriverIRQHandler();
677}
678
679WEAK void CAN0_IRQ0_IRQHandler(void)
680{ CAN0_IRQ0_DriverIRQHandler();
681}
682
683WEAK void CAN0_IRQ1_IRQHandler(void)
684{ CAN0_IRQ1_DriverIRQHandler();
685}
686
687WEAK void Reserved61_IRQHandler(void)
688{ Reserved61_DriverIRQHandler();
689}
690
691WEAK void USB1_PHY_IRQHandler(void)
692{ USB1_PHY_DriverIRQHandler();
693}
694
695WEAK void USB1_IRQHandler(void)
696{ USB1_DriverIRQHandler();
697}
698
699WEAK void USB1_NEEDCLK_IRQHandler(void)
700{ USB1_NEEDCLK_DriverIRQHandler();
701}
702
703WEAK void SEC_HYPERVISOR_CALL_IRQHandler(void)
704{ SEC_HYPERVISOR_CALL_DriverIRQHandler();
705}
706
707WEAK void SEC_GPIO_INT0_IRQ0_IRQHandler(void)
708{ SEC_GPIO_INT0_IRQ0_DriverIRQHandler();
709}
710
711WEAK void SEC_GPIO_INT0_IRQ1_IRQHandler(void)
712{ SEC_GPIO_INT0_IRQ1_DriverIRQHandler();
713}
714
715WEAK void PLU_IRQHandler(void)
716{ PLU_DriverIRQHandler();
717}
718
719WEAK void SEC_VIO_IRQHandler(void)
720{ SEC_VIO_DriverIRQHandler();
721}
722
723WEAK void Reserved70_IRQHandler(void)
724{ Reserved70_DriverIRQHandler();
725}
726
727WEAK void CASER_IRQHandler(void)
728{ CASER_DriverIRQHandler();
729}
730
731WEAK void PUF_IRQHandler(void)
732{ PUF_DriverIRQHandler();
733}
734
735WEAK void Reserved73_IRQHandler(void)
736{ Reserved73_DriverIRQHandler();
737}
738
739WEAK void DMA1_IRQHandler(void)
740{ DMA1_DriverIRQHandler();
741}
742
743WEAK void FLEXCOMM8_IRQHandler(void)
744{ FLEXCOMM8_DriverIRQHandler();
745}
746
747WEAK void CodeWDG_IRQHandler(void)
748{ CodeWDG_DriverIRQHandler();
749}
750
751//*****************************************************************************
752
753#if defined (DEBUG)
754#pragma GCC pop_options
755#endif // (DEBUG)