CDMS code for testing sbc
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: ThreadsAndFunctions.h
- Revision:
- 69:20f09a0c3fd2
- Parent:
- 51:da85d84768e2
- Child:
- 93:4d76de54a699
--- a/ThreadsAndFunctions.h Fri Jan 15 12:02:12 2016 +0000 +++ b/ThreadsAndFunctions.h Sun Jan 17 14:04:08 2016 +0000 @@ -103,6 +103,7 @@ } else if( gFLAGS & NEW_TC_RECEIVED ){ /*gPC.puts("NEW TC RECEIVED\r\n");*/ + Thread::wait(10000); /*To be removed in flight model*/ gFLAGS = gFLAGS & (~NEW_TC_RECEIVED); gFLAGS = gFLAGS | COM_MNG_TMTC_RUNNING_FLAG; @@ -166,16 +167,16 @@ } } else{ - gPC.puts("tc list is not complete\r\n"); + //gPC.puts("tc list is not complete\r\n"); if(tempContinue & 0x01){ - gPC.puts("last packet bit not found\r\n"); + //gPC.puts("last packet bit not found\r\n"); } if( tempContinue & 0x02 ){ - gPC.puts("missing psc found\r\n"); + //gPC.puts("missing psc found\r\n"); } - gPC.printf("crc fail tc = %u\r\n", gTOTAL_CRC_FAIL_TC); - gPC.printf("incorrect size tc = %u\r\n", gTOTAL_INCORRECT_SIZE_TC); - gPC.printf("repeated psc = %u\r\n", gTOTAL_REPEATED_TC); + //gPC.printf("crc fail tc = %u\r\n", gTOTAL_CRC_FAIL_TC); + //gPC.printf("incorrect size tc = %u\r\n", gTOTAL_INCORRECT_SIZE_TC); + //gPC.printf("repeated psc = %u\r\n", gTOTAL_REPEATED_TC); Base_tc *test_tc = gHEAD_NODE_TCL; while( test_tc != NULL ){ int length = 0; @@ -186,12 +187,12 @@ length = TC_LONG_SIZE; } for(int i = 0 ; i < length ; ++i ){ - gPC.printf("%x ", test_tc->TC_string[i]); + //gPC.printf("%x ", test_tc->TC_string[i]); } - gPC.puts("\r\n"); + //gPC.puts("\r\n"); test_tc = test_tc->next_TC; } - gPC.puts("\r\n"); + //gPC.puts("\r\n"); COM_POWER_ON_TX; // PENDING : POWER OFF TX RX1M.attach(&rx_read, Serial::RxIrq);