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:
- 69:20f09a0c3fd2
- Parent:
- 52:0bd68655c651
- Child:
- 96:4ca92f9775e0
--- a/i2c.h Fri Jan 15 12:02:12 2016 +0000
+++ b/i2c.h Sun Jan 17 14:04:08 2016 +0000
@@ -23,16 +23,16 @@
write_ack = master.write(addr|0x00,data,tc_len);
//t.stop();
//if(write_ack == 0)
- //pc.printf("\n\r data not sent \n");
+ //gPC.printf("\n\r data not sent \n");
if (write_ack == 1)
{
led2 = 1;
- printf("\n\r data not sent \n");
+ //gPC.printf("\n\r data not sent \n");
led2 = 0;
}
irpt_2_slv = 0;
- //pc.printf("\n\r %d \n",t.read_us());
+ //gPC.printf("\n\r %d \n",t.read_us());
//t.reset();
}
@@ -45,17 +45,17 @@
t_read.stop();
//if(read_ack == 0)
- // printf("\n\rData received from BAE %s \n",data);
+ // gPC.printf("\n\rData received from BAE %s \n",data);
if (read_ack == 1)
{
led2 = 1;
- printf("\n \r data not received \n");
+ //gPC.printf("\n \r data not received \n");
led2 = 0;
}
//if(read_ack == 1)
-//pc.printf("\n \r data not received \n");
+//gPC.printf("\n \r data not received \n");
irpt_2_slv = 0;
- //printf("\n\r %d \n",t.read_us());
+ //gPC.printf("\n\r %d \n",t.read_us());
//t.reset();
}
\ No newline at end of file
