working version

Dependencies:   mbed mbed-rtos SimpleDMA FreescaleIAP eeprom

Fork of CDMS_CODE_FM_28JAN2017 by samp Srinivasan

Revision:
295:699801854b71
Parent:
294:136d9b6c0acc
Child:
314:9f1b654a0b54
Child:
316:dd699de634b7
Child:
319:c11a52b91d25
--- a/COM_MNG_TMTC.h	Fri Aug 26 16:08:38 2016 +0000
+++ b/COM_MNG_TMTC.h	Sun Aug 28 13:53:42 2016 +0000
@@ -356,7 +356,7 @@
             BAE_I2C_mutex.lock();
             //BAE_TC;
             gPC.printf("Telecommand is for BAE\r\n");
-            gPC.printf("Sending TC to BAE...\r\n"); //interrupt to be sent to the bae
+            //gPC.printf("Sending TC to BAE...\r\n"); //interrupt to be sent to the bae
             y = FCTN_I2C_WRITE((char*)tc_ptr->TC_string,TC_LONG_SIZE);                         // Check for SHORT and LONG TC and then send
                 
             if(y==1)                                                            
@@ -1168,7 +1168,7 @@
 // EXECUTE OBOSC
 #define execute_obosc_core(tc_ptr, tm_ptr, reset_flag) {\
     if (DEBUG)\
-        gPC.puts("Inside execute_obosc_core\r\n");\
+        /*gPC.puts("Inside execute_obosc_core\r\n")*/;\
     uint8_t service_subtype = (tc_ptr->TC_string[2]) & 0x0F;\
     uint8_t temp8 = 0x00;\
     Base_tc *modify_this = gHEAD_NODE_TCL;\
@@ -1283,7 +1283,7 @@
     gMASTER_STATE = TCL_STATE_EXECUTING;\
     int reset_flag = 0;\
     if (DEBUG)\
-        gPC.puts("iNSIDE EXECUTE_OBOSC_ONLY\r\n");\
+        /*gPC.puts("iNSIDE EXECUTE_OBOSC_ONLY\r\n")*/;\
     Base_tm *obosc_tm_core = NULL;\
     Base_tm *obosc_tm = obosc_tm_core;\
     for(uint8_t execute_psc = PSC_START_VALUE ; execute_psc < gTOTAL_VALID_TC ; ++execute_psc){\
@@ -1390,7 +1390,7 @@
 #define EXECUTE_TC {\
     gMASTER_STATE = TCL_STATE_EXECUTING;\
     if (DEBUG)\
-        gPC.puts("iNSIDE EXECUTE_TC\r\n");\
+        /*gPC.puts("iNSIDE EXECUTE_TC\r\n")*/;\
     /*gPC.printf("%u\r\n", gTOTAL_VALID_TC);*/\
     for(uint8_t execute_psc = PSC_START_VALUE ; execute_psc < gTOTAL_VALID_TC ; ++execute_psc ){\
         if (DEBUG)\
@@ -1634,7 +1634,7 @@
         COM_POWER_OFF_TX;\
         reset_all;\
         /*ENABLE THREADS*/\
-        gPAY_SPI->bulkRead_resume(&payload_isr_fun);\
+        /*gPAY_SPI->bulkRead_resume(&payload_isr_fun)*/;\
         HK_counter->start(10000);\
         gSESSION_TIMEOUT.detach();\
         gFLAGS = gFLAGS & (~COM_MNG_TMTC_RUNNING_FLAG);\