lkdsnf;

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_PL_Working by Siva ram

Files at this revision

API Documentation at this revision

Comitter:
krishanprajapat
Date:
Wed Feb 03 11:23:26 2016 +0000
Parent:
105:5ce0337e7c15
Commit message:
included common_functions.h

Changed in this revision

COM_MNG_TMTC.h Show annotated file Show diff for this revision Revisions of this file
OBSRS.h Show annotated file Show diff for this revision Revisions of this file
common_functions.h Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/COM_MNG_TMTC.h	Fri Jan 29 19:27:28 2016 +0000
+++ b/COM_MNG_TMTC.h	Wed Feb 03 11:23:26 2016 +0000
@@ -1137,14 +1137,7 @@
 }
 
 /*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 */
-#define get_call_sign(tm_ptr) {\
-    Base_tm* call_sign_tm = new Short_tm;\
-    call_sign_tm->next_TM = NULL;\
-    tm_ptr = call_sign_tm;\
-    for( int i = 0 ; i < TM_SHORT_SIZE ; ++i ){\
-        call_sign_tm->TM_string[i] = gCALL_SIGN_STRING[i];\
-    }\
-}
+
 
 #define EXECUTE_OBOSC_ONLY {\
     int reset_flag = 0;\
--- a/OBSRS.h	Fri Jan 29 19:27:28 2016 +0000
+++ b/OBSRS.h	Wed Feb 03 11:23:26 2016 +0000
@@ -102,6 +102,10 @@
 #define make_T_frame_Ack_andcallsign {\             
 }
 
+void give_Tframes(){
+    
+    }
+
 void restart_adf(){
     
     }
@@ -123,9 +127,9 @@
 }
 
 int get_Ack_L1(){
-    for(int i=0;i<288;i++){
-//        Ack_andcallsign[i] = 0xff;
-    }
+    Base_tm *call_sign = NULL;
+//    get_call_sign(call_sign);
+    give_Tframes();
     //cout<<"in side get_Ack_L1"<<endl<<"\r";
     return 1;
 }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common_functions.h	Wed Feb 03 11:23:26 2016 +0000
@@ -0,0 +1,8 @@
+#define get_call_sign(tm_ptr) {\
+    Base_tm* call_sign_tm = new Short_tm;\
+    call_sign_tm->next_TM = NULL;\
+    tm_ptr = call_sign_tm;\
+    for( int i = 0 ; i < TM_SHORT_SIZE ; ++i ){\
+        call_sign_tm->TM_string[i] = gCALL_SIGN_STRING[i];\
+    }\
+}
\ No newline at end of file
--- a/main.cpp	Fri Jan 29 19:27:28 2016 +0000
+++ b/main.cpp	Wed Feb 03 11:23:26 2016 +0000
@@ -9,11 +9,13 @@
 #include "rtos.h"
 #include "mbed_debug.h"
 
+
 #include "Structures.h"
 #include "pinconfig.h"
 #include "DefinitionsAndGlobals.h"
 #include "crc.h"
 #include "i2c.h"
+#include "common_functions.h"
 #include "COM_SND_TM_functions.h"
 #include "COM_SND_TM.h"
 #include "cdms_sd.h"