4.115
Last change
on this file since c499856 was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
Property mode set to
100644
|
File size:
893 bytes
|
Line | |
---|
1 | /* |
---|
2 | * PXA255 interrupt controller by Yang Xi <hiyangxi@gmail.com> |
---|
3 | * Copyright (c) 2004 by Jay Monkman <jtm@lopgindog.com> |
---|
4 | * |
---|
5 | * The license and distribution terms for this file may be |
---|
6 | * found in the file LICENSE in this distribution or at |
---|
7 | * http://www.rtems.org/license/LICENSE. |
---|
8 | */ |
---|
9 | |
---|
10 | #include <irq.h> |
---|
11 | #include <bsp.h> |
---|
12 | #include <pxa255.h> |
---|
13 | |
---|
14 | void dummy_handler(rtems_irq_hdl_param unused) |
---|
15 | { |
---|
16 | printk("I am dummy handler\n"); |
---|
17 | } |
---|
18 | |
---|
19 | void (*IRQ_table[PRIMARY_IRQS])(rtems_irq_hdl_param param); |
---|
20 | |
---|
21 | /* |
---|
22 | * Interrupt system initialization. Disable interrupts, clear |
---|
23 | * any that are pending. |
---|
24 | */ |
---|
25 | void BSP_rtems_irq_mngt_init(void) |
---|
26 | { |
---|
27 | int i; |
---|
28 | |
---|
29 | /* Initialize the vector table contents with default handler */ |
---|
30 | for (i=0; i<PRIMARY_IRQS; i++) { |
---|
31 | IRQ_table[i] = dummy_handler; |
---|
32 | } |
---|
33 | |
---|
34 | /* disable all interrupts */ |
---|
35 | XSCALE_INT_ICMR = 0x0; |
---|
36 | |
---|
37 | /* Direct the interrupt to IRQ*/ |
---|
38 | XSCALE_INT_ICLR = 0x0; |
---|
39 | } |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.