diff options
Diffstat (limited to 'drivers/avr/i2c_master.h')
| -rwxr-xr-x | drivers/avr/i2c_master.h | 3 |
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; | |||
| 14 | #define I2C_STATUS_ERROR (-1) | 14 | #define I2C_STATUS_ERROR (-1) |
| 15 | #define I2C_STATUS_TIMEOUT (-2) | 15 | #define I2C_STATUS_TIMEOUT (-2) |
| 16 | 16 | ||
| 17 | #define I2C_TIMEOUT_IMMEDIATE (0) | ||
| 18 | #define I2C_TIMEOUT_INFINITE (0xFFFF) | ||
| 19 | |||
| 17 | void i2c_init(void); | 20 | void i2c_init(void); |
| 18 | i2c_status_t i2c_start(uint8_t address, uint16_t timeout); | 21 | i2c_status_t i2c_start(uint8_t address, uint16_t timeout); |
| 19 | i2c_status_t i2c_write(uint8_t data, uint16_t timeout); | 22 | i2c_status_t i2c_write(uint8_t data, uint16_t timeout); |
