DMA issue to be tested
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: ThreadsAndFunctions.h
- Revision:
- 303:b49b486a7107
- Parent:
- 295:699801854b71
- Child:
- 306:7c3872365d58
diff -r 701ac67649b7 -r b49b486a7107 ThreadsAndFunctions.h --- a/ThreadsAndFunctions.h Sun Sep 04 11:12:00 2016 +0000 +++ b/ThreadsAndFunctions.h Mon Sep 05 11:25:33 2016 +0000 @@ -14,7 +14,7 @@ gPAY_SPI->format(8,0); gPC.printf("\n\rTest..........................."); gPAY_SPI->bulkRead_init(gPAYLOAD_BUFFER, PAYLOAD_BUFFER_LENGTH, &payload_isr_fun); - //AY_SPI->bulkRead_start(); + gPAY_SPI->bulkRead_start(); //AY_SPI->bulkRead_pause(); //AY_SPI->bulkRead_resume(&payload_isr_fun); while(true){ @@ -31,6 +31,7 @@ wait(2);/*timeout to be decided*/ if(dma) { + PL_RCV_SC_DATA_COUNTER++; gPAY_SPI->bulkRead_start(); //gPAY_SPI->bulkRead_pause(); //gPAY_SPI->bulkRead_resume(&payload_isr_fun);