mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Diff: targets/cmsis/TARGET_STM/TARGET_NUCLEO_F030R8/cmsis_nvic.c
- Revision:
- 77:b5886236e6f0
- Parent:
- 76:aeb1df146756
diff -r aeb1df146756 -r b5886236e6f0 targets/cmsis/TARGET_STM/TARGET_NUCLEO_F030R8/cmsis_nvic.c --- a/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F030R8/cmsis_nvic.c Mon Jan 27 14:30:07 2014 +0000 +++ b/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F030R8/cmsis_nvic.c Mon Jan 27 15:30:04 2014 +0000 @@ -38,7 +38,7 @@ void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector) { int i; // Space for dynamic vectors, initialised to allocate in R/W - static volatile uint32_t* vectors = (uint32_t *)NVIC_RAM_VECTOR_ADDRESS; + static volatile uint32_t *vectors = (uint32_t *)NVIC_RAM_VECTOR_ADDRESS; // Copy and switch to dynamic vectors if first time called if (vtor_remap == 0) { @@ -46,6 +46,7 @@ for (i = 0; i < NVIC_NUM_VECTORS; i++) { vectors[i] = old_vectors[i]; } + SYSCFG->CFGR1 |= 0x03; // Embedded SRAM mapped at 0x00000000 vtor_remap = 1; // The vectors remap is done }