mirror of https://github.com/rusefi/ChibiOS.git
I2C. Fixed 2 errors.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3742 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
62b090c673
commit
5b8b005cbd
|
@ -785,7 +785,6 @@ msg_t i2c_lld_master_receive_timeout(I2CDriver *i2cp, i2caddr_t addr,
|
|||
return RDY_TIMEOUT;
|
||||
|
||||
/* Starts the operation.*/
|
||||
i2cp->i2c->CR2 &= I2C_CR2_FREQ;
|
||||
i2cp->i2c->CR1 |= I2C_CR1_START | I2C_CR1_ACK;
|
||||
|
||||
/* Waits for the operation completion or a timeout.*/
|
||||
|
@ -869,7 +868,6 @@ msg_t i2c_lld_master_transmit_timeout(I2CDriver *i2cp, i2caddr_t addr,
|
|||
return RDY_TIMEOUT;
|
||||
|
||||
/* Starts the operation.*/
|
||||
i2cp->i2c->CR2 &= I2C_CR2_FREQ;
|
||||
i2cp->i2c->CR1 |= I2C_CR1_START;
|
||||
|
||||
/* Waits for the operation completion or a timeout.*/
|
||||
|
|
Loading…
Reference in New Issue