diff options
Diffstat (limited to 'c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_init.c')
-rw-r--r-- | c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_init.c | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_init.c b/c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_init.c deleted file mode 100644 index ae933f76d2..0000000000 --- a/c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_init.c +++ /dev/null @@ -1,65 +0,0 @@ -/* - * NXP/Philips LPC22XX/LPC21xx Interrupt handler - * Ray 2007 <rayx.cn@gmail.com> to support LPC ARM - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.org/license/LICENSE. - */ -#include <irq.h> -#include <bsp.h> -#include <lpc22xx.h> - - -/* - * Interrupt system initialization. Disable interrupts, clear - * any that are pending. - */ -void BSP_rtems_irq_mngt_init(void) -{ - long *vectorTable; - int i; - - /* disable all interrupts */ - VICIntEnClr = 0xFFFFFFFF; - - vectorTable = (long *) VECTOR_TABLE; - /* Initialize the vector table contents with default handler */ - for (i=0; i<BSP_MAX_INT; i++) { - *(vectorTable + i) = (long)(default_int_handler); - } - - /* - * Set IRQHandler - */ - IRQ_VECTOR_ADDR = 0xE59FF018; /* LDR PC,[PC,#0x18] instruction */ - - /* - * Set FIQHandler - */ - FIQ_VECTOR_ADDR = 0xE59FF018; /* LDR PC,[PC,#0x18] instruction */ - - /* - * We does not need the next interrupt sources in the moment, - * therefore jump to itself. - */ - UNDEFINED_INSTRUCTION_VECTOR_ADDR = 0xEAFFFFFE; - SOFTWARE_INTERRUPT_VECTOR_ADDR = 0xEAFFFFFE; - PREFETCH_ABORT_VECTOR_ADDR = 0xEAFFFFFE; - - /* - * In case we must find an ABORT error, - * enable the next lines and set a breakpoint - * in ABORTHandler. - */ -#if 1 - DATA_ABORT_VECTOR_ADDR = 0xE59FF018; -#endif - - /* - * Init the Vectored Interrupt Controller (VIC) - */ - VICProtection = 0; - VICIntSelect = 0; - VICVectAddr = 0; -} - |