Latest FM Code with EEPROM

Dependencies:   FreescaleIAP SimpleDMA eeprom mbed-rtos mbed

Fork of CDMS_QM_03MAR2017_Flash_with_obsrs by Team Fox

Revision:
321:42bdefc37270
Parent:
319:c11a52b91d25
Child:
323:1f3c756e7b38
Child:
334:71e9f4fdb387
diff -r c11a52b91d25 -r 42bdefc37270 COM_MNG_TMTC.h
--- a/COM_MNG_TMTC.h	Thu Dec 08 15:17:24 2016 +0000
+++ b/COM_MNG_TMTC.h	Sat Dec 10 11:49:13 2016 +0000
@@ -14,6 +14,9 @@
 
 //DigitalIn tm_status_4m_slv(PIN39); //I2C interrupt to CDMS from BAE
 //DigitalIn tm_status_4m_pl(PIN61); //I2C interrupt to CDMS from PL
+#ifndef COM_MNG_TMTC_H    // To make sure you don't declare the function more than once by including the header multiple times.
+#define COM_MNG_TMTC_H
+
 #define RESET_CDMS NVIC_SystemReset()
 
 
@@ -1361,7 +1364,7 @@
         obosc_tm_current->next_TM = obosc_tm;\
         /*Sending OBOSC TM to GS*/\
         snd_tm.head_pointer(obosc_tm_head);\
-        transmit_adf;\
+        transmit_adf();\
         /*DELETE THE TM AFTER USE*/\
         obosc_tm_current = obosc_tm_head;\
         int overCount = 0;\
@@ -1435,7 +1438,7 @@
                         }\
                         /*Send only call sign, ACK_L1 to GS*/\
                         snd_tm.head_pointer(tm_ptr_head);\
-                        transmit_adf;\
+                        transmit_adf();\
                         /*DELETE THE TM AFTER USE*/\
                         tm_ptr = tm_ptr_head;\
                         int overflowCountExecute = 0;\
@@ -1565,7 +1568,7 @@
                             /*SEND call sign, ACK_L1, NON OBSRS TM TO GS*/\
                             snd_tm.head_pointer(tm_ptr_head);\
                             gPC.puts("enter_adf\r\n");\
-                            transmit_adf;\
+                            transmit_adf();\
                             gPC.puts("exit_adf\r\n");\
                             /*DELETE THE TM AFTER USE*/\
                             tm_ptr = tm_ptr_head;\
@@ -1589,7 +1592,7 @@
                             /*EXECUTION OF SD-CARD DATA SENDING (OBSRS)*/\
                             execute_OBSRS_TC(current_TC);\
                             gPC.puts("en_adf");\
-                            transmit_adf;\
+                            transmit_adf();\
                             gPC.puts("ex_adf");\
                         }\
                     }\
@@ -1640,4 +1643,6 @@
         gFLAGS = gFLAGS & (~COM_MNG_TMTC_RUNNING_FLAG);\
         gFLAGS = gFLAGS & (~COM_SESSION_FLAG);\
     }\
-}
\ No newline at end of file
+}
+
+#endif
\ No newline at end of file