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:
160:d5399cc887bb
Parent:
159:612c381a210f
Child:
165:e614a9f1c9e2
diff -r 612c381a210f -r d5399cc887bb targets/TARGET_STM/stm_spi_api.c
--- a/targets/TARGET_STM/stm_spi_api.c	Tue Feb 28 17:13:35 2017 +0000
+++ b/targets/TARGET_STM/stm_spi_api.c	Tue Mar 14 16:40:56 2017 +0000
@@ -308,7 +308,7 @@
 
     /*  In case maximum pre-scaler still gives too high freq, raise an error */
     if (spi_hz > hz) {
-        error("Couldn't set suitable spi freq: request:%d, lowest:%d\r\n", hz, spi_hz);
+        DEBUG_PRINTF("WARNING: lowest SPI freq (%d)  higher than requested (%d)\r\n", spi_hz, hz);
     }
 
     DEBUG_PRINTF("spi_frequency, request:%d, select:%d\r\n", hz, spi_hz);