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 mbed-rtos mbed
Fork of CDMS_CODE by
Diff: ThreadsAndFunctions.h
- Revision:
- 172:c508bbf7e89a
- Parent:
- 164:be3b4b760d0c
- Child:
- 173:f81ded27423d
diff -r 31bdf83591a1 -r c508bbf7e89a ThreadsAndFunctions.h
--- a/ThreadsAndFunctions.h Wed Apr 20 12:58:58 2016 +0000
+++ b/ThreadsAndFunctions.h Thu Apr 21 12:45:12 2016 +0000
@@ -286,7 +286,11 @@
gPAY_SPI.format(8,0);
gPAY_SPI.bulkRead_init(gPAYLOAD_BUFFER, PAYLOAD_BUFFER_LENGTH, &payload_isr_fun);
gPAY_SPI.bulkRead_start();
-
+ gPAY_SPI.bulkRead_end();
+ gPAY_SPI.frequency(1000000);
+ gPAY_SPI.format(8,0);
+ gPAY_SPI.bulkRead_init(gPAYLOAD_BUFFER, PAYLOAD_BUFFER_LENGTH, &payload_isr_fun);
+ gPAY_SPI.bulkRead_start();
while(true){
gPC.puts("entering sci\r\n");
gSCIENCE_THREAD->signal_wait(SCIENCE_SIGNAL);
