aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-05 17:50:11 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-01-05 17:50:11 +0000
commit5b8b005cbdeae242145d1f88fc59a4c92ccbfc33 (patch)
treee0dde93da9518e5ff996d0703e5b207c190e9025 /os/hal/platforms
parent62b090c673675b2f519aced5f466a72e432b1417 (diff)
downloadChibiOS-5b8b005cbdeae242145d1f88fc59a4c92ccbfc33.tar.gz
ChibiOS-5b8b005cbdeae242145d1f88fc59a4c92ccbfc33.tar.bz2
ChibiOS-5b8b005cbdeae242145d1f88fc59a4c92ccbfc33.zip
I2C. Fixed 2 errors.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3742 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms')
-rw-r--r--os/hal/platforms/STM32/i2c_lld.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/os/hal/platforms/STM32/i2c_lld.c b/os/hal/platforms/STM32/i2c_lld.c
index aa8dfd3a1..8865be470 100644
--- a/os/hal/platforms/STM32/i2c_lld.c
+++ b/os/hal/platforms/STM32/i2c_lld.c
@@ -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.*/