Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: ThreadsAndFunctions.h
- Revision:
- 134:4694fc291ce1
- Parent:
- 124:7f0d823c5881
- Child:
- 135:522f7d73d04f
diff -r 56d37aa8a011 -r 4694fc291ce1 ThreadsAndFunctions.h
--- a/ThreadsAndFunctions.h Tue Mar 01 12:35:49 2016 +0000
+++ b/ThreadsAndFunctions.h Tue Mar 01 17:42:30 2016 +0000
@@ -23,7 +23,8 @@
#define reset_all {\
Base_tc *tcp = gHEAD_NODE_TCL;\
- /*gPC.puts("inside reset\r\n");*/\
+ if (DEBUG)\
+ gPC.puts("inside reset\r\n");\
gFLAGS = 0x0000;\
while(tcp != NULL){\
Base_tc *temp = tcp->next_TC;\
@@ -52,7 +53,8 @@
gRX_CURRENT_DATA_NODE = gRX_HEAD_DATA_NODE;\
gRX_COUNT = 0;\
/*PENDING : ALL GLOBAL VAARIABLES AND FLAGS*/\
- /*gPC.puts("finished reset all\r\n");*/\
+ if (DEBUG)\
+ gPC.puts("finished reset all\r\n");\
}
#define PUT_RAW_BYTE {\
@@ -103,8 +105,9 @@
}
}
else if( gFLAGS & NEW_TC_RECEIVED ){
- gPC.puts("NEW TC RECEIVED\r\n");
-// DEBUF_PRINT("NEW TC RECEIVED\r\n");
+ if (DEBUG)
+ gPC.puts("NEW TC RECEIVED\r\n");
+// DEBUF_PRINT("NEW TC RECEIVED\r\n");
Thread::wait(2000); /*To be removed in flight model*/
gFLAGS = gFLAGS & (~NEW_TC_RECEIVED);
gFLAGS = gFLAGS | COM_MNG_TMTC_RUNNING_FLAG;
@@ -122,7 +125,8 @@
gFLAGS = gFLAGS & (~COM_RX_FLAG);
if( gTOTAL_VALID_TC > 0 ){
- /*gPC.printf("valid TC rx: %u\r\n", gTOTAL_VALID_TC);*/
+ if (DEBUG)
+ gPC.printf("valid TC rx: %u\r\n", gTOTAL_VALID_TC);
if( gTOTAL_VALID_TC < COM_MAX_TC_LIMIT ){
// CHECK WEATHER TC LIST HAS MISSING TC OR WEATHER LAST FRAME BIT IS HIGH IN THE LAST PSC-TC
/*gPC.puts("checking for tc list complete\r\n");*/
