OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [CORTEX_AT91SAM3U256_IAR/] [system/] [exceptions.c] - Blame information for rev 590

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 580 jeremybenn
/* ----------------------------------------------------------------------------
2
 *         ATMEL Microcontroller Software Support
3
 * ----------------------------------------------------------------------------
4
 * Copyright (c) 2008, Atmel Corporation
5
 *
6
 * All rights reserved.
7
 *
8
 * Redistribution and use in source and binary forms, with or without
9
 * modification, are permitted provided that the following conditions are met:
10
 *
11
 * - Redistributions of source code must retain the above copyright notice,
12
 * this list of conditions and the disclaimer below.
13
 *
14
 * Atmel's name may not be used to endorse or promote products derived from
15
 * this software without specific prior written permission.
16
 *
17
 * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20
 * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 * ----------------------------------------------------------------------------
28
 */
29
 
30
/*
31
** This file contains the default exception handlers
32
** and exception table.
33
*/
34
 
35
//------------------------------------------------------------------------------
36
//         Headers
37
//------------------------------------------------------------------------------
38
 
39
#include "exceptions.h"
40
 
41
//------------------------------------------------------------------------------
42
//         Types
43
//------------------------------------------------------------------------------
44
 
45
//------------------------------------------------------------------------------
46
//         Exception Handlers
47
//------------------------------------------------------------------------------
48
 
49
 
50
//------------------------------------------------------------------------------
51
// Default irq handler
52
//------------------------------------------------------------------------------
53
void IrqHandlerNotUsed(void)
54
{
55
    while(1);
56
}
57
 
58
//------------------------------------------------------------------------------
59
// Provide weak aliases for each Exception handler to the IrqHandlerNotUsed. 
60
// As they are weak aliases, any function with the same name will override 
61
// this definition.
62
//------------------------------------------------------------------------------
63
 
64
//------------------------------------------------------------------------------
65
// System interrupt
66
//------------------------------------------------------------------------------
67
WEAK void NMI_Handler(void)
68
{
69
    while(1);
70
}
71
 
72
//------------------------------------------------------------------------------
73
//------------------------------------------------------------------------------
74
WEAK void HardFault_Handler(void)
75
{
76
    while(1);
77
}
78
 
79
//------------------------------------------------------------------------------
80
//------------------------------------------------------------------------------
81
WEAK void MemManage_Handler(void)
82
{
83
    while(1);
84
}
85
 
86
//------------------------------------------------------------------------------
87
//------------------------------------------------------------------------------
88
WEAK void BusFault_Handler(void)
89
{
90
    while(1);
91
}
92
 
93
//------------------------------------------------------------------------------
94
//------------------------------------------------------------------------------
95
WEAK void UsageFault_Handler(void)
96
{
97
    while(1);
98
}
99
 
100
//------------------------------------------------------------------------------
101
//------------------------------------------------------------------------------
102
WEAK void SVC_Handler(void)
103
{
104
    while(1);
105
}
106
 
107
//------------------------------------------------------------------------------
108
//------------------------------------------------------------------------------
109
WEAK void DebugMon_Handler(void)
110
{
111
    while(1);
112
}
113
 
114
//------------------------------------------------------------------------------
115
//------------------------------------------------------------------------------
116
WEAK void PendSV_Handler(void)
117
{
118
    while(1);
119
}
120
 
121
//------------------------------------------------------------------------------
122
// for Cortex M3
123
//------------------------------------------------------------------------------
124
WEAK void SysTick_Handler(void)
125
{
126
    while(1);
127
}
128
 
129
//------------------------------------------------------------------------------
130
// External interrupt
131
//------------------------------------------------------------------------------
132
 
133
//------------------------------------------------------------------------------
134
// for SAM7/9
135
//------------------------------------------------------------------------------
136
void SYS_IrqHandler( void )
137
{
138
    while(1);
139
}
140
 
141
//------------------------------------------------------------------------------
142
// SUPPLY CONTROLLER
143
//------------------------------------------------------------------------------
144
WEAK void SUPC_IrqHandler(void)
145
{
146
    while(1);
147
}
148
 
149
//------------------------------------------------------------------------------
150
// RESET CONTROLLER
151
//------------------------------------------------------------------------------
152
WEAK void RSTC_IrqHandler(void)
153
{
154
    while(1);
155
}
156
 
157
//------------------------------------------------------------------------------
158
// REAL TIME CLOCK
159
//------------------------------------------------------------------------------
160
WEAK void RTC_IrqHandler(void)
161
{
162
    while(1);
163
}
164
 
165
//------------------------------------------------------------------------------
166
// REAL TIME TIMER
167
//------------------------------------------------------------------------------
168
WEAK void RTT_IrqHandler(void)
169
{
170
    while(1);
171
}
172
 
173
//------------------------------------------------------------------------------
174
// WATCHDOG TIMER
175
//------------------------------------------------------------------------------
176
WEAK void WDT_IrqHandler(void)
177
{
178
    while(1);
179
}
180
 
181
//------------------------------------------------------------------------------
182
// PMC
183
//------------------------------------------------------------------------------
184
WEAK void PMC_IrqHandler(void)
185
{
186
    while(1);
187
}
188
 
