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