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:
- 296:ec1317ab9c50
- Parent:
- 290:3159ff1081a2
--- a/i2c.h Sun Aug 28 13:53:42 2016 +0000
+++ b/i2c.h Sun Aug 28 14:47:38 2016 +0000
@@ -55,6 +55,7 @@
}
else if (read_ack == 1)
{
+ CDMS_I2C_ERR_SPEED_COUNTER++;
I2C_busreset();
}
PL_I2C_GPIO = 0;
@@ -89,6 +90,7 @@
if (write_ack == 1)
{
I2C_busreset();
+ CDMS_I2C_ERR_SPEED_COUNTER++;
}
i2c_count = 0;
return write_ack;
@@ -121,6 +123,8 @@
else if (read_ack == 1)
{
I2C_busreset();
+ CDMS_I2C_ERR_BAE_COUNTER++;
+
}
CDMS_I2C_GPIO = 0;
i2c_count = 0;
@@ -155,6 +159,7 @@
if (write_ack == 1)
{
I2C_busreset();
+ CDMS_I2C_ERR_BAE_COUNTER++;
}
CDMS_I2C_GPIO = 0;
i2c_count = 0;
