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:
- 95:42d6747900cb
- Parent:
- 94:611c066467a1
- Child:
- 96:4ca92f9775e0
diff -r 611c066467a1 -r 42d6747900cb ThreadsAndFunctions.h
--- a/ThreadsAndFunctions.h Sun Jan 24 13:30:11 2016 +0000
+++ b/ThreadsAndFunctions.h Mon Jan 25 06:22:29 2016 +0000
@@ -270,37 +270,37 @@
}
-uint8_t payload_data[6723];
+//uint8_t payload_data[6723];
-void SCIENCE_FUN(void const *args){
- uint8_t *ptr;
- gPC.puts("haha\r\n");
- ptr = &(payload_data[3]);
- gPC.puts("haha2\r\n");
- int counter = 0;
- 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
- ptr[counter++] = 0; ptr[counter++] = 65;
- }
- for(int j=96; j <100 ; j++){
- ptr[counter++] = 0; ptr[counter++] = 0; ptr[counter++] = 0; ptr[counter++] = 65;
- }
- ptr = ptr+112;
- counter = 0;
- }
- srp(payload_data);
-
- gPC.puts("data given to payload");
- while(true){
- gSCIENCE_THREAD->wait(osWaitForever);
- }
+//void SCIENCE_FUN(void const *args){
+// uint8_t *ptr;
+// gPC.puts("haha\r\n");
+// ptr = &(payload_data[3]);
+// gPC.puts("haha2\r\n");
+// int counter = 0;
+// 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
+// ptr[counter++] = 0; ptr[counter++] = 65;
+// }
+// for(int j=96; j <100 ; j++){
+// ptr[counter++] = 0; ptr[counter++] = 0; ptr[counter++] = 0; ptr[counter++] = 65;
+// }
+// ptr = ptr+112;
+// counter = 0;
+// }
+// srp(payload_data);
+//
+// gPC.puts("data given to payload");
+// while(true){
+// gSCIENCE_THREAD->wait(osWaitForever);
+// }
// while(true){
// gSCIENCE_THREAD->signal_wait(SCIENCE_SIGNAL);
// srp(payload_data);
// }
-}
+//}
