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:
169:e3b6fe271b81
Parent:
167:e84263d55307
Child:
171:89b338f31ef1
--- a/targets/TARGET_STM/TARGET_STM32F4/analogin_api.c	Thu Jul 06 15:42:05 2017 +0100
+++ b/targets/TARGET_STM/TARGET_STM32F4/analogin_api.c	Wed Jul 19 17:31:21 2017 +0100
@@ -188,6 +188,9 @@
             break;
         case 18:
             sConfig.Channel = ADC_CHANNEL_VBAT;
+            /*  From experiment, VBAT measurement needs max
+             *  sampling time to be avlid */
+            sConfig.SamplingTime = ADC_SAMPLETIME_480CYCLES;
             break;
         default:
             return 0;