From 27e7b701ceb1a96070b8eeadf85d3643a7adcc4e Mon Sep 17 00:00:00 2001 From: Pixel Date: Thu, 27 Jan 2011 22:19:47 -0800 Subject: I fail at C-programming. Base VTOR address now works properly. --- arch/arm/lpc17xx/mbed/BoardInit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'arch/arm/lpc17xx/mbed/BoardInit.c') diff --git a/arch/arm/lpc17xx/mbed/BoardInit.c b/arch/arm/lpc17xx/mbed/BoardInit.c index 9c5aa89..bd31b35 100644 --- a/arch/arm/lpc17xx/mbed/BoardInit.c +++ b/arch/arm/lpc17xx/mbed/BoardInit.c @@ -1,9 +1,9 @@ #include "lpc17xx_nvic.h" -extern void * __cs3_interrupt_vector_mutable; +extern uintptr_t __cs3_interrupt_vector_mutable[]; void BoardEarlyInit() { - //NVIC_SetVTOR((uint32_t) __cs3_interrupt_vector_mutable); + NVIC_SetVTOR((uintptr_t) __cs3_interrupt_vector_mutable); } void BoardLateInit() { -- cgit v1.2.3