publishing to check changes in cdms code

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE_samp_23SEP_DMA_flag by samp Srinivasan

Revision:
248:407ab7e337cd
Parent:
224:3ac1f91e0ebc
--- a/cdms_rtc.h	Wed Jul 06 08:09:22 2016 +0000
+++ b/cdms_rtc.h	Fri Jul 08 12:53:24 2016 +0000
@@ -12,6 +12,11 @@
     spi.write(0x81); //register address with write flag
     spi.write(0x80);//enabling stop bit in the seconds register
     gCS_RTC=1;
+    
+    gCS_RTC=0;
+    spi.write(0x81);
+    spi.write(0x00);//disabling the stop bit to restart the oscillator 
+    gCS_RTC=1;
         
     //clearing the halt bit 
     gCS_RTC=1;
@@ -31,12 +36,6 @@
     spi.write(0x80|0x03);
     spi.write(0x00);
     gCS_RTC=1;
-
-    
-    gCS_RTC=0;
-    spi.write(0x81);
-    spi.write(0x00);//disabling the stop bit to restart the oscillator 
-    gCS_RTC=1;
     
     gCS_RTC=0;
     spi.write(0x80);