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 eeprom mbed-rtos mbed
Fork of CDMS_QM_03MAR2017_Flash_with_obsrs by
Diff: i2c.h
- Revision:
- 103:b55559925dc1
- Parent:
- 96:4ca92f9775e0
- Child:
- 105:5ce0337e7c15
--- a/i2c.h	Fri Jan 29 17:09:41 2016 +0000
+++ b/i2c.h	Fri Jan 29 17:36:10 2016 +0000
@@ -37,25 +37,25 @@
 }
 
 
-void FCTN_I2C_READ(char *data)
+void FCTN_I2C_READ(char *data,int length)
 {
-    irpt_2_slv = 1; 
-//    t_read.start();
-    read_ack = master.read(addr|1,data,tm_len);
- //   t_read.stop();
-   
+    irpt_2_slv = 1;
+    //t_read.start();
+    read_ack = master.read(addr|1,data,length);
+    //t_read.stop();
+  
     //if(read_ack == 0)
-      //  gPC.printf("\n\rData received from BAE %s \n",data);
+      //  printf("\n\rData received from BAE %s \n",data);
  if (read_ack == 1)
     {
-//        led2 = 1;
-        //gPC.printf("\n \r data not received \n");
-//        led2 = 0;
+        gLEDR = 1;
+        printf("\n \r data not received \n");
+        gLEDR = 0;
     }
 //if(read_ack == 1)
-//gPC.printf("\n \r data not received \n");
+//pc.printf("\n \r data not received \n");
 
     irpt_2_slv = 0;
-    //gPC.printf("\n\r %d \n",t.read_us());
+    //printf("\n\r %d \n",t.read_us());
     //t.reset();
 }
\ No newline at end of file
    