I2C. Nop.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2702 35acf78f-673a-0410-8e92-d51de3d6d3f4master
parent
30ba99b968
commit
cb7d5725fb
|
@ -113,6 +113,8 @@ static void i2c_serve_event_interrupt(I2CDriver *i2cp) {
|
||||||
|
|
||||||
// "wait" BTF bit in status register
|
// "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_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);
|
i2cp->id_slave_config->id_callback(i2cp, i2cp->id_slave_config);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue