source: rtems/c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_init.c @ cfaa366

4.115
Last change on this file since cfaa366 was cfaa366, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 17:55:58

General - Remove extraneous blank line in license message

Many files had an extra blank line in the license text
found in the file header. This patch removes that line.

The script that did this also turned off execute permission
when it was turned on incorrectly.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 *  NXP/Philips LPC22XX/LPC21xx Interrupt handler
3 *  Ray 2007 <rayx.cn@gmail.com> to support LPC ARM
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.com/license/LICENSE.
7 *
8 *
9 *  $Id$
10 */
11#include <irq.h>
12#include <bsp.h>
13#include <lpc22xx.h>
14
15
16/*
17 * Interrupt system initialization. Disable interrupts, clear
18 * any that are pending.
19 */
20void BSP_rtems_irq_mngt_init(void)
21{
22  long *vectorTable;
23  int i;
24
25    /* disable all interrupts */
26  VICIntEnClr = 0xFFFFFFFF;
27
28  vectorTable = (long *) VECTOR_TABLE;
29  /* Initialize the vector table contents with default handler */
30  for (i=0; i<BSP_MAX_INT; i++) {
31      *(vectorTable + i) = (long)(default_int_handler);
32  }
33
34  /*
35   * Set IRQHandler
36   */
37  IRQ_VECTOR_ADDR = 0xE59FF018;           /* LDR PC,[PC,#0x18] instruction */
38
39  /*
40   * Set FIQHandler
41   */
42  FIQ_VECTOR_ADDR = 0xE59FF018;           /* LDR PC,[PC,#0x18] instruction */
43
44  /*
45   * We does not need the next interrupt sources in the moment,
46   * therefore jump to itself.
47   */
48  UNDEFINED_INSTRUCTION_VECTOR_ADDR = 0xEAFFFFFE;
49  SOFTWARE_INTERRUPT_VECTOR_ADDR    = 0xEAFFFFFE;
50  PREFETCH_ABORT_VECTOR_ADDR        = 0xEAFFFFFE;
51
52  /*
53   * In case we must find an ABORT error,
54   * enable the next lines and set a breakpoint
55   * in ABORTHandler.
56   */
57#if 1
58  DATA_ABORT_VECTOR_ADDR = 0xE59FF018;
59#endif
60
61  /*
62   * Init the Vectored Interrupt Controller (VIC)
63   */
64  VICProtection = 0;
65  VICIntSelect = 0;
66  VICVectAddr = 0;
67}
68
Note: See TracBrowser for help on using the repository browser.