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:
- 67:4819b5f28285
- Parent:
- 51:da85d84768e2
--- a/ThreadsAndFunctions.h Thu Jan 14 15:33:57 2016 +0000
+++ b/ThreadsAndFunctions.h Sun Jan 17 12:51:08 2016 +0000
@@ -268,6 +268,30 @@
}
}
+uint8_t payload_data[6723];
+
+void SCIENCE_FUN(void const *args){
+ uint8_t *ptr;
+ ptr = payload_data+3;
+ int counter = 0;
+ 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;
+ }
+
+ while(true){
+ gSCIENCE_THREAD->signal_wait(SCIENCE_SIGNAL);
+ srp(payload_data);
+ }
+}
+//
//void SCIENCE_FUN(void const *args){
//// SPIpayload.format(8,0);
//// SPIpayload.frequency(1000000);
