[mbed][MTS_MDOT_F411RE] cmsis_nvic.c: fix NVIC_FLASH_VECTOR_ADDRESS with custom VECT_TAB_OFFSET

pull/1001/head
Jesse Gilles 2015-02-13 13:27:18 -06:00 committed by Mike Fiore
parent bbe23beb6e
commit 6bd25a13d3
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@
#include "cmsis_nvic.h"
#define NVIC_RAM_VECTOR_ADDRESS (0x20000000) // Vectors positioned at start of RAM
#define NVIC_FLASH_VECTOR_ADDRESS (0x08000000) // Initial vector position in flash
#define NVIC_FLASH_VECTOR_ADDRESS (FLASH_BASE | VECT_TAB_OFFSET) // Initial vector position in flash
void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) {
uint32_t *vectors = (uint32_t *)SCB->VTOR;