source: rtems/c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_init.c @ 359e537

4.104.115
Last change on this file since 359e537 was 359e537, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/30/09 at 05:09:41

Whitespace removal.

  • Property mode set to 100755
File size: 884 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.com/license/LICENSE.
8 *
9 *  $Id$
10 */
11
12#include <irq.h>
13#include <bsp.h>
14#include <pxa255.h>
15
16void dummy_handler(uint32_t vector)
17{
18  printk("I am dummy handler\n");
19}
20
21void (*IRQ_table[PRIMARY_IRQS])(uint32_t vector);
22
23/*
24 * Interrupt system initialization. Disable interrupts, clear
25 * any that are pending.
26 */
27void BSP_rtems_irq_mngt_init(void)
28{
29  int i;
30
31  /* Initialize the vector table contents with default handler */
32  for (i=0; i<PRIMARY_IRQS; i++) {
33    IRQ_table[i] = dummy_handler;
34  }
35
36  /* disable all interrupts */
37  XSCALE_INT_ICMR = 0x0;
38
39  /* Direct the interrupt to IRQ*/
40  XSCALE_INT_ICLR = 0x0;
41}
42
Note: See TracBrowser for help on using the repository browser.