git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7896 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2015-04-15 19:09:34 +00:00
parent 2ec316ae74
commit d48d8da22f
1 changed files with 8 additions and 7 deletions

View File

@ -161,14 +161,15 @@ static void i2c_lld_serve_interrupt(I2CDriver *i2cp, uint32_t isr) {
/* Stops the associated DMA streams.*/
dmaStreamDisable(i2cp->dmatx);
dmaStreamDisable(i2cp->dmarx);
/* Errors are propagated to the upper layer.*/
if (i2cp->errors) {
_i2c_wakeup_error_isr(i2cp);
return;
}
}
_i2c_wakeup_isr(i2cp);
if (i2cp->errors) {
/* Errors are signaled to the upper layer.*/
_i2c_wakeup_error_isr(i2cp);
}
else {
/* Normal transaction end.*/
_i2c_wakeup_isr(i2cp);
}
}
/**