1 //*****************************************************************************
2 // MKV56F24 startup code for use with MCUXpresso IDE
3 //
4 // Version : 160420
5 //*****************************************************************************
6 //
7 // Copyright 2016-2020 NXP
8 // All rights reserved.
9 //
10 // SPDX-License-Identifier: BSD-3-Clause
11 //*****************************************************************************
12
13 #if defined (DEBUG)
14 #pragma GCC push_options
15 #pragma GCC optimize ("Og")
16 #endif // (DEBUG)
17
18 #if defined (__cplusplus)
19 #ifdef __REDLIB__
20 #error Redlib does not support C++
21 #else
22 //*****************************************************************************
23 //
24 // The entry point for the C++ library startup
25 //
26 //*****************************************************************************
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 // Flash Configuration block : 16-byte flash configuration field that stores
44 // default protection settings (loaded on reset) and security information that
45 // allows the MCU to restrict access to the Flash Memory module.
46 // Placed at address 0x400 by the linker script.
47 //*****************************************************************************
48 __attribute__ ((used,section(".FlashConfig"))) const struct {
49 unsigned int word1;
50 unsigned int word2;
51 unsigned int word3;
52 unsigned int word4;
53 } Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFE};
54 //*****************************************************************************
55 // Declaration of external SystemInit function
56 //*****************************************************************************
57 #if defined (__USE_CMSIS)
58 extern void SystemInit(void);
59 #endif // (__USE_CMSIS)
60
61 //*****************************************************************************
62 // Forward declaration of the core exception handlers.
63 // When the application defines a handler (with the same name), this will
64 // automatically take precedence over these weak definitions.
65 // If your application is a C++ one, then any interrupt handlers defined
66 // in C++ files within in your main application will need to have C linkage
67 // rather than C++ linkage. To do this, make sure that you are using extern "C"
68 // { .... } around the interrupt handler within your main application code.
69 //*****************************************************************************
70 void ResetISR(void);
71 WEAK void NMI_Handler(void);
72 WEAK void HardFault_Handler(void);
73 WEAK void MemManage_Handler(void);
74 WEAK void BusFault_Handler(void);
75 WEAK void UsageFault_Handler(void);
76 WEAK void SVC_Handler(void);
77 WEAK void DebugMon_Handler(void);
78 WEAK void PendSV_Handler(void);
79 WEAK void SysTick_Handler(void);
80 WEAK void IntDefaultHandler(void);
81
82 //*****************************************************************************
83 // Forward declaration of the application IRQ handlers. When the application
84 // defines a handler (with the same name), this will automatically take
85 // precedence over weak definitions below
86 //*****************************************************************************
87 WEAK void DMA0_DMA16_IRQHandler(void);
88 WEAK void DMA1_DMA17_IRQHandler(void);
89 WEAK void DMA2_DMA18_IRQHandler(void);
90 WEAK void DMA3_DMA19_IRQHandler(void);
91 WEAK void DMA4_DMA20_IRQHandler(void);
92 WEAK void DMA5_DMA21_IRQHandler(void);
93 WEAK void DMA6_DMA22_IRQHandler(void);
94 WEAK void DMA7_DMA23_IRQHandler(void);
95 WEAK void DMA8_DMA24_IRQHandler(void);
96 WEAK void DMA9_DMA25_IRQHandler(void);
97 WEAK void DMA10_DMA26_IRQHandler(void);
98 WEAK void DMA11_DMA27_IRQHandler(void);
99 WEAK void DMA12_DMA28_IRQHandler(void);
100 WEAK void DMA13_DMA29_IRQHandler(void);
101 WEAK void DMA14_DMA30_IRQHandler(void);
102 WEAK void DMA15_DMA31_IRQHandler(void);
103 WEAK void DMA_Error_IRQHandler(void);
104 WEAK void MCM_IRQHandler(void);
105 WEAK void FTFE_IRQHandler(void);
106 WEAK void Read_Collision_IRQHandler(void);
107 WEAK void PMC_IRQHandler(void);
108 WEAK void LLWU_IRQHandler(void);
109 WEAK void WDOG_EWM_IRQHandler(void);
110 WEAK void TRNG0_IRQHandler(void);
111 WEAK void I2C0_IRQHandler(void);
112 WEAK void I2C1_IRQHandler(void);
113 WEAK void SPI0_IRQHandler(void);
114 WEAK void SPI1_IRQHandler(void);
115 WEAK void UART5_RX_TX_IRQHandler(void);
116 WEAK void UART5_ERR_IRQHandler(void);
117 WEAK void Reserved46_IRQHandler(void);
118 WEAK void UART0_RX_TX_IRQHandler(void);
119 WEAK void UART0_ERR_IRQHandler(void);
120 WEAK void UART1_RX_TX_IRQHandler(void);
121 WEAK void UART1_ERR_IRQHandler(void);
122 WEAK void UART2_RX_TX_IRQHandler(void);
123 WEAK void UART2_ERR_IRQHandler(void);
124 WEAK void ADC0_IRQHandler(void);
125 WEAK void HSADC_ERR_IRQHandler(void);
126 WEAK void HSADC0_CCA_IRQHandler(void);
127 WEAK void CMP0_IRQHandler(void);
128 WEAK void CMP1_IRQHandler(void);
129 WEAK void FTM0_IRQHandler(void);
130 WEAK void FTM1_IRQHandler(void);
131 WEAK void UART3_RX_TX_IRQHandler(void);
132 WEAK void UART3_ERR_IRQHandler(void);
133 WEAK void UART4_RX_TX_IRQHandler(void);
134 WEAK void UART4_ERR_IRQHandler(void);
135 WEAK void PIT0_IRQHandler(void);
136 WEAK void PIT1_IRQHandler(void);
137 WEAK void PIT2_IRQHandler(void);
138 WEAK void PIT3_IRQHandler(void);
139 WEAK void PDB0_IRQHandler(void);
140 WEAK void FTM2_IRQHandler(void);
141 WEAK void XBARA_IRQHandler(void);
142 WEAK void PDB1_IRQHandler(void);
143 WEAK void DAC0_IRQHandler(void);
144 WEAK void MCG_IRQHandler(void);
145 WEAK void LPTMR0_IRQHandler(void);
146 WEAK void PORTA_IRQHandler(void);
147 WEAK void PORTB_IRQHandler(void);
148 WEAK void PORTC_IRQHandler(void);
149 WEAK void PORTD_IRQHandler(void);
150 WEAK void PORTE_IRQHandler(void);
151 WEAK void SWI_IRQHandler(void);
152 WEAK void SPI2_IRQHandler(void);
153 WEAK void ENC_COMPARE_IRQHandler(void);
154 WEAK void ENC_HOME_IRQHandler(void);
155 WEAK void ENC_WDOG_SAB_IRQHandler(void);
156 WEAK void ENC_INDEX_IRQHandler(void);
157 WEAK void CMP2_IRQHandler(void);
158 WEAK void FTM3_IRQHandler(void);
159 WEAK void Reserved88_IRQHandler(void);
160 WEAK void HSADC0_CCB_IRQHandler(void);
161 WEAK void HSADC1_CCA_IRQHandler(void);
162 WEAK void CAN0_ORed_Message_buffer_IRQHandler(void);
163 WEAK void CAN0_Bus_Off_IRQHandler(void);
164 WEAK void CAN0_Error_IRQHandler(void);
165 WEAK void CAN0_Tx_Warning_IRQHandler(void);
166 WEAK void CAN0_Rx_Warning_IRQHandler(void);
167 WEAK void CAN0_Wake_Up_IRQHandler(void);
168 WEAK void PWM0_CMP0_IRQHandler(void);
169 WEAK void PWM0_RELOAD0_IRQHandler(void);
170 WEAK void PWM0_CMP1_IRQHandler(void);
171 WEAK void PWM0_RELOAD1_IRQHandler(void);
172 WEAK void PWM0_CMP2_IRQHandler(void);
173 WEAK void PWM0_RELOAD2_IRQHandler(void);
174 WEAK void PWM0_CMP3_IRQHandler(void);
175 WEAK void PWM0_RELOAD3_IRQHandler(void);
176 WEAK void PWM0_CAP_IRQHandler(void);
177 WEAK void PWM0_RERR_IRQHandler(void);
178 WEAK void PWM0_FAULT_IRQHandler(void);
179 WEAK void CMP3_IRQHandler(void);
180 WEAK void HSADC1_CCB_IRQHandler(void);
181 WEAK void CAN1_ORed_Message_buffer_IRQHandler(void);
182 WEAK void CAN1_Bus_Off_IRQHandler(void);
183 WEAK void CAN1_Error_IRQHandler(void);
184 WEAK void CAN1_Tx_Warning_IRQHandler(void);
185 WEAK void CAN1_Rx_Warning_IRQHandler(void);
186 WEAK void CAN1_Wake_Up_IRQHandler(void);
187 WEAK void Reserved116_IRQHandler(void);
188 WEAK void Reserved117_IRQHandler(void);
189 WEAK void Reserved118_IRQHandler(void);
190 WEAK void Reserved119_IRQHandler(void);
191 WEAK void PWM1_CMP0_IRQHandler(void);
192 WEAK void PWM1_RELOAD0_IRQHandler(void);
193 WEAK void PWM1_CMP1_IRQHandler(void);
194 WEAK void PWM1_RELOAD1_IRQHandler(void);
195 WEAK void PWM1_CMP2_IRQHandler(void);
196 WEAK void PWM1_RELOAD2_IRQHandler(void);
197 WEAK void PWM1_CMP3_IRQHandler(void);
198 WEAK void PWM1_RELOAD3_IRQHandler(void);
199 WEAK void PWM1_CAP_IRQHandler(void);
200 WEAK void PWM1_RERR_IRQHandler(void);
201 WEAK void PWM1_FAULT_IRQHandler(void);
202
203 //*****************************************************************************
204 // Forward declaration of the driver IRQ handlers. These are aliased
205 // to the IntDefaultHandler, which is a 'forever' loop. When the driver
206 // defines a handler (with the same name), this will automatically take
207 // precedence over these weak definitions
208 //*****************************************************************************
209 void DMA0_DMA16_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
210 void DMA1_DMA17_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
211 void DMA2_DMA18_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
212 void DMA3_DMA19_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
213 void DMA4_DMA20_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
214 void DMA5_DMA21_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
215 void DMA6_DMA22_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
216 void DMA7_DMA23_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
217 void DMA8_DMA24_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
218 void DMA9_DMA25_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
219 void DMA10_DMA26_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
220 void DMA11_DMA27_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
221 void DMA12_DMA28_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
222 void DMA13_DMA29_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
223 void DMA14_DMA30_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
224 void DMA15_DMA31_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
225 void DMA_Error_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
226 void MCM_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
227 void FTFE_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
228 void Read_Collision_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
229 void PMC_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
230 void LLWU_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
231 void WDOG_EWM_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
232 void TRNG0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
233 void I2C0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
234 void I2C1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
235 void SPI0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
236 void SPI1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
237 void UART5_RX_TX_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
238 void UART5_ERR_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
239 void Reserved46_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
240 void UART0_RX_TX_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
241 void UART0_ERR_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
242 void UART1_RX_TX_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
243 void UART1_ERR_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
244 void UART2_RX_TX_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
245 void UART2_ERR_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
246 void ADC0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
247 void HSADC_ERR_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
248 void HSADC0_CCA_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
249 void CMP0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
250 void CMP1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
251 void FTM0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
252 void FTM1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
253 void UART3_RX_TX_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
254 void UART3_ERR_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
255 void UART4_RX_TX_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
256 void UART4_ERR_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
257 void PIT0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
258 void PIT1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
259 void PIT2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
260 void PIT3_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
261 void PDB0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
262 void FTM2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
263 void XBARA_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
264 void PDB1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
265 void DAC0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
266 void MCG_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
267 void LPTMR0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
268 void PORTA_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
269 void PORTB_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
270 void PORTC_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
271 void PORTD_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
272 void PORTE_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
273 void SWI_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
274 void SPI2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
275 void ENC_COMPARE_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
276 void ENC_HOME_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
277 void ENC_WDOG_SAB_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
278 void ENC_INDEX_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
279 void CMP2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
280 void FTM3_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
281 void Reserved88_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
282 void HSADC0_CCB_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
283 void HSADC1_CCA_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
284 void CAN0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
285 void PWM0_CMP0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
286 void PWM0_RELOAD0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
287 void PWM0_CMP1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
288 void PWM0_RELOAD1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
289 void PWM0_CMP2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
290 void PWM0_RELOAD2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
291 void PWM0_CMP3_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
292 void PWM0_RELOAD3_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
293 void PWM0_CAP_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
294 void PWM0_RERR_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
295 void PWM0_FAULT_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
296 void CMP3_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
297 void HSADC1_CCB_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
298 void CAN1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
299 void Reserved116_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
300 void Reserved117_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
301 void Reserved118_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
302 void Reserved119_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
303 void PWM1_CMP0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
304 void PWM1_RELOAD0_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
305 void PWM1_CMP1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
306 void PWM1_RELOAD1_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
307 void PWM1_CMP2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
308 void PWM1_RELOAD2_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
309 void PWM1_CMP3_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
310 void PWM1_RELOAD3_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
311 void PWM1_CAP_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
312 void PWM1_RERR_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
313 void PWM1_FAULT_DriverIRQHandler(void) ALIAS(IntDefaultHandler);
314
315 //*****************************************************************************
316 // The entry point for the application.
317 // __main() is the entry point for Redlib based applications
318 // main() is the entry point for Newlib based applications
319 //*****************************************************************************
320 #if defined (__REDLIB__)
321 extern void __main(void);
322 #endif
323 extern int main(void);
324
325 //*****************************************************************************
326 // External declaration for the pointer to the stack top from the Linker Script
327 //*****************************************************************************
328 extern void _vStackTop(void);
329 //*****************************************************************************
330 #if defined (__cplusplus)
331 } // extern "C"
332 #endif
333 //*****************************************************************************
334 // The vector table.
335 // This relies on the linker script to place at correct location in memory.
336 //*****************************************************************************
337
338
339
340 extern void (* const g_pfnVectors[])(void);
341 extern void * __Vectors __attribute__ ((alias ("g_pfnVectors")));
342
343 __attribute__ ((used, section(".isr_vector")))
344 void (* const g_pfnVectors[])(void) = {
345 // Core Level - CM7
346 &_vStackTop, // The initial stack pointer
347 ResetISR, // The reset handler
348 NMI_Handler, // The NMI handler
349 HardFault_Handler, // The hard fault handler
350 MemManage_Handler, // The MPU fault handler
351 BusFault_Handler, // The bus fault handler
352 UsageFault_Handler, // The usage fault handler
353 0, // Reserved
354 0, // Reserved
355 0, // Reserved
356 0, // Reserved
357 SVC_Handler, // SVCall handler
358 DebugMon_Handler, // Debug monitor handler
359 0, // Reserved
360 PendSV_Handler, // The PendSV handler
361 SysTick_Handler, // The SysTick handler
362
363 // Chip Level - MKV56F24
364 DMA0_DMA16_IRQHandler, // 16 : DMA channel 0/16 transfer complete
365 DMA1_DMA17_IRQHandler, // 17 : DMA channel 1/17 transfer complete
366 DMA2_DMA18_IRQHandler, // 18 : DMA channel 2/18 transfer complete
367 DMA3_DMA19_IRQHandler, // 19 : DMA channel 3/19 transfer complete
368 DMA4_DMA20_IRQHandler, // 20 : DMA channel 4/20 transfer complete
369 DMA5_DMA21_IRQHandler, // 21 : DMA channel 5/21 transfer complete
370 DMA6_DMA22_IRQHandler, // 22 : DMA channel 6/22 transfer complete
371 DMA7_DMA23_IRQHandler, // 23 : DMA channel 7/23 transfer complete
372 DMA8_DMA24_IRQHandler, // 24 : DMA channel 8/24 transfer complete
373 DMA9_DMA25_IRQHandler, // 25 : DMA channel 9/25 transfer complete
374 DMA10_DMA26_IRQHandler, // 26 : DMA channel 10/26 transfer complete
375 DMA11_DMA27_IRQHandler, // 27 : DMA channel 11/27 transfer complete
376 DMA12_DMA28_IRQHandler, // 28 : DMA channel 12/28 transfer complete
377 DMA13_DMA29_IRQHandler, // 29 : DMA channel 13/29 transfer complete
378 DMA14_DMA30_IRQHandler, // 30 : DMA channel 14/30 transfer complete
379 DMA15_DMA31_IRQHandler, // 31 : DMA channel 15/31 transfer complete
380 DMA_Error_IRQHandler, // 32 : DMA error interrupt channels 0-31
381 MCM_IRQHandler, // 33 : MCM normal interrupt
382 FTFE_IRQHandler, // 34 : FTFL command complete
383 Read_Collision_IRQHandler, // 35 : FTFL read collision
384 PMC_IRQHandler, // 36 : PMC controller low-voltage detect, low-voltage warning
385 LLWU_IRQHandler, // 37 : Low leakage wakeup
386 WDOG_EWM_IRQHandler, // 38 : Single interrupt vector for WDOG and EWM
387 TRNG0_IRQHandler, // 39 : True randon number generator
388 I2C0_IRQHandler, // 40 : Inter-integrated circuit 0
389 I2C1_IRQHandler, // 41 : Inter-integrated circuit 1
390 SPI0_IRQHandler, // 42 : Serial peripheral Interface 0
391 SPI1_IRQHandler, // 43 : Serial peripheral Interface 1
392 UART5_RX_TX_IRQHandler, // 44 : UART5 receive/transmit interrupt
393 UART5_ERR_IRQHandler, // 45 : UART5 error interrupt
394 Reserved46_IRQHandler, // 46 : Reserved interrupt
395 UART0_RX_TX_IRQHandler, // 47 : UART0 receive/transmit interrupt
396 UART0_ERR_IRQHandler, // 48 : UART0 error interrupt
397 UART1_RX_TX_IRQHandler, // 49 : UART1 receive/transmit interrupt
398 UART1_ERR_IRQHandler, // 50 : UART1 error interrupt
399 UART2_RX_TX_IRQHandler, // 51 : UART2 receive/transmit interrupt
400 UART2_ERR_IRQHandler, // 52 : UART2 error interrupt
401 ADC0_IRQHandler, // 53 : Analog-to-digital converter 0
402 HSADC_ERR_IRQHandler, // 54 : High speed analog-to-digital converter zero cross
403 HSADC0_CCA_IRQHandler, // 55 : High speed analog-to-digital converter 0 submodule A scan complete
404 CMP0_IRQHandler, // 56 : Comparator 0
405 CMP1_IRQHandler, // 57 : Comparator 1
406 FTM0_IRQHandler, // 58 : FlexTimer module 0 fault, overflow and channels interrupt
407 FTM1_IRQHandler, // 59 : FlexTimer module 1 fault, overflow and channels interrupt
408 UART3_RX_TX_IRQHandler, // 60 : UART3 receive/transmit interrupt
409 UART3_ERR_IRQHandler, // 61 : UART3 error interrupt
410 UART4_RX_TX_IRQHandler, // 62 : UART4 receive/transmit interrupt
411 UART4_ERR_IRQHandler, // 63 : UART4 error interrupt
412 PIT0_IRQHandler, // 64 : Periodic interrupt timer channel 0
413 PIT1_IRQHandler, // 65 : Periodic interrupt timer channel 1
414 PIT2_IRQHandler, // 66 : Periodic interrupt timer channel 2
415 PIT3_IRQHandler, // 67 : Periodic interrupt timer channel 3
416 PDB0_IRQHandler, // 68 : Programmable delay block 0
417 FTM2_IRQHandler, // 69 : FlexTimer module 2 fault, overflow and channels interrupt
418 XBARA_IRQHandler, // 70 : Inter-peripheral crossbar switch A
419 PDB1_IRQHandler, // 71 : Programmable delay block 1
420 DAC0_IRQHandler, // 72 : Digital-to-analog converter 0
421 MCG_IRQHandler, // 73 : Multipurpose clock generator
422 LPTMR0_IRQHandler, // 74 : Low power timer interrupt
423 PORTA_IRQHandler, // 75 : Port A interrupt
424 PORTB_IRQHandler, // 76 : Port B interrupt
425 PORTC_IRQHandler, // 77 : Port C interrupt
426 PORTD_IRQHandler, // 78 : Port D interrupt
427 PORTE_IRQHandler, // 79 : Port E interrupt
428 SWI_IRQHandler, // 80 : Software interrupt
429 SPI2_IRQHandler, // 81 : Serial peripheral Interface 2
430 ENC_COMPARE_IRQHandler, // 82 : ENC Compare
431 ENC_HOME_IRQHandler, // 83 : ENC Home
432 ENC_WDOG_SAB_IRQHandler, // 84 : ENC Wdog/SAB
433 ENC_INDEX_IRQHandler, // 85 : ENC Index/Roll over/Roll Under
434 CMP2_IRQHandler, // 86 : Comparator 2
435 FTM3_IRQHandler, // 87 : FlexTimer module 3 fault, overflow and channels
436 Reserved88_IRQHandler, // 88 : Reserved interrupt
437 HSADC0_CCB_IRQHandler, // 89 : High speed analog-to-digital converter 0 submodule B scan complete
438 HSADC1_CCA_IRQHandler, // 90 : High speed analog-to-digital converter 1 submodule A scan complete
439 CAN0_ORed_Message_buffer_IRQHandler, // 91 : Flex controller area network 0 message buffer
440 CAN0_Bus_Off_IRQHandler, // 92 : Flex controller area network 0 bus off
441 CAN0_Error_IRQHandler, // 93 : Flex controller area network 0 error
442 CAN0_Tx_Warning_IRQHandler, // 94 : Flex controller area network 0 transmit
443 CAN0_Rx_Warning_IRQHandler, // 95 : Flex controller area network 0 receive
444 CAN0_Wake_Up_IRQHandler, // 96 : Flex controller area network 0 wake up
445 PWM0_CMP0_IRQHandler, // 97 : Pulse width modulator 0 channel 0 compare
446 PWM0_RELOAD0_IRQHandler, // 98 : Pulse width modulator 0 channel 0 reload
447 PWM0_CMP1_IRQHandler, // 99 : Pulse width modulator 0 channel 1 compare
448 PWM0_RELOAD1_IRQHandler, // 100: Pulse width modulator 0 channel 1 reload
449 PWM0_CMP2_IRQHandler, // 101: Pulse width modulator 0 channel 2 compare
450 PWM0_RELOAD2_IRQHandler, // 102: Pulse width modulator 0 channel 2 reload
451 PWM0_CMP3_IRQHandler, // 103: Pulse width modulator 0 channel 3 compare
452 PWM0_RELOAD3_IRQHandler, // 104: Pulse width modulator 0 channel 3 reload
453 PWM0_CAP_IRQHandler, // 105: Pulse width modulator 0 capture
454 PWM0_RERR_IRQHandler, // 106: Pulse width modulator 0 reload error
455 PWM0_FAULT_IRQHandler, // 107: Pulse width modulator 0 fault
456 CMP3_IRQHandler, // 108: Comparator 3
457 HSADC1_CCB_IRQHandler, // 109: High speed analog-to-digital converter 1 submodule B scan complete
458 CAN1_ORed_Message_buffer_IRQHandler, // 110: Flex controller area network 1 message buffer
459 CAN1_Bus_Off_IRQHandler, // 111: Flex controller area network 1 bus off
460 CAN1_Error_IRQHandler, // 112: Flex controller area network 1 error
461 CAN1_Tx_Warning_IRQHandler, // 113: Flex controller area network 1 transmit
462 CAN1_Rx_Warning_IRQHandler, // 114: Flex controller area network 1 receive
463 CAN1_Wake_Up_IRQHandler, // 115: Flex controller area network 1 wake up
464 Reserved116_IRQHandler, // 116: Reserved interrupt
465 Reserved117_IRQHandler, // 117: Reserved interrupt
466 Reserved118_IRQHandler, // 118: Reserved interrupt
467 Reserved119_IRQHandler, // 119: Reserved interrupt
468 PWM1_CMP0_IRQHandler, // 120: Pulse width modulator 1 channel 0 compare
469 PWM1_RELOAD0_IRQHandler, // 121: Pulse width modulator 1 channel 0 reload
470 PWM1_CMP1_IRQHandler, // 122: Pulse width modulator 1 channel 1 compare
471 PWM1_RELOAD1_IRQHandler, // 123: Pulse width modulator 1 channel 1 reload
472 PWM1_CMP2_IRQHandler, // 124: Pulse width modulator 1 channel 2 compare
473 PWM1_RELOAD2_IRQHandler, // 125: Pulse width modulator 1 channel 2 reload
474 PWM1_CMP3_IRQHandler, // 126: Pulse width modulator 1 channel 3 compare
475 PWM1_RELOAD3_IRQHandler, // 127: Pulse width modulator 1 channel 3 reload
476 PWM1_CAP_IRQHandler, // 128: Pulse width modulator 1 capture
477 PWM1_RERR_IRQHandler, // 129: Pulse width modulator 1 reload error
478 PWM1_FAULT_IRQHandler, // 130: Pulse width modulator 1 fault
479
480
481 }; /* End of g_pfnVectors */
482
483 //*****************************************************************************
484 // Functions to carry out the initialization of RW and BSS data sections. These
485 // are written as separate functions rather than being inlined within the
486 // ResetISR() function in order to cope with MCUs with multiple banks of
487 // memory.
488 //*****************************************************************************
489 __attribute__ ((section(".after_vectors.init_data")))
data_init(unsigned int romstart,unsigned int start,unsigned int len)490 void data_init(unsigned int romstart, unsigned int start, unsigned int len) {
491 unsigned int *pulDest = (unsigned int*) start;
492 unsigned int *pulSrc = (unsigned int*) romstart;
493 unsigned int loop;
494 for (loop = 0; loop < len; loop = loop + 4)
495 *pulDest++ = *pulSrc++;
496 }
497
498 __attribute__ ((section(".after_vectors.init_bss")))
bss_init(unsigned int start,unsigned int len)499 void bss_init(unsigned int start, unsigned int len) {
500 unsigned int *pulDest = (unsigned int*) start;
501 unsigned int loop;
502 for (loop = 0; loop < len; loop = loop + 4)
503 *pulDest++ = 0;
504 }
505
506 //*****************************************************************************
507 // The following symbols are constructs generated by the linker, indicating
508 // the location of various points in the "Global Section Table". This table is
509 // created by the linker via the Code Red managed linker script mechanism. It
510 // contains the load address, execution address and length of each RW data
511 // section and the execution and length of each BSS (zero initialized) section.
512 //*****************************************************************************
513 extern unsigned int __data_section_table;
514 extern unsigned int __data_section_table_end;
515 extern unsigned int __bss_section_table;
516 extern unsigned int __bss_section_table_end;
517
518 //*****************************************************************************
519 // Reset entry point for your code.
520 // Sets up a simple runtime environment and initializes the C/C++
521 // library.
522 //*****************************************************************************
523 __attribute__ ((naked, section(".after_vectors.reset")))
ResetISR(void)524 void ResetISR(void) {
525
526 // Disable interrupts
527 __asm volatile ("cpsid i");
528
529
530 #if defined (__USE_CMSIS)
531 // If __USE_CMSIS defined, then call CMSIS SystemInit code
532 SystemInit();
533
534 #else
535 // Disable Watchdog
536 // Write 0xC520 to watchdog unlock register
537 *((volatile unsigned short *)0x4005200E) = 0xC520;
538 // Followed by 0xD928 to complete the unlock
539 *((volatile unsigned short *)0x4005200E) = 0xD928;
540 // Now disable watchdog via STCTRLH register
541 *((volatile unsigned short *)0x40052000) = 0x01D2u;
542 #endif // (__USE_CMSIS)
543
544 //
545 // Copy the data sections from flash to SRAM.
546 //
547 unsigned int LoadAddr, ExeAddr, SectionLen;
548 unsigned int *SectionTableAddr;
549
550 // Load base address of Global Section Table
551 SectionTableAddr = &__data_section_table;
552
553 // Copy the data sections from flash to SRAM.
554 while (SectionTableAddr < &__data_section_table_end) {
555 LoadAddr = *SectionTableAddr++;
556 ExeAddr = *SectionTableAddr++;
557 SectionLen = *SectionTableAddr++;
558 data_init(LoadAddr, ExeAddr, SectionLen);
559 }
560
561 // At this point, SectionTableAddr = &__bss_section_table;
562 // Zero fill the bss segment
563 while (SectionTableAddr < &__bss_section_table_end) {
564 ExeAddr = *SectionTableAddr++;
565 SectionLen = *SectionTableAddr++;
566 bss_init(ExeAddr, SectionLen);
567 }
568
569
570 #if !defined (__USE_CMSIS)
571 // Assume that if __USE_CMSIS defined, then CMSIS SystemInit code
572 // will setup the VTOR register
573
574 // Check to see if we are running the code from a non-zero
575 // address (eg RAM, external flash), in which case we need
576 // to modify the VTOR register to tell the CPU that the
577 // vector table is located at a non-0x0 address.
578 unsigned int * pSCB_VTOR = (unsigned int *) 0xE000ED08;
579 if ((unsigned int *)g_pfnVectors!=(unsigned int *) 0x00000000) {
580 *pSCB_VTOR = (unsigned int)g_pfnVectors;
581 }
582 #endif // (__USE_CMSIS)
583 #if defined (__cplusplus)
584 //
585 // Call C++ library initialisation
586 //
587 __libc_init_array();
588 #endif
589
590 // Reenable interrupts
591 __asm volatile ("cpsie i");
592
593 #if defined (__REDLIB__)
594 // Call the Redlib library, which in turn calls main()
595 __main();
596 #else
597 main();
598 #endif
599
600 //
601 // main() shouldn't return, but if it does, we'll just enter an infinite loop
602 //
603 while (1) {
604 ;
605 }
606 }
607
608 //*****************************************************************************
609 // Default core exception handlers. Override the ones here by defining your own
610 // handler routines in your application code.
611 //*****************************************************************************
NMI_Handler(void)612 WEAK_AV void NMI_Handler(void)
613 { while(1) {}
614 }
615
HardFault_Handler(void)616 WEAK_AV void HardFault_Handler(void)
617 { while(1) {}
618 }
619
MemManage_Handler(void)620 WEAK_AV void MemManage_Handler(void)
621 { while(1) {}
622 }
623
BusFault_Handler(void)624 WEAK_AV void BusFault_Handler(void)
625 { while(1) {}
626 }
627
UsageFault_Handler(void)628 WEAK_AV void UsageFault_Handler(void)
629 { while(1) {}
630 }
631
SVC_Handler(void)632 WEAK_AV void SVC_Handler(void)
633 { while(1) {}
634 }
635
DebugMon_Handler(void)636 WEAK_AV void DebugMon_Handler(void)
637 { while(1) {}
638 }
639
PendSV_Handler(void)640 WEAK_AV void PendSV_Handler(void)
641 { while(1) {}
642 }
643
SysTick_Handler(void)644 WEAK_AV void SysTick_Handler(void)
645 { while(1) {}
646 }
647
648 //*****************************************************************************
649 // Processor ends up here if an unexpected interrupt occurs or a specific
650 // handler is not present in the application code.
651 //*****************************************************************************
IntDefaultHandler(void)652 WEAK_AV void IntDefaultHandler(void)
653 { while(1) {}
654 }
655
656 //*****************************************************************************
657 // Default application exception handlers. Override the ones here by defining
658 // your own handler routines in your application code. These routines call
659 // driver exception handlers or IntDefaultHandler() if no driver exception
660 // handler is included.
661 //*****************************************************************************
DMA0_DMA16_IRQHandler(void)662 WEAK void DMA0_DMA16_IRQHandler(void)
663 { DMA0_DMA16_DriverIRQHandler();
664 }
665
DMA1_DMA17_IRQHandler(void)666 WEAK void DMA1_DMA17_IRQHandler(void)
667 { DMA1_DMA17_DriverIRQHandler();
668 }
669
DMA2_DMA18_IRQHandler(void)670 WEAK void DMA2_DMA18_IRQHandler(void)
671 { DMA2_DMA18_DriverIRQHandler();
672 }
673
DMA3_DMA19_IRQHandler(void)674 WEAK void DMA3_DMA19_IRQHandler(void)
675 { DMA3_DMA19_DriverIRQHandler();
676 }
677
DMA4_DMA20_IRQHandler(void)678 WEAK void DMA4_DMA20_IRQHandler(void)
679 { DMA4_DMA20_DriverIRQHandler();
680 }
681
DMA5_DMA21_IRQHandler(void)682 WEAK void DMA5_DMA21_IRQHandler(void)
683 { DMA5_DMA21_DriverIRQHandler();
684 }
685
DMA6_DMA22_IRQHandler(void)686 WEAK void DMA6_DMA22_IRQHandler(void)
687 { DMA6_DMA22_DriverIRQHandler();
688 }
689
DMA7_DMA23_IRQHandler(void)690 WEAK void DMA7_DMA23_IRQHandler(void)
691 { DMA7_DMA23_DriverIRQHandler();
692 }
693
DMA8_DMA24_IRQHandler(void)694 WEAK void DMA8_DMA24_IRQHandler(void)
695 { DMA8_DMA24_DriverIRQHandler();
696 }
697
DMA9_DMA25_IRQHandler(void)698 WEAK void DMA9_DMA25_IRQHandler(void)
699 { DMA9_DMA25_DriverIRQHandler();
700 }
701
DMA10_DMA26_IRQHandler(void)702 WEAK void DMA10_DMA26_IRQHandler(void)
703 { DMA10_DMA26_DriverIRQHandler();
704 }
705
DMA11_DMA27_IRQHandler(void)706 WEAK void DMA11_DMA27_IRQHandler(void)
707 { DMA11_DMA27_DriverIRQHandler();
708 }
709
DMA12_DMA28_IRQHandler(void)710 WEAK void DMA12_DMA28_IRQHandler(void)
711 { DMA12_DMA28_DriverIRQHandler();
712 }
713
DMA13_DMA29_IRQHandler(void)714 WEAK void DMA13_DMA29_IRQHandler(void)
715 { DMA13_DMA29_DriverIRQHandler();
716 }
717
DMA14_DMA30_IRQHandler(void)718 WEAK void DMA14_DMA30_IRQHandler(void)
719 { DMA14_DMA30_DriverIRQHandler();
720 }
721
DMA15_DMA31_IRQHandler(void)722 WEAK void DMA15_DMA31_IRQHandler(void)
723 { DMA15_DMA31_DriverIRQHandler();
724 }
725
DMA_Error_IRQHandler(void)726 WEAK void DMA_Error_IRQHandler(void)
727 { DMA_Error_DriverIRQHandler();
728 }
729
MCM_IRQHandler(void)730 WEAK void MCM_IRQHandler(void)
731 { MCM_DriverIRQHandler();
732 }
733
FTFE_IRQHandler(void)734 WEAK void FTFE_IRQHandler(void)
735 { FTFE_DriverIRQHandler();
736 }
737
Read_Collision_IRQHandler(void)738 WEAK void Read_Collision_IRQHandler(void)
739 { Read_Collision_DriverIRQHandler();
740 }
741
PMC_IRQHandler(void)742 WEAK void PMC_IRQHandler(void)
743 { PMC_DriverIRQHandler();
744 }
745
LLWU_IRQHandler(void)746 WEAK void LLWU_IRQHandler(void)
747 { LLWU_DriverIRQHandler();
748 }
749
WDOG_EWM_IRQHandler(void)750 WEAK void WDOG_EWM_IRQHandler(void)
751 { WDOG_EWM_DriverIRQHandler();
752 }
753
TRNG0_IRQHandler(void)754 WEAK void TRNG0_IRQHandler(void)
755 { TRNG0_DriverIRQHandler();
756 }
757
I2C0_IRQHandler(void)758 WEAK void I2C0_IRQHandler(void)
759 { I2C0_DriverIRQHandler();
760 }
761
I2C1_IRQHandler(void)762 WEAK void I2C1_IRQHandler(void)
763 { I2C1_DriverIRQHandler();
764 }
765
SPI0_IRQHandler(void)766 WEAK void SPI0_IRQHandler(void)
767 { SPI0_DriverIRQHandler();
768 }
769
SPI1_IRQHandler(void)770 WEAK void SPI1_IRQHandler(void)
771 { SPI1_DriverIRQHandler();
772 }
773
UART5_RX_TX_IRQHandler(void)774 WEAK void UART5_RX_TX_IRQHandler(void)
775 { UART5_RX_TX_DriverIRQHandler();
776 }
777
UART5_ERR_IRQHandler(void)778 WEAK void UART5_ERR_IRQHandler(void)
779 { UART5_ERR_DriverIRQHandler();
780 }
781
Reserved46_IRQHandler(void)782 WEAK void Reserved46_IRQHandler(void)
783 { Reserved46_DriverIRQHandler();
784 }
785
UART0_RX_TX_IRQHandler(void)786 WEAK void UART0_RX_TX_IRQHandler(void)
787 { UART0_RX_TX_DriverIRQHandler();
788 }
789
UART0_ERR_IRQHandler(void)790 WEAK void UART0_ERR_IRQHandler(void)
791 { UART0_ERR_DriverIRQHandler();
792 }
793
UART1_RX_TX_IRQHandler(void)794 WEAK void UART1_RX_TX_IRQHandler(void)
795 { UART1_RX_TX_DriverIRQHandler();
796 }
797
UART1_ERR_IRQHandler(void)798 WEAK void UART1_ERR_IRQHandler(void)
799 { UART1_ERR_DriverIRQHandler();
800 }
801
UART2_RX_TX_IRQHandler(void)802 WEAK void UART2_RX_TX_IRQHandler(void)
803 { UART2_RX_TX_DriverIRQHandler();
804 }
805
UART2_ERR_IRQHandler(void)806 WEAK void UART2_ERR_IRQHandler(void)
807 { UART2_ERR_DriverIRQHandler();
808 }
809
ADC0_IRQHandler(void)810 WEAK void ADC0_IRQHandler(void)
811 { ADC0_DriverIRQHandler();
812 }
813
HSADC_ERR_IRQHandler(void)814 WEAK void HSADC_ERR_IRQHandler(void)
815 { HSADC_ERR_DriverIRQHandler();
816 }
817
HSADC0_CCA_IRQHandler(void)818 WEAK void HSADC0_CCA_IRQHandler(void)
819 { HSADC0_CCA_DriverIRQHandler();
820 }
821
CMP0_IRQHandler(void)822 WEAK void CMP0_IRQHandler(void)
823 { CMP0_DriverIRQHandler();
824 }
825
CMP1_IRQHandler(void)826 WEAK void CMP1_IRQHandler(void)
827 { CMP1_DriverIRQHandler();
828 }
829
FTM0_IRQHandler(void)830 WEAK void FTM0_IRQHandler(void)
831 { FTM0_DriverIRQHandler();
832 }
833
FTM1_IRQHandler(void)834 WEAK void FTM1_IRQHandler(void)
835 { FTM1_DriverIRQHandler();
836 }
837
UART3_RX_TX_IRQHandler(void)838 WEAK void UART3_RX_TX_IRQHandler(void)
839 { UART3_RX_TX_DriverIRQHandler();
840 }
841
UART3_ERR_IRQHandler(void)842 WEAK void UART3_ERR_IRQHandler(void)
843 { UART3_ERR_DriverIRQHandler();
844 }
845
UART4_RX_TX_IRQHandler(void)846 WEAK void UART4_RX_TX_IRQHandler(void)
847 { UART4_RX_TX_DriverIRQHandler();
848 }
849
UART4_ERR_IRQHandler(void)850 WEAK void UART4_ERR_IRQHandler(void)
851 { UART4_ERR_DriverIRQHandler();
852 }
853
PIT0_IRQHandler(void)854 WEAK void PIT0_IRQHandler(void)
855 { PIT0_DriverIRQHandler();
856 }
857
PIT1_IRQHandler(void)858 WEAK void PIT1_IRQHandler(void)
859 { PIT1_DriverIRQHandler();
860 }
861
PIT2_IRQHandler(void)862 WEAK void PIT2_IRQHandler(void)
863 { PIT2_DriverIRQHandler();
864 }
865
PIT3_IRQHandler(void)866 WEAK void PIT3_IRQHandler(void)
867 { PIT3_DriverIRQHandler();
868 }
869
PDB0_IRQHandler(void)870 WEAK void PDB0_IRQHandler(void)
871 { PDB0_DriverIRQHandler();
872 }
873
FTM2_IRQHandler(void)874 WEAK void FTM2_IRQHandler(void)
875 { FTM2_DriverIRQHandler();
876 }
877
XBARA_IRQHandler(void)878 WEAK void XBARA_IRQHandler(void)
879 { XBARA_DriverIRQHandler();
880 }
881
PDB1_IRQHandler(void)882 WEAK void PDB1_IRQHandler(void)
883 { PDB1_DriverIRQHandler();
884 }
885
DAC0_IRQHandler(void)886 WEAK void DAC0_IRQHandler(void)
887 { DAC0_DriverIRQHandler();
888 }
889
MCG_IRQHandler(void)890 WEAK void MCG_IRQHandler(void)
891 { MCG_DriverIRQHandler();
892 }
893
LPTMR0_IRQHandler(void)894 WEAK void LPTMR0_IRQHandler(void)
895 { LPTMR0_DriverIRQHandler();
896 }
897
PORTA_IRQHandler(void)898 WEAK void PORTA_IRQHandler(void)
899 { PORTA_DriverIRQHandler();
900 }
901
PORTB_IRQHandler(void)902 WEAK void PORTB_IRQHandler(void)
903 { PORTB_DriverIRQHandler();
904 }
905
PORTC_IRQHandler(void)906 WEAK void PORTC_IRQHandler(void)
907 { PORTC_DriverIRQHandler();
908 }
909
PORTD_IRQHandler(void)910 WEAK void PORTD_IRQHandler(void)
911 { PORTD_DriverIRQHandler();
912 }
913
PORTE_IRQHandler(void)914 WEAK void PORTE_IRQHandler(void)
915 { PORTE_DriverIRQHandler();
916 }
917
SWI_IRQHandler(void)918 WEAK void SWI_IRQHandler(void)
919 { SWI_DriverIRQHandler();
920 }
921
SPI2_IRQHandler(void)922 WEAK void SPI2_IRQHandler(void)
923 { SPI2_DriverIRQHandler();
924 }
925
ENC_COMPARE_IRQHandler(void)926 WEAK void ENC_COMPARE_IRQHandler(void)
927 { ENC_COMPARE_DriverIRQHandler();
928 }
929
ENC_HOME_IRQHandler(void)930 WEAK void ENC_HOME_IRQHandler(void)
931 { ENC_HOME_DriverIRQHandler();
932 }
933
ENC_WDOG_SAB_IRQHandler(void)934 WEAK void ENC_WDOG_SAB_IRQHandler(void)
935 { ENC_WDOG_SAB_DriverIRQHandler();
936 }
937
ENC_INDEX_IRQHandler(void)938 WEAK void ENC_INDEX_IRQHandler(void)
939 { ENC_INDEX_DriverIRQHandler();
940 }
941
CMP2_IRQHandler(void)942 WEAK void CMP2_IRQHandler(void)
943 { CMP2_DriverIRQHandler();
944 }
945
FTM3_IRQHandler(void)946 WEAK void FTM3_IRQHandler(void)
947 { FTM3_DriverIRQHandler();
948 }
949
Reserved88_IRQHandler(void)950 WEAK void Reserved88_IRQHandler(void)
951 { Reserved88_DriverIRQHandler();
952 }
953
HSADC0_CCB_IRQHandler(void)954 WEAK void HSADC0_CCB_IRQHandler(void)
955 { HSADC0_CCB_DriverIRQHandler();
956 }
957
HSADC1_CCA_IRQHandler(void)958 WEAK void HSADC1_CCA_IRQHandler(void)
959 { HSADC1_CCA_DriverIRQHandler();
960 }
961
CAN0_ORed_Message_buffer_IRQHandler(void)962 WEAK void CAN0_ORed_Message_buffer_IRQHandler(void)
963 { CAN0_DriverIRQHandler();
964 }
965
CAN0_Bus_Off_IRQHandler(void)966 WEAK void CAN0_Bus_Off_IRQHandler(void)
967 { CAN0_DriverIRQHandler();
968 }
969
CAN0_Error_IRQHandler(void)970 WEAK void CAN0_Error_IRQHandler(void)
971 { CAN0_DriverIRQHandler();
972 }
973
CAN0_Tx_Warning_IRQHandler(void)974 WEAK void CAN0_Tx_Warning_IRQHandler(void)
975 { CAN0_DriverIRQHandler();
976 }
977
CAN0_Rx_Warning_IRQHandler(void)978 WEAK void CAN0_Rx_Warning_IRQHandler(void)
979 { CAN0_DriverIRQHandler();
980 }
981
CAN0_Wake_Up_IRQHandler(void)982 WEAK void CAN0_Wake_Up_IRQHandler(void)
983 { CAN0_DriverIRQHandler();
984 }
985
PWM0_CMP0_IRQHandler(void)986 WEAK void PWM0_CMP0_IRQHandler(void)
987 { PWM0_CMP0_DriverIRQHandler();
988 }
989
PWM0_RELOAD0_IRQHandler(void)990 WEAK void PWM0_RELOAD0_IRQHandler(void)
991 { PWM0_RELOAD0_DriverIRQHandler();
992 }
993
PWM0_CMP1_IRQHandler(void)994 WEAK void PWM0_CMP1_IRQHandler(void)
995 { PWM0_CMP1_DriverIRQHandler();
996 }
997
PWM0_RELOAD1_IRQHandler(void)998 WEAK void PWM0_RELOAD1_IRQHandler(void)
999 { PWM0_RELOAD1_DriverIRQHandler();
1000 }
1001
PWM0_CMP2_IRQHandler(void)1002 WEAK void PWM0_CMP2_IRQHandler(void)
1003 { PWM0_CMP2_DriverIRQHandler();
1004 }
1005
PWM0_RELOAD2_IRQHandler(void)1006 WEAK void PWM0_RELOAD2_IRQHandler(void)
1007 { PWM0_RELOAD2_DriverIRQHandler();
1008 }
1009
PWM0_CMP3_IRQHandler(void)1010 WEAK void PWM0_CMP3_IRQHandler(void)
1011 { PWM0_CMP3_DriverIRQHandler();
1012 }
1013
PWM0_RELOAD3_IRQHandler(void)1014 WEAK void PWM0_RELOAD3_IRQHandler(void)
1015 { PWM0_RELOAD3_DriverIRQHandler();
1016 }
1017
PWM0_CAP_IRQHandler(void)1018 WEAK void PWM0_CAP_IRQHandler(void)
1019 { PWM0_CAP_DriverIRQHandler();
1020 }
1021
PWM0_RERR_IRQHandler(void)1022 WEAK void PWM0_RERR_IRQHandler(void)
1023 { PWM0_RERR_DriverIRQHandler();
1024 }
1025
PWM0_FAULT_IRQHandler(void)1026 WEAK void PWM0_FAULT_IRQHandler(void)
1027 { PWM0_FAULT_DriverIRQHandler();
1028 }
1029
CMP3_IRQHandler(void)1030 WEAK void CMP3_IRQHandler(void)
1031 { CMP3_DriverIRQHandler();
1032 }
1033
HSADC1_CCB_IRQHandler(void)1034 WEAK void HSADC1_CCB_IRQHandler(void)
1035 { HSADC1_CCB_DriverIRQHandler();
1036 }
1037
CAN1_ORed_Message_buffer_IRQHandler(void)1038 WEAK void CAN1_ORed_Message_buffer_IRQHandler(void)
1039 { CAN1_DriverIRQHandler();
1040 }
1041
CAN1_Bus_Off_IRQHandler(void)1042 WEAK void CAN1_Bus_Off_IRQHandler(void)
1043 { CAN1_DriverIRQHandler();
1044 }
1045
CAN1_Error_IRQHandler(void)1046 WEAK void CAN1_Error_IRQHandler(void)
1047 { CAN1_DriverIRQHandler();
1048 }
1049
CAN1_Tx_Warning_IRQHandler(void)1050 WEAK void CAN1_Tx_Warning_IRQHandler(void)
1051 { CAN1_DriverIRQHandler();
1052 }
1053
CAN1_Rx_Warning_IRQHandler(void)1054 WEAK void CAN1_Rx_Warning_IRQHandler(void)
1055 { CAN1_DriverIRQHandler();
1056 }
1057
CAN1_Wake_Up_IRQHandler(void)1058 WEAK void CAN1_Wake_Up_IRQHandler(void)
1059 { CAN1_DriverIRQHandler();
1060 }
1061
Reserved116_IRQHandler(void)1062 WEAK void Reserved116_IRQHandler(void)
1063 { Reserved116_DriverIRQHandler();
1064 }
1065
Reserved117_IRQHandler(void)1066 WEAK void Reserved117_IRQHandler(void)
1067 { Reserved117_DriverIRQHandler();
1068 }
1069
Reserved118_IRQHandler(void)1070 WEAK void Reserved118_IRQHandler(void)
1071 { Reserved118_DriverIRQHandler();
1072 }
1073
Reserved119_IRQHandler(void)1074 WEAK void Reserved119_IRQHandler(void)
1075 { Reserved119_DriverIRQHandler();
1076 }
1077
PWM1_CMP0_IRQHandler(void)1078 WEAK void PWM1_CMP0_IRQHandler(void)
1079 { PWM1_CMP0_DriverIRQHandler();
1080 }
1081
PWM1_RELOAD0_IRQHandler(void)1082 WEAK void PWM1_RELOAD0_IRQHandler(void)
1083 { PWM1_RELOAD0_DriverIRQHandler();
1084 }
1085
PWM1_CMP1_IRQHandler(void)1086 WEAK void PWM1_CMP1_IRQHandler(void)
1087 { PWM1_CMP1_DriverIRQHandler();
1088 }
1089
PWM1_RELOAD1_IRQHandler(void)1090 WEAK void PWM1_RELOAD1_IRQHandler(void)
1091 { PWM1_RELOAD1_DriverIRQHandler();
1092 }
1093
PWM1_CMP2_IRQHandler(void)1094 WEAK void PWM1_CMP2_IRQHandler(void)
1095 { PWM1_CMP2_DriverIRQHandler();
1096 }
1097
PWM1_RELOAD2_IRQHandler(void)1098 WEAK void PWM1_RELOAD2_IRQHandler(void)
1099 { PWM1_RELOAD2_DriverIRQHandler();
1100 }
1101
PWM1_CMP3_IRQHandler(void)1102 WEAK void PWM1_CMP3_IRQHandler(void)
1103 { PWM1_CMP3_DriverIRQHandler();
1104 }
1105
PWM1_RELOAD3_IRQHandler(void)1106 WEAK void PWM1_RELOAD3_IRQHandler(void)
1107 { PWM1_RELOAD3_DriverIRQHandler();
1108 }
1109
PWM1_CAP_IRQHandler(void)1110 WEAK void PWM1_CAP_IRQHandler(void)
1111 { PWM1_CAP_DriverIRQHandler();
1112 }
1113
PWM1_RERR_IRQHandler(void)1114 WEAK void PWM1_RERR_IRQHandler(void)
1115 { PWM1_RERR_DriverIRQHandler();
1116 }
1117
PWM1_FAULT_IRQHandler(void)1118 WEAK void PWM1_FAULT_IRQHandler(void)
1119 { PWM1_FAULT_DriverIRQHandler();
1120 }
1121
1122 //*****************************************************************************
1123
1124 #if defined (DEBUG)
1125 #pragma GCC pop_options
1126 #endif // (DEBUG)
1127