diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-04-30 13:15:49 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2010-04-30 13:15:49 +0000 |
commit | f4dc319a8f92190c6efac916fb8b9b651d89df7c (patch) | |
tree | 13fc80d373ab83ea5a7111ae927bc8815e9f4fca /c/src/lib/libcpu/arm/lpc22xx/irq/irq.h | |
parent | 2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-f4dc319a8f92190c6efac916fb8b9b651d89df7c.tar.bz2 |
2010-04-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* at91rm9200/irq/irq.c, at91rm9200/irq/irq.h, lpc22xx/irq/irq.c,
lpc22xx/irq/irq.h, mc9328mxl/irq/irq.c, mc9328mxl/irq/irq.h,
pxa255/irq/irq.c, pxa255/irq/irq.h, s3c24xx/irq/irq.c,
s3c24xx/irq/irq.h: The previous interrupt warning fix changed the
interrupt handler API. To fix this problem the generic interrupt
support framework will be used now. This eliminates a lot of copy and
paste code. The interrupt header file is now <bsp/irq.h>.
* at91rm9200/clock/clock.c, lpc22xx/clock/clockdrv.c,
mc9328mxl/clock/clockdrv.c, pxa255/clock/clock.c,
s3c24xx/clock/clockdrv.c: Include <bsp/irq.h> instead of <irq.h>.
* at91rm9200/irq/bsp_irq_asm.S, at91rm9200/irq/bsp_irq_init.c,
mc9328mxl/irq/bsp_irq_asm.S, mc9328mxl/irq/bsp_irq_init.c,
s3c24xx/irq/bsp_irq_asm.S, s3c24xx/irq/bsp_irq_init.c: Removed files.
* Makefile.am, preinstall.am: Reflect changes above.
Diffstat (limited to 'c/src/lib/libcpu/arm/lpc22xx/irq/irq.h')
-rw-r--r-- | c/src/lib/libcpu/arm/lpc22xx/irq/irq.h | 40 |
1 files changed, 9 insertions, 31 deletions
diff --git a/c/src/lib/libcpu/arm/lpc22xx/irq/irq.h b/c/src/lib/libcpu/arm/lpc22xx/irq/irq.h index 3904484585..def9b61e5b 100644 --- a/c/src/lib/libcpu/arm/lpc22xx/irq/irq.h +++ b/c/src/lib/libcpu/arm/lpc22xx/irq/irq.h @@ -1,6 +1,8 @@ /* * Interrupt handler Header file * + * Copyright (c) 2010 embedded brains GmbH. + * * Copyright (c) 2006 by Ray <rayx.cn@gmail.com> to support LPC ARM * * The license and distribution terms for this file may be @@ -15,25 +17,13 @@ #ifndef __IRQ_H__ #define __IRQ_H__ -#ifdef __cplusplus -extern "C" { -#endif - - /* define that can be useful (the values are just examples) */ #ifndef __asm__ -/* - * Include some preprocessor value also used by assember code - */ -#include <rtems/irq.h> #include <rtems.h> -#include <lpc22xx.h> - -extern void default_int_handler(rtems_irq_hdl_param unused); +#include <rtems/irq.h> +#include <rtems/irq-extension.h> -/*********************************************************************** - * Constants - **********************************************************************/ +#endif /* __asm__ */ /* possible interrupt sources on the LPC22xx */ #define LPC22xx_INTERRUPT_WDINT 0 /* Watchdog int. 0 */ @@ -67,6 +57,10 @@ extern void default_int_handler(rtems_irq_hdl_param unused); #define LPC22xx_INTERRUPT_CAN4RX 27 /* CAN2 Rx interrupt */ #define BSP_MAX_INT 28 +#define BSP_INTERRUPT_VECTOR_MIN 0 + +#define BSP_INTERRUPT_VECTOR_MAX (BSP_MAX_INT - 1) + #define UNDEFINED_INSTRUCTION_VECTOR_ADDR (*(u_long *)0x00000004L) #define SOFTWARE_INTERRUPT_VECTOR_ADDR (*(u_long *)0x00000008L) #define PREFETCH_ABORT_VECTOR_ADDR (*(u_long *)0x0000000CL) @@ -78,20 +72,4 @@ extern void default_int_handler(rtems_irq_hdl_param unused); #define IRQ_ISR_ADDR (*(u_long *)0x00000038L) #define FIQ_ISR_ADDR (*(u_long *)0x0000003CL) - -//extern rtems_irq_hdl bsp_vector_table[BSP_MAX_INT]; -#define VECTOR_TABLE VICVectAddrBase - - -/* - * function to initialize the interrupt for a specific BSP - */ -void BSP_rtems_irq_mngt_init(void); - -#endif /* __asm__ */ - -#ifdef __cplusplus -} -#endif - #endif /* __IRQ_H__ */ |