mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Diff: targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.c
- Revision:
- 183:46ae3190e86c
- Parent:
- 15:4892fe388435
--- a/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.c Wed May 07 13:30:07 2014 +0100 +++ b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.c Wed May 07 17:45:07 2014 +0100 @@ -13,7 +13,7 @@ uint32_t i; // Copy and switch to dynamic vectors if the first time called - if (SCB->VTOR == NVIC_FLASH_VECTOR_ADDRESS) { + if (SCB->VTOR < NVIC_RAM_VECTOR_ADDRESS) { uint32_t *old_vectors = vectors; vectors = (uint32_t*)NVIC_RAM_VECTOR_ADDRESS; for (i=0; i<NVIC_NUM_VECTORS; i++) {