working version

Dependencies:   mbed mbed-rtos SimpleDMA FreescaleIAP eeprom

Fork of CDMS_CODE_FM_28JAN2017 by samp Srinivasan

Revision:
330:6ac9661f2e10
Parent:
328:2242ebc71be8
Child:
333:cddef120cae3
--- a/FMS_all.h	Wed Dec 21 06:06:32 2016 +0000
+++ b/FMS_all.h	Wed Dec 21 09:19:25 2016 +0000
@@ -340,11 +340,15 @@
 
 void FCTN_CDMS_RD_L_RAM(Base_tm *tm_pointer)
 {
+    uint32_t time = FCTN_CDMS_RD_RTC() >> 7;             //Reading Time from RTC
+    for(int i = 124; i<128; i++)
+    CDMS_HEALTH_DATA[i] = time >> (127-i)*8;
     for(int i=0;i<128;i++)
     {
         //tm_pointer->TM_string[i] = 0;
         tm_pointer->TM_string[i+4] = CDMS_HEALTH_DATA[i];
     }
+    
 }
 
 void FCTN_CDMS_MAX_MIN(Base_tm *tm_pointer)