samp Srinivasan / Mbed 2 deprecated CDMS_CODE_FM_28JAN2017

Dependencies:   SimpleDMA eeprom mbed-rtos mbed FreescaleIAP

Fork of CDMS_CODE by shubham c

Files at this revision

API Documentation at this revision

Comitter:
ee12b079
Date:
Mon Feb 08 14:24:08 2016 +0000
Parent:
114:9fb55057b13f
Child:
126:b7c024b5632d
Commit message:
GETapid corrected , to be integrated with PL (Relay_tmtc)

Changed in this revision

COM_MNG_TMTC.h Show annotated file Show diff for this revision Revisions of this file
Structures.h Show annotated file Show diff for this revision Revisions of this file
ThreadsAndFunctions.h Show annotated file Show diff for this revision Revisions of this file
--- a/COM_MNG_TMTC.h	Fri Feb 05 15:37:09 2016 +0000
+++ b/COM_MNG_TMTC.h	Mon Feb 08 14:24:08 2016 +0000
@@ -1004,6 +1004,7 @@
             //     printf("%s", tm_ptr->TM_string);
             //     received  = 0;
             // } // similar to BAE functions
+            tm_pointer->next_TM = NULL;                 return tm_ptr;
             break;
         }
         default: //invalid TC
--- a/Structures.h	Fri Feb 05 15:37:09 2016 +0000
+++ b/Structures.h	Mon Feb 08 14:24:08 2016 +0000
@@ -46,7 +46,7 @@
 #define GETshort_or_long_tc(x) ( ( (x->flags) & SHORT_LONG_TC_MASK ) >> 4 )
 #define GETcrc_pass(x) ( ( (x->flags) & CRC_MASK ) >> 3 )
 #define GETabort_on_nack(x) ( ( (x->TC_string[1]) & 0x08 ) >> 3 )
-#define GETapid(x) ( ( (x->TC_string[1]) & 0xA0 ) >> 6 )
+#define GETapid(x) ( ( (x->TC_string[1]) & 0xC0 ) >> 6 )
 #define GETexec_status(x) ( (x->flags) & EXEC_STATUS_MASK )
 #define GETpacket_seq_count(x) (x->TC_string[0])
 #define GETservice_type(x) ( (x->TC_string[2]) & 0xF0 )
--- a/ThreadsAndFunctions.h	Fri Feb 05 15:37:09 2016 +0000
+++ b/ThreadsAndFunctions.h	Mon Feb 08 14:24:08 2016 +0000
@@ -104,7 +104,7 @@
         else if( gFLAGS & NEW_TC_RECEIVED ){
             gPC.puts("NEW TC RECEIVED\r\n");
 //            DEBUF_PRINT("NEW TC RECEIVED\r\n");
-            Thread::wait(2000);    /*To be removed in flight model*/
+            Thread::wait(10000);    /*To be removed in flight model*/
             gFLAGS = gFLAGS & (~NEW_TC_RECEIVED);
             gFLAGS = gFLAGS | COM_MNG_TMTC_RUNNING_FLAG;