pl ack in tmtc

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by shubham c

Revision:
69:20f09a0c3fd2
Parent:
53:18db568f1098
Child:
82:c55f29ad4240
Child:
86:a26f5f22631d
--- a/adf.h	Fri Jan 15 12:02:12 2016 +0000
+++ b/adf.h	Sun Jan 17 14:04:08 2016 +0000
@@ -109,11 +109,11 @@
         else{\
             hardware_reset(0);\
             hw_reset_err_cnt++;\
-            gPC.puts("Resetting hardware\r\n");\
+            /*gPC.puts("Resetting hardware\r\n");*/\
         }\
     }\
     if( flag == false ){\
-        gPC.puts("Seems to be SPI problem\r\n");\
+        /*gPC.puts("Seems to be SPI problem\r\n");*/\
     }\
     assrt_phy_off(tempReturn);\
     if(!bbram_flag){\
@@ -232,7 +232,7 @@
     buffer_state = !buffer_state;\
     if(last_buffer){\
         finish_write_data = true;\
-        gPC.puts("adf_off\r\n");\
+        /*gPC.puts("adf_off\r\n");*/\
     }\
 }
  
@@ -307,7 +307,7 @@
             spi.write(0xB1);\
             gCS_ADF=1;\
             SPI_mutex.unlock();\
-            gPC.puts("transmission done\r\n");\
+            /*gPC.puts("transmission done\r\n");*/\
             loop_on = false;\
         }else{\
             write_data;\
@@ -318,7 +318,7 @@
 }
     
 void read_TC(Base_tc* TC_ptr){
-    gPC.puts("Inside sd card sending\r\n");
+    //gPC.puts("Inside sd card sending\r\n");
     unsigned char service_subtype = 0;
     uint64_t starting_add  = 0, ending_add = 0;
     service_subtype = (TC_ptr->TC_string[2])&0x0f;
@@ -327,7 +327,7 @@
     starting_add = 10; // for now
     ending_add = 20;
 //    adf_SND_SDCard(starting_add , ending_add);
-    gPC.puts("sending from sd card\r\n");
+    //gPC.puts("sending from sd card\r\n");
     adf_SND_SDCard;
 }
  
@@ -338,9 +338,9 @@
     loop_on = true;\
     ADF_off = false;\
     initial_adf_check;\
-    gPC.puts("initial adf check\r\n");\
+    /*gPC.puts("initial adf check\r\n");*/\
     initiate;\
-    gPC.puts("adf configured\r\n");\
+    /*gPC.puts("adf configured\r\n");*/\
     gLEDR = !gLEDR;\
 }
  
@@ -351,7 +351,7 @@
     send_data;\
     while(loop_on){\
         wait_ms(COM_TX_TICKER_LIMIT);\
-        if(IRQ){\
+        if(IRQ || bypass_adf){\
             if(finish_write_data){\
                 if(ADF_off){\
                     SPI_mutex.lock();\ 
@@ -360,7 +360,7 @@
                     gCS_ADF=1;\
                     SPI_mutex.unlock();\
                     loop_on = false;\
-                    gPC.puts("Transmission done\r\n");\
+                    /*gPC.puts("Transmission done\r\n");*/\
                 }\
                 else{\
                     ADF_off = true;\
@@ -371,5 +371,5 @@
             }\
         }\
     }\
-    gPC.puts("after while loop\r\n");\
+    /*gPC.puts("after while loop\r\n");*/\
 }
\ No newline at end of file