mbed library sources. Supersedes mbed-src. Fixed broken STM32F1xx RTC on rtc_api.c

Dependents:   Nucleo_F103RB_RTC_battery_bkup_pwr_off_okay

Fork of mbed-dev by mbed official

Revision:
173:e131a1973e81
Parent:
167:e84263d55307
Child:
174:b96e65c34a4d
--- a/targets/TARGET_STM/hal_tick_16b.c	Thu Aug 31 17:27:04 2017 +0100
+++ b/targets/TARGET_STM/hal_tick_16b.c	Fri Sep 15 14:59:18 2017 +0100
@@ -148,6 +148,13 @@
     // Enable timer
     HAL_TIM_Base_Start(&TimMasterHandle);
 
+#ifndef NDEBUG
+#ifdef TIM_MST_DBGMCU_FREEZE
+    // Freeze timer on stop/breakpoint
+    TIM_MST_DBGMCU_FREEZE;
+#endif
+#endif
+
 #if DEBUG_TICK > 0
     __HAL_RCC_GPIOB_CLK_ENABLE();
     GPIO_InitTypeDef GPIO_InitStruct;