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:
253:fd6696d91e74
Parent:
251:c766afa330a3
Child:
257:7d404e9dc9e2
diff -r 9c631b2f5da8 -r fd6696d91e74 CDMS_HK.h
--- a/CDMS_HK.h	Tue Jul 12 05:35:21 2016 +0000
+++ b/CDMS_HK.h	Tue Jul 12 10:01:32 2016 +0000
@@ -43,9 +43,8 @@
     {
     gPC.printf("Entering HK thread");
     gHK_THREAD->signal_wait(HK_SIGNAL);
-
     gMutex.lock();
-
+    gPC.printf("HK thread signal set");
     CDMS_HK_MAIN_STATUS = 0x01;
     CDMS_HK_MAIN_COUNTER++;
 
@@ -55,7 +54,7 @@
     VERIFY_RTC();
     HANDLE_HW_FAULTS();
     FUNC_CDMS_GPIO_STATUS(); //yet to be done
-
+    gPC.printf("Checking RTCoun");
     uint8_t CDMS_quant[19];
     for(int i=0; i<16; i++) {
         CDMS_quant[i]= (uint8_t)quant_data.temp_quant[i];
@@ -63,14 +62,14 @@
     CDMS_quant[16]= (uint8_t)RSSI_volatge;
     CDMS_quant[17]= (uint8_t)quant_data.CDMS_temp_quant;
     minMaxHkData();
-
+    gPC.printf("here1");
     uint64_t time = FCTN_CDMS_RD_RTC();             //Reading Time from RTC
     gPC.printf("0x%08X \n",time);
     time = time>>7;
     uint32_t HK_time = (uint32_t)time;
     for(int i = 0; i<4; i++)
         CDMS_HEALTH_DATA[i] = HK_time >> i;
-
+    gPC.printf("here2");
     // Here: Have to FIT flash data.
     for(int i = 0; i<19; i++)                       //Collecting Data from Temp sensors
         CDMS_HEALTH_DATA[i+24] = CDMS_quant[i];
@@ -84,7 +83,7 @@
     CDMS_HK_FRAME[1] = FSC_CURRENT[4]+1;
     CDMS_HK_FRAME[2] = (FSC_CURRENT[4]+1) >> 8;
     CDMS_HK_FRAME[3] = (FSC_CURRENT[4]+1) >> 16;
-
+    gPC.printf("here3");
     for(int i = 0; i<128; i++)                       /*Adding actual CDMS Health data to TM frame*/
         CDMS_HK_FRAME[4+i] = CDMS_HEALTH_DATA[i];
 
@@ -307,6 +306,7 @@
         gCS_RTC=0;
         spi.write(0x0F);
         if(spi.write(0x00) & 0x04 == 0x04) {
+            
             RTC_STATUS = 0x00;
             RESET_RTC();
             RTC_FAULTCOUNT++;