for frequency correction testing

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of CDMS_CODE by shubham c

Files at this revision

API Documentation at this revision

Comitter:
chaithanyarss
Date:
Thu Jul 21 11:07:04 2016 +0000
Parent:
269:24c50959b0a4
Child:
275:9e5b0085763d
Commit message:
almost done.

Changed in this revision

CDMS_HK.h Show annotated file Show diff for this revision Revisions of this file
COM_MNG_TMTC.h Show annotated file Show diff for this revision Revisions of this file
DefinitionsAndGlobals.h Show annotated file Show diff for this revision Revisions of this file
FMS_all.h Show annotated file Show diff for this revision Revisions of this file
--- a/CDMS_HK.h	Thu Jul 21 10:46:36 2016 +0000
+++ b/CDMS_HK.h	Thu Jul 21 11:07:04 2016 +0000
@@ -45,8 +45,9 @@
     gHK_THREAD->signal_wait(HK_SIGNAL);
     gPC.printf("\n\nEntering HK thread\n");
 
+    if(EN_HK == 0x00)
+    continue;
     gMutex.lock();
-
     CDMS_HK_MAIN_STATUS = 0x01;
     CDMS_HK_MAIN_COUNTER++;
 
--- a/COM_MNG_TMTC.h	Thu Jul 21 10:46:36 2016 +0000
+++ b/COM_MNG_TMTC.h	Thu Jul 21 11:07:04 2016 +0000
@@ -880,8 +880,12 @@
                         else if(GETpid(tc_ptr)==0x40)
                         {                         
                             //gPC.printf("RESET_HK_COUNTER\r\n"); // call PWR_SWCH_ON function
-                            
-                            STANDBY_PRCS();
+                            if(tc_ptr->TC_STRING[4] == 0x00 || tc_ptr->TC_STRING[4] == 0x01)
+                            EN_PL = tc_ptr->TC_STRING[4];
+                            else if(tc_ptr->TC_STRING[5] == 0x00 || tc_ptr->TC_STRING[5] == 0x01)
+                            EN_HK = tc_ptr->TC_STRING[5];
+                            else if(tc_ptr->TC_STRING[6] == 0x00 || tc_ptr->TC_STRING[6] == 0x01)
+                            EN_RCV_SC = tc_ptr->TC_STRING[6];
                             Base_tm *tm_ptr_short = new Short_tm;
                             ACK_L234(tm_ptr_short,0xA0,GETpacket_seq_count(tc_ptr));
                             return tm_ptr_short;                                                    
--- a/DefinitionsAndGlobals.h	Thu Jul 21 10:46:36 2016 +0000
+++ b/DefinitionsAndGlobals.h	Thu Jul 21 11:07:04 2016 +0000
@@ -366,4 +366,9 @@
 uint8_t COM_PA_RECOVERY_TIMEOUT;
 uint8_t COM_SESSION_TIMEOUT;
 uint8_t COM_RSSI_MIN;
-uint16_t SD_LIB_BLK_CURRENT;
\ No newline at end of file
+uint16_t SD_LIB_BLK_CURRENT;
+
+//Enable's
+uint8_t EN_PL;
+uint8_t EN_HK;
+uint8_t EN_RCV_SC;
\ No newline at end of file
--- a/FMS_all.h	Thu Jul 21 10:46:36 2016 +0000
+++ b/FMS_all.h	Thu Jul 21 11:07:04 2016 +0000
@@ -3,7 +3,6 @@
 
 /*===================================================FMS Functions=================================================*/
 
-void STANDBY_PRCS();
 
 //Run processes
 void P_PL_INIT();
@@ -48,11 +47,6 @@
     SYS_PWR_RESET();
 }
 
-void STANDBY_PRCS()
-{
-    
-}
-
 void P_PL_INIT()
 {