From 7021adc50a041bfb69bc4432b712aa07ef710ca3 Mon Sep 17 00:00:00 2001 From: "ajmeyer@mit.edu" Date: Sat, 19 Dec 2009 08:03:54 +0000 Subject: added USB support (TX over virtual com port), the linker modifications to work with the bootloader, a modified libcs-lanchon-stm32.a, and the arduino-required main.cxx and WProgram.h git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@72 749a229e-a60e-11de-b98f-4500b42dc123 --- src/wiring/wiring.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/wiring/wiring.c') diff --git a/src/wiring/wiring.c b/src/wiring/wiring.c index 83679c7..bedce55 100644 --- a/src/wiring/wiring.c +++ b/src/wiring/wiring.c @@ -33,8 +33,14 @@ void init(void) { } void NVIC_Configuration(void) { +#ifdef VECT_TAB_ROM + NVIC_SetVectorTable(USER_ADDR_ROM, 0x0); +#elifdef VECT_TAB_RAM + NVIC_SetVectorTable(USER_ADDR_RAM, 0x0); +#else // VECT_TAB_BASE /* Set the Vector Table base location at 0x08000000 */ - NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0); + NVIC_SetVectorTable(NVIC_VectTab_FLASH, 0x0); +#endif } -- cgit v1.2.3