I2C code testing

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by Siva ram

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);