diff options
| author | mlundinse <lundin@mlu.mine.nu> | 2013-05-04 09:43:02 +0200 |
|---|---|---|
| committer | mlundinse <lundin@mlu.mine.nu> | 2013-05-04 09:43:02 +0200 |
| commit | 8bae825ea05b1dd4b9c89c2415e6172e59028512 (patch) | |
| tree | 3426926bae92681b50a0b2dbbe95607a5901d366 | |
| parent | 13487123a768e6e695dc49ba9a007143175eb376 (diff) | |
| parent | f11dc6be4f55ff8450416c3ce5a1018398376b8a (diff) | |
Merge branch 'master' into usbbuildwork
| -rw-r--r-- | wirish/boards.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/wirish/boards.cpp b/wirish/boards.cpp index e053245..a693fa6 100644 --- a/wirish/boards.cpp +++ b/wirish/boards.cpp @@ -143,15 +143,11 @@ static void setup_clocks(void) { * These addresses are where usercode starts when a bootloader is * present. If no bootloader is present, the user NVIC usually starts * at the Flash base address, 0x08000000. - * - * FIXME Let the build specify the vector table address numerically to - * avoid having these magic values -- some people have been fixing up - * the bootloader so it uses less space. */ #define USER_ADDR_ROM 0x08005000 #define USER_ADDR_RAM 0x20000C00 extern char __text_start__; - + static void setup_nvic(void) { #ifdef VECT_TAB_FLASH nvic_init(USER_ADDR_ROM, 0); @@ -163,7 +159,8 @@ static void setup_nvic(void) { // A numerically supplied value nvic_init((uint32)VECT_TAB_ADDR, 0); #else - // Use the __text_start__ value from the linker scipt, this should be the start of the vector table + // Use the __text_start__ value from the linker script; this + // should be the start of the vector table. nvic_init((uint32)&__text_start__, 0); #endif } |
