4.104.114.95
Rev | Line | |
---|
[af85485] | 1 | /* |
---|
| 2 | * Atmel AT91RM9200 Interrupt handler |
---|
| 3 | * |
---|
| 4 | * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com> |
---|
| 5 | * |
---|
| 6 | * The license and distribution terms for this file may be |
---|
| 7 | * found in the file LICENSE in this distribution or at |
---|
| 8 | * |
---|
[93f4a906] | 9 | * http://www.rtems.com/license/LICENSE. |
---|
[af85485] | 10 | * |
---|
| 11 | * |
---|
| 12 | * $Id$ |
---|
| 13 | */ |
---|
| 14 | #include <irq.h> |
---|
| 15 | #include <bsp.h> |
---|
| 16 | #include <at91rm9200.h> |
---|
| 17 | |
---|
[1233af3] | 18 | extern void default_int_handler(void); |
---|
[af85485] | 19 | |
---|
| 20 | /* |
---|
| 21 | * Interrupt system initialization. Disable interrupts, clear |
---|
| 22 | * any that are pending. |
---|
| 23 | */ |
---|
[1233af3] | 24 | void BSP_rtems_irq_mngt_init(void) |
---|
[af85485] | 25 | { |
---|
[7afe5a2] | 26 | long *vectorTable; |
---|
| 27 | int i; |
---|
| 28 | |
---|
| 29 | vectorTable = (long *) VECTOR_TABLE; |
---|
| 30 | |
---|
| 31 | /* Initialize the vector table contents with default handler */ |
---|
| 32 | for (i=0; i<BSP_MAX_INT; i++) { |
---|
| 33 | *(vectorTable + i) = (long)(default_int_handler); |
---|
| 34 | } |
---|
| 35 | |
---|
[af85485] | 36 | /* disable all interrupts */ |
---|
| 37 | AIC_CTL_REG(AIC_IDCR) = 0xffffffff; |
---|
| 38 | } |
---|
| 39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.