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: i2c.h
- Revision:
- 184:d75cea6f5d49
- Parent:
- 171:31bdf83591a1
- Child:
- 197:1369ef45b49e
--- a/i2c.h Sat Jun 11 08:51:16 2016 +0000
+++ b/i2c.h Sat Jun 11 10:05:52 2016 +0000
@@ -25,6 +25,22 @@
}
}
+void FCTN_I2C_READ_PL(char *data,int length)
+{
+ PYLD_I2C_GPIO = 1;
+ //t_read.start();
+ read_ack = master.read(addr_pl|1,data,length);
+ //t_read.stop();
+
+ if(read_ack == 0)
+ gPC.printf("\n\rData received from PL \n");
+ if (read_ack == 1)
+ {
+ gPC.printf("\n \r data not received \n");
+ }
+ PYLD_I2C_GPIO = 0;
+}
+
void FCTN_I2C_READ(char *data,int length)
{
CDMS_I2C_GPIO = 1;
@@ -64,12 +80,4 @@
CDMS_I2C_GPIO = 0;
//gPC.printf("\n\r %d \n",t.read_us());
//t.reset();
-}
-
-void isr_pyldtm()
-{
-
- read_ack = master.read(addr_pl|1,PL_I2C_DATA,134);
- gLEDR=!gLEDR;
- rcv_isr = 1;
}
\ No newline at end of file
