sd 32 update

Dependencies:   FreescaleIAP mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE by Shreesha S

Revision:
12:ffdb29353058
Parent:
6:79d422d1ed42
Child:
14:08c2c887ea09
--- a/COM_MNG_TMTC.h	Thu Dec 31 10:27:56 2015 +0000
+++ b/COM_MNG_TMTC.h	Thu Dec 31 11:49:42 2015 +0000
@@ -411,11 +411,11 @@
     int modify_overflow = 0x00;\
     switch( service_subtype ){\
         case OBOSC_SUB_DISABLE:\
-            gPC.puts("target psc are ");\
+            /*gPC.puts("target psc are ");*/\
             for(int i = 3 ; i < 9 ; ++i){\
-                gPC.printf("%u ", tc_ptr->TC_string[i]);\
+                /*gPC.printf("%u ", tc_ptr->TC_string[i]);*/\
             }\
-            gPC.puts("\r\n");\
+            /*gPC.puts("\r\n");*/\
             /*gPC.puts("disable type obosc\r\n");*/\
             while( modify_this != NULL ){\
                 if( modify_overflow < TCL_OVERFLOW_CONSTANT ){\
@@ -439,7 +439,7 @@
             }\
             break;\
         case OBOSC_SUB_RETRY:\
-            gPC.puts("retry type obosc\r\n");\
+            /*gPC.puts("retry type obosc\r\n");*/\
             while( modify_this != NULL ){\
                 if( modify_overflow < TCL_OVERFLOW_CONSTANT ){\
                     uint8_t modify_psc = GETpacket_seq_count(modify_this);\
@@ -448,7 +448,7 @@
                         if( (target_psc == modify_psc) && (target_psc != 0) ){\
                             uint16_t tempExec = TC_STATE_MARKED_RETRY;\
                             PUTexec_status( modify_this, tempExec );\
-                            gPC.puts("reqquired tc found: disable\r\n");\
+                            /*gPC.puts("reqquired tc found: disable\r\n");*/\
                             break;\
                         }\
                     }\
@@ -521,7 +521,7 @@
         /*CHANGE THE ACK CODE TO INVALID TC*/\
         ackl234new->TM_string[2] = 0xA2;\
     }\
-    gPC.puts("completed obosc\r\n");\
+    /*gPC.puts("completed obosc\r\n");*/\
 }
 
 /*tm_ptr is the next_TM of a linked list, and should have the value NULL, i.e. tm_ptr should be the next_TM pointer of thte last node */
@@ -568,7 +568,7 @@
                         if( (current_exec_status == TC_STATE_SUCCESSFULLY_EXECUTED) || (current_exec_status == TC_STATE_DISABLED) )\
                             break;\
                         else if( (current_exec_status == TC_STATE_UNEXECUTED) || (current_exec_status == TC_STATE_MARKED_RETRY) ){\
-                            gPC.printf("It is obosc: %u\r\n", execute_psc);\
+                            /*gPC.printf("It is obosc: %u\r\n", execute_psc);*/\
                             /*EXECUTION OF OBOSC TC*/\
                             /*WARNING: LARGE MEMORY UTILIZATION FOR TC-LIST-REPORT */\
                             execute_obosc_core(current_TC, obosc_tm_current->next_TM);\
@@ -629,11 +629,11 @@
                 if( (GETcrc_pass(current_TC) == 1) && (GETpacket_seq_count(current_TC) == execute_psc) ){\
                     uint8_t current_exec_status = GETexec_status(current_TC);\
                     if( (current_exec_status == TC_STATE_SUCCESSFULLY_EXECUTED) || (current_exec_status == TC_STATE_DISABLED) ){\
-                        gPC.printf("disabled or completed at %u\n", execute_psc);\
+                        /*gPC.printf("disabled or completed at %u\n", execute_psc);*/\
                         break;\
                     }\
                     else if( (current_exec_status == TC_STATE_EXECUTION_FAILED) && (GETabort_on_nack(current_TC) == 1) ){\
-                        gPC.printf("abort on nack at %u psc\r\n", execute_psc);\
+                        /*gPC.printf("abort on nack at %u psc\r\n", execute_psc);*/\
                         gMASTER_STATE = TCL_STATE_ABORTED;\
                         break;\
                     }\
@@ -642,7 +642,7 @@
                         uint8_t temp81 = 0x00;\
                         isit_sdcard(current_TC, temp81);\
                         if( temp81 == 0x00 ){\
-                            gPC.printf("non sd card at %u\r\n", execute_psc);\
+                            /*gPC.printf("non sd card at %u\r\n", execute_psc);*/\
                             /*EXECUTION OF NON SD-CARD (BOTH OBOSC and CDMS functions)*/\
                             Base_tm *tm_ptr_head = NULL;\
                             get_call_sign(tm_ptr_head);\
@@ -651,12 +651,12 @@
                             uint8_t tempPAhot = 0x00;\
                             isit_obosc(current_TC, temp82);\
                             if(temp82 == 0x01){\
-                                gPC.printf("obosc tc inside normal tc at %u\r\n", execute_psc);\
+                                /*gPC.printf("obosc tc inside normal tc at %u\r\n", execute_psc);*/\
                                 /*EXECUTION OF OBOSC TC*/\
                                 /*SKIP EXECUTION OF OBOSC HERE*/\
                             }\
                             else{\
-                                gPC.printf("cdms relay tmtc at %u\r\n", execute_psc);\
+                                /*gPC.printf("cdms relay tmtc at %u\r\n", execute_psc);*/\
                                 /*call CDMS_RLY_TMTC*/\
                                 /*CDMS_RLY_TMTC(current_TC, put_tm_here);*/\
                             }\
@@ -735,7 +735,7 @@
                             }\
                         }\
                         else{\
-                            gPC.printf("sd card at %u\r\n", execute_psc);\
+                            /*gPC.printf("sd card at %u\r\n", execute_psc);*/\
                             /*EXECUTION OF SD-CARD DATA SENDING (OBSRS)*/\
                             /*CHECK FOR HOT PA*/\
                             uint8_t tempPAhot = 0x00;\
@@ -769,7 +769,7 @@
             break;\
         }\
         else if( gMASTER_STATE == TCL_STATE_ABORTED ){\
-            gPC.puts("ABORTING DUE TO ABORT ON NACK\r\n");\
+            /*gPC.puts("ABORTING DUE TO ABORT ON NACK\r\n");*/\
             /*EXITED DUE TO ABORT ON NACK:*/\
             /*PENDING : POWER OFF COM TX*/\
             RX1M.attach(&rx_read, Serial::RxIrq);\
@@ -784,10 +784,10 @@
             gFLAGS = gFLAGS & (~COM_MNG_TMTC_RUNNING_FLAG);\
             break;\
         }\
-        gPC.printf("successflly executed %u tc\r\n", execute_psc);\
+        /*gPC.printf("successflly executed %u tc\r\n", execute_psc);*/\
     }\
     if( (gMASTER_STATE == TCL_STATE_COMPLETED) || (gFLAGS & COM_SESSION_TIMEOUT_FLAG) ){\
-        gPC.printf("completed or session timed out: %x\r\n", gMASTER_STATE);\
+        /*gPC.printf("completed or session timed out: %x\r\n", gMASTER_STATE);*/\
         /*COMPLETED EXECUTION OF TC*/\
         gMASTER_STATE = TCL_STATE_COMPLETED;\
         COM_POWER_OFF_TX;\