source: rtems/c/src/lib/libcpu/arm/lpc22xx/irq/irq.h @ 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: 2.8 KB
Line 
1/*
2 * Interrupt handler Header file
3 *
4 * Copyright (c) 2010 embedded brains GmbH.
5 *
6 * Copyright (c) 2006 by Ray <rayx.cn@gmail.com> to support LPC ARM
7 *
8 *  The license and distribution terms for this file may be
9 *  found in the file LICENSE in this distribution or at
10 *  http://www.rtems.com/license/LICENSE.
11 *
12 *
13 *  $Id$
14 */
15
16#ifndef __IRQ_H__
17#define __IRQ_H__
18
19#ifndef __asm__
20
21#include <rtems.h>
22#include <rtems/irq.h>
23#include <rtems/irq-extension.h>
24
25#endif /* __asm__ */
26
27/* possible interrupt sources on the LPC22xx */
28#define LPC22xx_INTERRUPT_WDINT  0      /* Watchdog int. 0 */
29#define LPC22xx_INTERRUPT_RSV0   1      /* Reserved int. 1 */
30#define LPC22xx_INTERRUPT_DBGRX  2      /* Embedded ICE DbgCommRx receive */
31#define LPC22xx_INTERRUPT_DBGTX  3      /* Embedded ICE DbgCommRx Transmit*/
32#define LPC22xx_INTERRUPT_TIMER0 4      /* Timer 0 */
33#define LPC22xx_INTERRUPT_TIMER1 5      /* Timer 1 */
34#define LPC22xx_INTERRUPT_UART0  6      /* UART 0 */
35#define LPC22xx_INTERRUPT_UART1  7      /* UART 1 */
36#define LPC22xx_INTERRUPT_PWM0   8      /* PWM */
37#define LPC22xx_INTERRUPT_I2C    9      /* I2C  */
38#define LPC22xx_INTERRUPT_SPI0  10      /* SPI0 */
39#define LPC22xx_INTERRUPT_SPI1  11      /* SPI1 */
40#define LPC22xx_INTERRUPT_PLL   12      /* PLL */
41#define LPC22xx_INTERRUPT_RTC   13      /* RTC */
42#define LPC22xx_INTERRUPT_EINT0 14      /* Externel Interrupt 0 */
43#define LPC22xx_INTERRUPT_EINT1 15      /* Externel Interrupt 1 */
44#define LPC22xx_INTERRUPT_EINT2 16      /* Externel Interrupt 2 */
45#define LPC22xx_INTERRUPT_EINT3 17      /* Externel Interrupt 3 */
46#define LPC22xx_INTERRUPT_ADC   18      /* AD Converter */
47/* Following interrupt used by lpc229x */
48#define LPC22xx_INTERRUPT_CANERR 19     /* CAN LUTerr interrupt */
49#define LPC22xx_INTERRUPT_CAN1TX 20     /* CAN1 Tx interrupt */
50#define LPC22xx_INTERRUPT_CAN1RX 21     /* CAN1 Rx interrupt */
51#define LPC22xx_INTERRUPT_CAN2TX 22     /* CAN2 Tx interrupt */
52#define LPC22xx_INTERRUPT_CAN2RX 23     /* CAN2 Rx interrupt */
53#define LPC22xx_INTERRUPT_CAN3TX 24     /* CAN1 Tx interrupt */
54#define LPC22xx_INTERRUPT_CAN3RX 25     /* CAN1 Rx interrupt */
55#define LPC22xx_INTERRUPT_CAN4TX 26     /* CAN2 Tx interrupt */
56#define LPC22xx_INTERRUPT_CAN4RX 27     /* CAN2 Rx interrupt */
57#define BSP_MAX_INT              28
58
59#define BSP_INTERRUPT_VECTOR_MIN 0
60
61#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1)
62
63#define UNDEFINED_INSTRUCTION_VECTOR_ADDR   (*(u_long *)0x00000004L)
64#define SOFTWARE_INTERRUPT_VECTOR_ADDR      (*(u_long *)0x00000008L)
65#define PREFETCH_ABORT_VECTOR_ADDR          (*(u_long *)0x0000000CL)
66#define DATA_ABORT_VECTOR_ADDR              (*(u_long *)0x00000010L)
67#define IRQ_VECTOR_ADDR                     (*(u_long *)0x00000018L)
68#define FIQ_VECTOR_ADDR                     (*(u_long *)0x0000001CL)
69
70#define DATA_ABORT_ISR_ADDR                 (*(u_long *)0x00000030L)
71#define IRQ_ISR_ADDR                        (*(u_long *)0x00000038L)
72#define FIQ_ISR_ADDR                        (*(u_long *)0x0000003CL)
73
74#endif /* __IRQ_H__ */
Note: See TracBrowser for help on using the repository browser.