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

4.104.11
Last change on this file since c193baad was c193baad, checked in by Thomas Doerfler <Thomas.Doerfler@…>, on Apr 9, 2010 at 8:24:57 PM

unify irq data types and code, merge s3c2400/s3c2410 support

  • Property mode set to 100755
File size: 905 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(rtems_irq_hdl_param unused)
17{
18  printk("I am dummy handler\n");
19}
20
21void (*IRQ_table[PRIMARY_IRQS])(rtems_irq_hdl_param param);
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.