summaryrefslogtreecommitdiff
path: root/include/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/i2c.h')
-rw-r--r--include/i2c.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/i2c.h b/include/i2c.h
index 9cb884ba19..a4e105ddac 100644
--- a/include/i2c.h
+++ b/include/i2c.h
@@ -151,6 +151,11 @@ int i2c_read8(int port, int slave_addr, int offset, int *data);
int i2c_write8(int port, int slave_addr, int offset, int data);
/**
+ * @return non-zero if i2c bus is busy
+ */
+int i2c_is_busy(int port);
+
+/**
* Attempt to unwedge an I2C bus.
*
* @param port I2C port