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/at91rm9200/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 '')
-rw-r--r-- | c/src/lib/libcpu/arm/at91rm9200/irq/irq.h | 36 |
1 files changed, 8 insertions, 28 deletions
diff --git a/c/src/lib/libcpu/arm/at91rm9200/irq/irq.h b/c/src/lib/libcpu/arm/at91rm9200/irq/irq.h index 1219c07e26..8ca865e1c1 100644 --- a/c/src/lib/libcpu/arm/at91rm9200/irq/irq.h +++ b/c/src/lib/libcpu/arm/at91rm9200/irq/irq.h @@ -1,6 +1,8 @@ /* * Interrupt handler Header file * + * Copyright (c) 2010 embedded brains GmbH. + * * Copyright (c) 2004 by Jay Monkman <jtm@lopingdog.com> * * The license and distribution terms for this file may be @@ -15,24 +17,14 @@ #ifndef __IRQ_H__ #define __IRQ_H__ -#ifdef __cplusplus -extern "C" { -#endif - #ifndef __asm__ -/* - * Include some preprocessor value also used by assember code - */ - -#include <rtems/irq.h> #include <rtems.h> -#include <at91rm9200.h> +#include <rtems/irq.h> +#include <rtems/irq-extension.h> + +#endif /* __asm__ */ -extern void default_int_handler(rtems_irq_hdl_param unused); -/*********************************************************************** - * Constants - **********************************************************************/ /* possible interrupt sources on the AT91RM9200 */ #define AT91RM9200_INT_FIQ 0 #define AT91RM9200_INT_SYSIRQ 1 @@ -68,20 +60,8 @@ extern void default_int_handler(rtems_irq_hdl_param unused); #define AT91RM9200_INT_IRQ6 31 #define AT91RM9200_MAX_INT 32 -/* vector table used by shared/irq_init.c */ -/* we can treat the AT91RM9200 AIC_SVR_BASE as */ -/* a vector table */ -#define VECTOR_TABLE AIC_SVR_BASE - -/* - * function to initialize the interrupt for a specific BSP - */ -void BSP_rtems_irq_mngt_init(); - -#endif /* __asm__ */ +#define BSP_INTERRUPT_VECTOR_MIN 0 -#ifdef __cplusplus -} -#endif +#define BSP_INTERRUPT_VECTOR_MAX (AT91RM9200_MAX_INT - 1) #endif /* __IRQ_H__ */ |