I2C. Nop.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@2702 35acf78f-673a-0410-8e92-d51de3d6d3f4
master
barthess 2011-02-02 22:34:03 +00:00
parent 30ba99b968
commit cb7d5725fb
1 changed files with 2 additions and 0 deletions

View File

@ -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;
} }