vectors.c
12.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
/*
* Copyright (C) 2017 Eistec AB
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingroup cpu_k22f
* @{
*
* @file
* @brief Interrupt vector definition for K22F MCUs
*
* @author Joakim Nohlgård <joakim.nohlgard@eistec.se>
*
* @}
*/
#include "vectors_kinetis.h"
/* CPU specific interrupt vector table */
ISR_VECTOR(1) const isr_t vector_cpu[CPU_IRQ_NUMOF] = {
isr_dma0, /* DMA channel 0 transfer complete */
isr_dma1, /* DMA channel 1 transfer complete */
isr_dma2, /* DMA channel 2 transfer complete */
isr_dma3, /* DMA channel 3 transfer complete */
isr_dma4, /* DMA channel 4 transfer complete */
isr_dma5, /* DMA channel 5 transfer complete */
isr_dma6, /* DMA channel 6 transfer complete */
isr_dma7, /* DMA channel 7 transfer complete */
isr_dma8, /* DMA channel 8 transfer complete */
isr_dma9, /* DMA channel 9 transfer complete */
isr_dma10, /* DMA channel 10 transfer complete */
isr_dma11, /* DMA channel 11 transfer complete */
isr_dma12, /* DMA channel 12 transfer complete */
isr_dma13, /* DMA channel 13 transfer complete */
isr_dma14, /* DMA channel 14 transfer complete */
isr_dma15, /* DMA channel 15 transfer complete */
isr_dma_error, /* DMA channel 0 - 15 error */
isr_mcm, /* MCM normal interrupt */
isr_ftfl, /* FTFL command complete */
isr_ftfl_collision, /* FTFL read collision */
isr_pmc, /* PMC controller low-voltage detect low-voltage warning */
isr_llwu, /* Low leakage wakeup */
isr_wdog_ewm, /* Single interrupt vector for WDOG and EWM */
isr_rng, /* Randon number generator */
isr_i2c0, /* Inter-integrated circuit 0 */
isr_i2c1, /* Inter-integrated circuit 1 */
isr_spi0, /* Serial peripheral Interface 0 */
isr_spi1, /* Serial peripheral Interface 1 */
isr_i2s0_tx, /* Integrated interchip sound 0 transmit interrupt */
isr_i2s0_rx, /* Integrated interchip sound 0 receive interrupt */
isr_lpuart0, /* LPUART0 interrupt */
isr_uart0_rx_tx, /* UART0 receive/transmit interrupt */
isr_uart0_error, /* UART0 error interrupt */
isr_uart1_rx_tx, /* UART1 receive/transmit interrupt */
isr_uart1_error, /* UART1 error interrupt */
isr_uart2_rx_tx, /* UART2 receive/transmit interrupt */
isr_uart2_error, /* UART2 error interrupt */
dummy_handler, /* Reserved interrupt */
dummy_handler, /* Reserved interrupt */
isr_adc0, /* Analog-to-digital converter 0 */
isr_cmp0, /* Comparator 0 */
isr_cmp1, /* Comparator 1 */
isr_ftm0, /* FlexTimer module 0 fault overflow and channels interrupt */
isr_ftm1, /* FlexTimer module 1 fault overflow and channels interrupt */
isr_ftm2, /* FlexTimer module 2 fault overflow and channels interrupt */
dummy_handler, /* Reserved interrupt */
isr_rtc, /* Real time clock */
isr_rtc_seconds, /* Real time clock seconds */
isr_pit0, /* Periodic interrupt timer channel 0 */
isr_pit1, /* Periodic interrupt timer channel 1 */
isr_pit2, /* Periodic interrupt timer channel 2 */
isr_pit3, /* Periodic interrupt timer channel 3 */
isr_pdb0, /* Programmable delay block */
isr_usb0, /* USB OTG interrupt */
dummy_handler, /* Reserved interrupt */
dummy_handler, /* Reserved interrupt */
isr_dac0, /* Digital-to-analog converter 0 */
isr_mcg, /* Multipurpose clock generator */
isr_lptmr0, /* Low power timer interrupt */
isr_porta, /* Port A pin detect interrupt */
isr_portb, /* Port B pin detect interrupt */
isr_portc, /* Port C pin detect interrupt */
isr_portd, /* Port D pin detect interrupt */
isr_porte, /* Port E pin detect interrupt */
isr_swi, /* Software interrupt */
dummy_handler, /* Reserved interrupt */
dummy_handler, /* Reserved interrupt */
dummy_handler, /* Reserved interrupt */
dummy_handler, /* Reserved interrupt */
dummy_handler, /* Reserved interrupt */
dummy_handler, /* Reserved interrupt */
isr_ftm3, /* FlexTimer module 3 fault overflow and channels interrupt */
isr_dac1, /* Digital-to-analog converter 1 */
isr_adc1, /* Analog-to-digital converter 1 */
dummy_handler, /* reserved 90 */
dummy_handler, /* reserved 91 */
dummy_handler, /* reserved 92 */
dummy_handler, /* reserved 93 */
dummy_handler, /* reserved 94 */
dummy_handler, /* reserved 95 */
dummy_handler, /* reserved 96 */
dummy_handler, /* reserved 97 */
dummy_handler, /* reserved 98 */
dummy_handler, /* reserved 99 */
dummy_handler, /* reserved 100 */
dummy_handler, /* reserved 101 */
dummy_handler, /* reserved 102 */
dummy_handler, /* reserved 103 */
dummy_handler, /* reserved 104 */
dummy_handler, /* reserved 105 */
dummy_handler, /* reserved 106 */
dummy_handler, /* reserved 107 */
dummy_handler, /* reserved 108 */
dummy_handler, /* reserved 109 */
dummy_handler, /* reserved 110 */
dummy_handler, /* reserved 111 */
dummy_handler, /* reserved 112 */
dummy_handler, /* reserved 113 */
dummy_handler, /* reserved 114 */
dummy_handler, /* reserved 115 */
dummy_handler, /* reserved 116 */
dummy_handler, /* reserved 117 */
dummy_handler, /* reserved 118 */
dummy_handler, /* reserved 119 */
dummy_handler, /* reserved 120 */
dummy_handler, /* reserved 121 */
dummy_handler, /* reserved 122 */
dummy_handler, /* reserved 123 */
dummy_handler, /* reserved 124 */
dummy_handler, /* reserved 125 */
dummy_handler, /* reserved 126 */
dummy_handler, /* reserved 127 */
dummy_handler, /* reserved 128 */
dummy_handler, /* reserved 129 */
dummy_handler, /* reserved 130 */
dummy_handler, /* reserved 131 */
dummy_handler, /* reserved 132 */
dummy_handler, /* reserved 133 */
dummy_handler, /* reserved 134 */
dummy_handler, /* reserved 135 */
dummy_handler, /* reserved 136 */
dummy_handler, /* reserved 137 */
dummy_handler, /* reserved 138 */
dummy_handler, /* reserved 139 */
dummy_handler, /* reserved 140 */
dummy_handler, /* reserved 141 */
dummy_handler, /* reserved 142 */
dummy_handler, /* reserved 143 */
dummy_handler, /* reserved 144 */
dummy_handler, /* reserved 145 */
dummy_handler, /* reserved 146 */
dummy_handler, /* reserved 147 */
dummy_handler, /* reserved 148 */
dummy_handler, /* reserved 149 */
dummy_handler, /* reserved 150 */
dummy_handler, /* reserved 151 */
dummy_handler, /* reserved 152 */
dummy_handler, /* reserved 153 */
dummy_handler, /* reserved 154 */
dummy_handler, /* reserved 155 */
dummy_handler, /* reserved 156 */
dummy_handler, /* reserved 157 */
dummy_handler, /* reserved 158 */
dummy_handler, /* reserved 159 */
dummy_handler, /* reserved 160 */
dummy_handler, /* reserved 161 */
dummy_handler, /* reserved 162 */
dummy_handler, /* reserved 163 */
dummy_handler, /* reserved 164 */
dummy_handler, /* reserved 165 */
dummy_handler, /* reserved 166 */
dummy_handler, /* reserved 167 */
dummy_handler, /* reserved 168 */
dummy_handler, /* reserved 169 */
dummy_handler, /* reserved 170 */
dummy_handler, /* reserved 171 */
dummy_handler, /* reserved 172 */
dummy_handler, /* reserved 173 */
dummy_handler, /* reserved 174 */
dummy_handler, /* reserved 175 */
dummy_handler, /* reserved 176 */
dummy_handler, /* reserved 177 */
dummy_handler, /* reserved 178 */
dummy_handler, /* reserved 179 */
dummy_handler, /* reserved 180 */
dummy_handler, /* reserved 181 */
dummy_handler, /* reserved 182 */
dummy_handler, /* reserved 183 */
dummy_handler, /* reserved 184 */
dummy_handler, /* reserved 185 */
dummy_handler, /* reserved 186 */
dummy_handler, /* reserved 187 */
dummy_handler, /* reserved 188 */
dummy_handler, /* reserved 189 */
dummy_handler, /* reserved 190 */
dummy_handler, /* reserved 191 */
dummy_handler, /* reserved 192 */
dummy_handler, /* reserved 193 */
dummy_handler, /* reserved 194 */
dummy_handler, /* reserved 195 */
dummy_handler, /* reserved 196 */
dummy_handler, /* reserved 197 */
dummy_handler, /* reserved 198 */
dummy_handler, /* reserved 199 */
dummy_handler, /* reserved 200 */
dummy_handler, /* reserved 201 */
dummy_handler, /* reserved 202 */
dummy_handler, /* reserved 203 */
dummy_handler, /* reserved 204 */
dummy_handler, /* reserved 205 */
dummy_handler, /* reserved 206 */
dummy_handler, /* reserved 207 */
dummy_handler, /* reserved 208 */
dummy_handler, /* reserved 209 */
dummy_handler, /* reserved 210 */
dummy_handler, /* reserved 211 */
dummy_handler, /* reserved 212 */
dummy_handler, /* reserved 213 */
dummy_handler, /* reserved 214 */
dummy_handler, /* reserved 215 */
dummy_handler, /* reserved 216 */
dummy_handler, /* reserved 217 */
dummy_handler, /* reserved 218 */
dummy_handler, /* reserved 219 */
dummy_handler, /* reserved 220 */
dummy_handler, /* reserved 221 */
dummy_handler, /* reserved 222 */
dummy_handler, /* reserved 223 */
dummy_handler, /* reserved 224 */
dummy_handler, /* reserved 225 */
dummy_handler, /* reserved 226 */
dummy_handler, /* reserved 227 */
dummy_handler, /* reserved 228 */
dummy_handler, /* reserved 229 */
dummy_handler, /* reserved 230 */
dummy_handler, /* reserved 231 */
dummy_handler, /* reserved 232 */
dummy_handler, /* reserved 233 */
dummy_handler, /* reserved 234 */
dummy_handler, /* reserved 235 */
dummy_handler, /* reserved 236 */
dummy_handler, /* reserved 237 */
dummy_handler, /* reserved 238 */
dummy_handler, /* reserved 239 */
dummy_handler, /* reserved 240 */
dummy_handler, /* reserved 241 */
dummy_handler, /* reserved 242 */
dummy_handler, /* reserved 243 */
dummy_handler, /* reserved 244 */
dummy_handler, /* reserved 245 */
dummy_handler, /* reserved 246 */
dummy_handler, /* reserved 247 */
dummy_handler, /* reserved 248 */
dummy_handler, /* reserved 249 */
dummy_handler, /* reserved 250 */
dummy_handler, /* reserved 251 */
dummy_handler, /* reserved 252 */
dummy_handler, /* reserved 253 */
dummy_handler, /* reserved 254 */
dummy_handler, /* reserved 255 */
};