To fix the hang problem

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Files at this revision

API Documentation at this revision

Comitter:
spacelab
Date:
Tue Dec 06 09:35:26 2016 +0000
Parent:
312:91755ef8f22a
Child:
314:9f1b654a0b54
Child:
317:31bb2e9eda85
Commit message:
To shubham and Chaitanya for changes update, HK array BAE OC status, RTC , LAST TIME SD WR RTC lable change, added TIME SPI SPEED

Changed in this revision

CDMS_HK.h Show annotated file Show diff for this revision Revisions of this file
Compression.h Show annotated file Show diff for this revision Revisions of this file
cdms_sd.h Show annotated file Show diff for this revision Revisions of this file
--- a/CDMS_HK.h	Tue Nov 22 08:08:46 2016 +0000
+++ b/CDMS_HK.h	Tue Dec 06 09:35:26 2016 +0000
@@ -549,8 +549,9 @@
     CDMS_RAM[16] = CDMS_WR_SD_FAULT_COUNTER;
     CDMS_RAM[17] = SD_LIB_WRITES >> 8;
     CDMS_RAM[18] = SD_LIB_WRITES;
+    TIME_LATEST_RTC= FCTN_CDMS_RD_RTC() >> 7; // added by samp
     for(int i = 0; i<4; i++)
-        CDMS_RAM[19+i] = TIME_LATEST_RTC >> (3-i)*8;
+        CDMS_RAM[19+i] = TIME_LATEST_RTC >> (3-i)*8;   
     for(int i = 0; i<4; i++)
         CDMS_RAM[23+i] = TIME_LATEST_I2C_BAE >> (3-i)*8;
     for(int i = 0; i<4; i++)
--- a/Compression.h	Tue Nov 22 08:08:46 2016 +0000
+++ b/Compression.h	Tue Dec 06 09:35:26 2016 +0000
@@ -138,6 +138,7 @@
    // gPC.printf("\n\rsrp");
     debug_cntr = 0;
     sci_time = FCTN_CDMS_RD_RTC();
+    TIME_LATEST_SPI_SPEED = sci_time>>7;
     #if debug_time
     sci_time = 0x0000000021000000;
     #endif
--- a/cdms_sd.h	Tue Nov 22 08:08:46 2016 +0000
+++ b/cdms_sd.h	Tue Dec 06 09:35:26 2016 +0000
@@ -663,7 +663,7 @@
     int r = write(buffer, 512);
     if(r == 0 ){
         temp = FCTN_CDMS_RD_RTC();
-        TIME_LATEST_SD_RD = temp >> 7;
+        TIME_LATEST_SD_WR = temp >> 7; //corrected by samp:TIME_LATEST_SD_WRD = temp >> 7;
     }
     return  r;
 }