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

This commit is contained in:
gdisirio 2010-10-11 19:44:44 +00:00
parent 441509bc2c
commit ee12fa3ad1
1 changed files with 6 additions and 0 deletions

View File

@ -97,6 +97,12 @@ static void serve_interrupt(SPIDriver *spip) {
/* Wakeup the waiting thread if any, note that the following macro is
empty if the SPI_USE_WAIT option is disabled.*/
_spi_wakeup(spip);
/* State change.*/
if (spip->spd_state == SPI_SYNC)
spip->spd_state = SPI_READY;
else
spip->spd_state = SPI_SELECTED;
}
/*===========================================================================*/