mbed library sources. Supersedes mbed-src.

Dependents:   Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more

Revision:
46:cb4f85f96d35
Parent:
43:e3d4af315dd8
Child:
56:05912f50f004
--- a/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/system_stm32f0xx.c	Wed Jan 06 15:00:11 2016 +0000
+++ b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/system_stm32f0xx.c	Mon Jan 11 09:45:10 2016 +0000
@@ -226,6 +226,9 @@
   /* Disable all interrupts */
   RCC->CIR = 0x00000000;
 
+  /* Enable SYSCFGENR in APB2EN, needed for 1st call of NVIC_SetVector, to copy vectors from flash to ram */
+  RCC->APB2ENR |= RCC_APB2ENR_SYSCFGEN;
+  
   /* Configure the Cube driver */
   SystemCoreClock = 8000000; // At this stage the HSI is used as system clock
   HAL_Init();