aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/i2c_lld.c
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-02 22:34:03 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-02 22:34:03 +0000
commitcb7d5725fbd1a9c164934ab56933bc449c49ccfe (patch)
treecb9da1b85d972a14572374136b966e94e9ea3838 /os/hal/platforms/STM32/i2c_lld.c
parent30ba99b968c94b96fd5e9c88bd52a9f5e70cc2e0 (diff)
downloadChibiOS-cb7d5725fbd1a9c164934ab56933bc449c49ccfe.tar.gz
ChibiOS-cb7d5725fbd1a9c164934ab56933bc449c49ccfe.tar.bz2
ChibiOS-cb7d5725fbd1a9c164934ab56933bc449c49ccfe.zip
I2C. Nop.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2702 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM32/i2c_lld.c')
-rw-r--r--os/hal/platforms/STM32/i2c_lld.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/i2c_lld.c b/os/hal/platforms/STM32/i2c_lld.c
index 8aaf3f646..dda47fb45 100644
--- a/os/hal/platforms/STM32/i2c_lld.c
+++ b/os/hal/platforms/STM32/i2c_lld.c
@@ -113,6 +113,8 @@ static void i2c_serve_event_interrupt(I2CDriver *i2cp) {
// "wait" BTF bit in status register
if ((i2cp->id_state == I2C_MWAIT_TF) && (i2cp->id_i2c->SR1 & I2C_SR1_BTF)){
+ //if ((i2cp->id_state == I2C_MWAIT_TF) && ((i2cp->id_i2c->SR1 & I2C_SR1_RXNE) || (i2cp->id_i2c->SR1 & I2C_SR1_TXE))){
+ i2cp->id_i2c->SR1 &= (~I2C_SR1_BTF);
i2cp->id_slave_config->id_callback(i2cp, i2cp->id_slave_config);
return;
}