DMA issue to be tested
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: ThreadsAndFunctions.h
- Revision:
- 295:699801854b71
- Parent:
- 293:442564c72202
- Child:
- 296:ec1317ab9c50
- Child:
- 303:b49b486a7107
diff -r 136d9b6c0acc -r 699801854b71 ThreadsAndFunctions.h --- a/ThreadsAndFunctions.h Fri Aug 26 16:08:38 2016 +0000 +++ b/ThreadsAndFunctions.h Sun Aug 28 13:53:42 2016 +0000 @@ -14,9 +14,9 @@ gPAY_SPI->format(8,0); gPC.printf("\n\rTest..........................."); gPAY_SPI->bulkRead_init(gPAYLOAD_BUFFER, PAYLOAD_BUFFER_LENGTH, &payload_isr_fun); - gPAY_SPI->bulkRead_start(); - gPAY_SPI->bulkRead_pause(); - gPAY_SPI->bulkRead_resume(&payload_isr_fun); + //AY_SPI->bulkRead_start(); + //AY_SPI->bulkRead_pause(); + //AY_SPI->bulkRead_resume(&payload_isr_fun); while(true){ gPC.puts("entering sci\r\n"); gSCIENCE_THREAD->signal_wait(SCIENCE_SIGNAL); @@ -24,7 +24,7 @@ PL_RCV_SC_DATA_STATUS = 1; gPC.puts("sig_set\r\n"); //for(int i =0; i<PAYLOAD_BUFFER_LENGTH; i++) - //if (gPAYLOAD_BUFFER[i] != 0) gPC.printf("not zero"); + //if (gPAYLOAD_BUFFER[i] != 0x01) gPC.printf("%d = 0x%02X\n\r",i,gPAYLOAD_BUFFER[i]); //gPAY_SPI->bulkRead_start(); srp(gPAYLOAD_BUFFER);//skip one apcket when cdms resets gPC.puts("exit_srp\r\n"); @@ -170,7 +170,7 @@ } else if( gFLAGS & NEW_TC_RECEIVED ){ gPC.puts("NEW TC RECEIVED\r\n"); - Thread::wait(2000); + /*Thread::wait(2000);*/ gFLAGS = gFLAGS & (~NEW_TC_RECEIVED); gFLAGS = gFLAGS | COM_MNG_TMTC_RUNNING_FLAG; @@ -193,7 +193,7 @@ 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"); + //gPC.puts("checking for tc list complete\r\n"); uint8_t tempContinue = 0xFF; continueToExecute(tempContinue); if(tempContinue == 0x00){ @@ -203,13 +203,13 @@ GScodeVerification(tempGSver); /*PENDING: INCLUDE GS VERIFICATION CODE*/ if( tempGSver == 0xFF ){ - gPC.puts("GS code match !!\r\n"); + //gPC.puts("GS code match !!\r\n"); gFLAGS = gFLAGS | COM_SESSION_VALIDITY; //sys_reset_cdms_timer->start(cdms_reset_timeout); COM_POWER_ON_TX(); - gPC.puts("P_com_hk !!\r\n"); + //gPC.puts("P_com_hk !!\r\n"); P_COM_HK; - gPC.puts("P_com_hk !!\r\n"); + //gPC.puts("P_com_hk !!\r\n"); if( (gFLAGS & COM_PA_HOT_FLAG) || ( gFLAGS & COM_PA_OC_FLAG ) ){ gPC.puts("Pahot or paoc !!\r\n"); COM_TX_CNTRL = 0;