aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/avr/i2c_master.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/avr/i2c_master.h')
-rwxr-xr-xdrivers/avr/i2c_master.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/avr/i2c_master.h b/drivers/avr/i2c_master.h
index 0806d76aa..cf93680be 100755
--- a/drivers/avr/i2c_master.h
+++ b/drivers/avr/i2c_master.h
@@ -14,6 +14,9 @@ typedef int16_t i2c_status_t;
#define I2C_STATUS_ERROR (-1)
#define I2C_STATUS_TIMEOUT (-2)
+#define I2C_TIMEOUT_IMMEDIATE (0)
+#define I2C_TIMEOUT_INFINITE (0xFFFF)
+
void i2c_init(void);
i2c_status_t i2c_start(uint8_t address, uint16_t timeout);
i2c_status_t i2c_write(uint8_t data, uint16_t timeout);