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:
- 97:717c7908c822
- Parent:
- 96:4ca92f9775e0
- Child:
- 98:fd99ddc0e0a1
--- a/ThreadsAndFunctions.h Mon Jan 25 13:10:43 2016 +0000
+++ b/ThreadsAndFunctions.h Mon Jan 25 14:20:44 2016 +0000
@@ -274,11 +274,11 @@
void SCIENCE_FUN(void const *args){
uint8_t *ptr;
- gPC.puts("haha\r\n");
+ //gPC.puts("haha\r\n");
ptr = &(payload_data[3]);
- gPC.puts("haha2\r\n");
+ //gPC.puts("haha2\r\n");
int counter = 0;
- gPC.puts("haha3\r\n");
+ //gPC.puts("haha3\r\n");
payload_data[2] = 0;//for mode
for(int i = 0; i<60 ;i++){ //for mode 0.....callibra
for(int j= 0; j<48; j++){ //2 byte values
@@ -293,16 +293,16 @@
//srp(payload_data);
//gPC.puts("data given to payload");
- gLEDR = 1;
- gSCIENCE_THREAD->wait(2000); gSCIENCE_THREAD->terminate();
+ //gSCIENCE_THREAD->wait(2000); gSCIENCE_THREAD->terminate();
- /*while(true){
- gSCIENCE_THREAD->wait(osWaitForever);
- }*/
//while(true){
-// gSCIENCE_THREAD->signal_wait(SCIENCE_SIGNAL);
-// srp(payload_data);
+// gSCIENCE_THREAD->wait(osWaitForever);
+// gLEDR = !gLEDR;
// }
+ while(true){
+ gSCIENCE_THREAD->signal_wait(SCIENCE_SIGNAL);
+ srp(payload_data);
+ }
}
