mbed library sources. Supersedes mbed-src.

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

Revision:
175:af195413fb11
Parent:
149:156823d33999
--- a/targets/TARGET_Freescale/TARGET_KLXX/rtc_api.c	Mon Oct 02 15:33:19 2017 +0100
+++ b/targets/TARGET_Freescale/TARGET_KLXX/rtc_api.c	Wed Oct 11 12:45:49 2017 +0100
@@ -26,7 +26,7 @@
 
     // select RTC clock source
     SIM->SOPT1 &= ~SIM_SOPT1_OSC32KSEL_MASK;
-    
+
     // Enable external crystal source if clock source is 32KHz
     if (extosc_frequency()==32768) {
         SIM->SOPT1 |= SIM_SOPT1_OSC32KSEL(OSC32KCLK);
@@ -104,11 +104,6 @@
     // disable counter
     RTC->SR &= ~RTC_SR_TCE_MASK;
 
-    // we do not write 0 into TSR
-    // to avoid invalid time
-    if (t == 0)
-        t = 1;
-
     // write seconds
     RTC->TSR = t;