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 eeprom mbed-rtos mbed
Fork of CDMS_QM_03MAR2017_Flash_with_obsrs by
Diff: ThreadsAndFunctions.h
- Revision:
- 288:aa93d6652381
- Parent:
- 278:1d837d6dfb6e
- Child:
- 289:9bd62b69874c
diff -r a387337491f7 -r aa93d6652381 ThreadsAndFunctions.h --- a/ThreadsAndFunctions.h Wed Aug 03 12:13:55 2016 +0000 +++ b/ThreadsAndFunctions.h Fri Aug 05 17:13:23 2016 +0000 @@ -14,16 +14,18 @@ gPAY_SPI->format(8,0); 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); while(true){ gPC.puts("entering sci\r\n"); gSCIENCE_THREAD->signal_wait(SCIENCE_SIGNAL); gMutex.lock(); gPC.puts("sig_set\r\n"); - for(int i =0; i<PAYLOAD_BUFFER_LENGTH; i++) - if (gPAYLOAD_BUFFER[i] != 0) gPC.printf("not zero"); + //for(int i =0; i<PAYLOAD_BUFFER_LENGTH; i++) + //if (gPAYLOAD_BUFFER[i] != 0) gPC.printf("not zero"); //srp(gPAYLOAD_BUFFER);//skip one apcket when cdms resets gPC.puts("exit_srp\r\n"); - wait(4);/*timeout to be decided*/ + wait(2);/*timeout to be decided*/ if(dma) gPAY_SPI->bulkRead_start(); gMutex.unlock();