189
//------------------------------------------------------------------------------
190
// EFC0
191
//------------------------------------------------------------------------------
192
WEAK void EFC0_IrqHandler(void)
193
{
194
    while(1);
195
}
196
 
197
//------------------------------------------------------------------------------
198
// EFC1
199
//------------------------------------------------------------------------------
200
WEAK void EFC1_IrqHandler(void)
201
{
202
    while(1);
203
}
204
//------------------------------------------------------------------------------
205
// DBGU
206
//------------------------------------------------------------------------------
207
WEAK void DBGU_IrqHandler(void)
208
{
209
    while(1);
210
}
211
 
212
//------------------------------------------------------------------------------
213
// HSMC4
214
//------------------------------------------------------------------------------
215
WEAK void HSMC4_IrqHandler(void)
216
{
217
    while(1);
218
}
219
 
220
//------------------------------------------------------------------------------
221
// Parallel IO Controller A
222
//------------------------------------------------------------------------------
223
WEAK void PIOA_IrqHandler(void)
224
{
225
    while(1);
226
}
227
 
228
//------------------------------------------------------------------------------
229
// Parallel IO Controller B
230
//------------------------------------------------------------------------------
231
WEAK void PIOB_IrqHandler(void)
232
{
233
    while(1);
234
}
235
 
236
//------------------------------------------------------------------------------
237
// Parallel IO Controller C
238
//------------------------------------------------------------------------------
239
WEAK void PIOC_IrqHandler(void)
240
{
241
    while(1);
242
}
243
 
244
//------------------------------------------------------------------------------
245
// USART 0
246
//------------------------------------------------------------------------------
247
WEAK void USART0_IrqHandler(void)
248
{
249
    while(1);
250
}
251
 
252
//------------------------------------------------------------------------------
253
// USART 1
254
//------------------------------------------------------------------------------
255
WEAK void USART1_IrqHandler(void)
256
{
257
    while(1);
258
}
259
 
260
//------------------------------------------------------------------------------
261
// USART 2
262
//------------------------------------------------------------------------------
263
WEAK void USART2_IrqHandler(void)
264
{
265
    while(1);
266
}
267
 
268
//------------------------------------------------------------------------------
269
// USART 3
270
//------------------------------------------------------------------------------
271
WEAK void USART3_IrqHandler(void)
272
{
273
    while(1);
274
}
275
 
276
//------------------------------------------------------------------------------
277
// Multimedia Card Interface
278
//------------------------------------------------------------------------------
279
WEAK void MCI0_IrqHandler(void)
280
{
281
    while(1);
282
}
283
 
284
//------------------------------------------------------------------------------
285
// TWI 0
286
//------------------------------------------------------------------------------
287
WEAK void TWI0_IrqHandler(void)
288
{
289
    while(1);
290
}
291
 
292
//------------------------------------------------------------------------------
293
// TWI 1
294
//------------------------------------------------------------------------------
295
WEAK void TWI1_IrqHandler(void)
296
{
297
    while(1);
298
}
299
 
300
//------------------------------------------------------------------------------
301
// Serial Peripheral Interface 0
302
//------------------------------------------------------------------------------
303
WEAK void SPI0_IrqHandler(void)
304
{
305
    while(1);
306
}
307
 
308
//------------------------------------------------------------------------------
309
// Serial Synchronous Controller 0
310
//------------------------------------------------------------------------------
311
WEAK void SSC0_IrqHandler(void)
312
{
313
    while(1);
314
}
315
 
316
//------------------------------------------------------------------------------
317
// Timer Counter 0
318
//------------------------------------------------------------------------------
319
WEAK void TC0_IrqHandler(void)
320
{
321
    while(1);
322
}
323
 
324
//------------------------------------------------------------------------------
325
// Timer Counter 1
326
//------------------------------------------------------------------------------
327
WEAK void TC1_IrqHandler(void)
328
{
329
    while(1);
330
}
331
 
332
//------------------------------------------------------------------------------
333
// Timer Counter 2
334
//------------------------------------------------------------------------------
335
WEAK void TC2_IrqHandler(void)
336
{
337
    while(1);
338
}
339
 
340
//------------------------------------------------------------------------------
341
// PWM Controller
342
//------------------------------------------------------------------------------
343
WEAK void PWM_IrqHandler(void)
344
{
345
    while(1);
346
}
347
 
348
//------------------------------------------------------------------------------
349
// ADC controller0
350
//------------------------------------------------------------------------------
351
WEAK void ADCC0_IrqHandler(void)
352
{
353
    while(1);
354
}
355
 
356
//------------------------------------------------------------------------------
357
// ADC controller1
358
//------------------------------------------------------------------------------
359
WEAK void ADCC1_IrqHandler(void)
360
{
361
    while(1);
362
}
363
 
364
//------------------------------------------------------------------------------
365
// HDMA
366
//------------------------------------------------------------------------------
367
WEAK void HDMA_IrqHandler(void)
368
{
369
    while(1);
370
}
371
 
372
//------------------------------------------------------------------------------
373
// USB Device High Speed UDP_HS
374
//------------------------------------------------------------------------------
375
WEAK void UDPD_IrqHandler(void)
376
{
377
    while(1);
378
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.