CDMS code for testing sbc
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: ThreadsAndFunctions.h
- Revision:
- 94:611c066467a1
- Parent:
- 93:4d76de54a699
- Child:
- 95:42d6747900cb
diff -r 4d76de54a699 -r 611c066467a1 ThreadsAndFunctions.h --- a/ThreadsAndFunctions.h Sun Jan 24 09:30:22 2016 +0000 +++ b/ThreadsAndFunctions.h Sun Jan 24 13:30:11 2016 +0000 @@ -274,8 +274,11 @@ void SCIENCE_FUN(void const *args){ uint8_t *ptr; - ptr = payload_data+3; + 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 @@ -287,8 +290,12 @@ ptr = ptr+112; counter = 0; } + srp(payload_data); - 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);