CDMS_CODE_samp_23SEP_DMA_flag

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE_samp_23SEP_DMA by iitm sat

Revision:
307:6ed5535ac465
Parent:
306:7c3872365d58
--- a/Compression.h	Sun Oct 09 07:08:34 2016 +0000
+++ b/Compression.h	Tue Nov 01 07:18:59 2016 +0000
@@ -132,7 +132,10 @@
 void srp(uint8_t * head)
 {
     uint8_t sd_stat = 0;
-    gPC.printf("\n\rsrp");
+        SCI_LED1 =1;
+
+    // SCI_LED1 = !SCI_LED1;
+   // gPC.printf("\n\rsrp");
     debug_cntr = 0;
     sci_time = FCTN_CDMS_RD_RTC();
     #if debug_time
@@ -141,7 +144,7 @@
     if(time_prev_scp==0){
         time_prev_scp = sci_time;
     }    
-    //FCTN_SD_MNGR();                                                             ///changed recently
+    FCTN_SD_MNGR();                                                             ///changed recently
     for (int i = 0; i < 52 ; i++)
     {
         scp_bin[i] = 0;
@@ -151,14 +154,14 @@
     for(uint8_t counter = 0 ; counter < 60 ; counter++)
     {       
         #if srpz
-        gPC.printf("\n\n\rSRP count:%d",counter+1);
+     //   gPC.printf("\n\n\rSRP count:%d",counter+1);
         #endif
         /*-------------------- ------------populating sfp_bin and scp_bin[] starts here(also tag AT or BT)-----------------------*/
         at = 0;     pzf = 1;    ezf = 1;
         if(srp_mode == 0)                                   //calibrated mode 
         {
             #if srpz
-            gPC.printf("\n\rSRP - Calibrated Mode");
+       //     gPC.printf("\n\rSRP - Calibrated Mode");
             #endif
             for(int i=0; i<48 ; i++)                        //first 48 bins or SRP are of 16 bits size
             {
@@ -1272,4 +1275,8 @@
     #endif   
     gPC.printf("fsc = %u, %u,%u\n\r", FSC_CURRENT[1],FSC_CURRENT[2],FSC_CURRENT[3]);
     //gPC.printf("\n\rEndSRP"); 
+ //   SCI_LED1 = !SCI_LED1;
+     SCI_LED1 = 0;
+
+
 }
\ No newline at end of file