diff --git a/libcpu/arm/lpc24xx/interrupt.c b/libcpu/arm/lpc24xx/interrupt.c index 5e622a584a4e0bb2ef36268a43592faa3cb9e1a5..d697fb1c528e8de0668f7cf5e5cf0f2a78e1732b 100644 --- a/libcpu/arm/lpc24xx/interrupt.c +++ b/libcpu/arm/lpc24xx/interrupt.c @@ -77,11 +77,11 @@ void rt_hw_interrupt_install(int vector, rt_isr_handler_t new_handler, rt_isr_ha if(vector < MAX_HANDLERS) { /* find first un-assigned VIC address for the handler */ - vect_addr = (rt_uint32_t *)(VIC_BASE_ADDR + 0x100 + vector*4); - + vect_addr = (rt_uint32_t *)(VIC_BASE_ADDR + 0x100 + vector*4); + /* get old handler */ if (old_handler != RT_NULL) *old_handler = (rt_isr_handler_t)*vect_addr; - + *vect_addr = (rt_uint32_t)new_handler; /* set interrupt vector */ } }