I2C code testing

Dependencies:   FreescaleIAP SimpleDMA mbed-rtos mbed

Fork of COM_MNG_TMTC_SIMPLE_pl123 by Siva ram

Revision:
93:4d76de54a699
Parent:
69:20f09a0c3fd2
Child:
94:611c066467a1
--- a/ThreadsAndFunctions.h	Sat Jan 23 12:59:06 2016 +0000
+++ b/ThreadsAndFunctions.h	Sun Jan 24 09:30:22 2016 +0000
@@ -269,6 +269,34 @@
     }
 }
 
+
+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;
+    }
+    
+    srp(payload_data);
+//    while(true){
+//        gSCIENCE_THREAD->signal_wait(SCIENCE_SIGNAL);
+//        srp(payload_data);
+//    }
+}
+
+
+
 //void SCIENCE_FUN(void const *args){
 ////    SPIpayload.format(8,0);
 ////    SPIpayload.frequency(1000000);