DMA issue to be tested
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: ThreadsAndFunctions.h
- Revision:
- 254:22d97475ca79
- Parent:
- 253:fd6696d91e74
- Child:
- 258:bb889bc2e9f5
- Child:
- 261:1e54415b34d3
diff -r fd6696d91e74 -r 22d97475ca79 ThreadsAndFunctions.h --- a/ThreadsAndFunctions.h Tue Jul 12 10:01:32 2016 +0000 +++ b/ThreadsAndFunctions.h Tue Jul 12 11:10:48 2016 +0000 @@ -117,7 +117,7 @@ gFLAGS = gFLAGS & (~UART_INT_FLAG); if( !(gFLAGS & COM_SESSION_FLAG) ){ // PENDING : DISABLE THREADS - /*HK_counter->stop();*/ + HK_counter->stop(); gPAY_SPI->bulkRead_pause(); gFLAGS = gFLAGS | COM_SESSION_FLAG; gSESSION_TIMEOUT.attach(&after_session, SESSION_TIME_LIMIT); @@ -143,7 +143,7 @@ } else if( gFLAGS & NEW_TC_RECEIVED ){ gPC.puts("NEW TC RECEIVED\r\n"); - Thread::wait(1000); + Thread::wait(10000); gFLAGS = gFLAGS & (~NEW_TC_RECEIVED); gFLAGS = gFLAGS | COM_MNG_TMTC_RUNNING_FLAG; @@ -160,7 +160,7 @@ gFLAGS = gFLAGS & (~COM_RX_FLAG); //Mutex - /*gMutex.lock();*/ + gMutex.lock(); if( gTOTAL_VALID_TC > 0 ){ /*gPC.printf("valid TC rx: %u\r\n", gTOTAL_VALID_TC);*/ @@ -318,6 +318,6 @@ gSESSION_TIMEOUT.detach(); gFLAGS = gFLAGS & (~COM_SESSION_FLAG); } - /*gMutex.unlock();*/ + gMutex.unlock(); } } \ No newline at end of file