Fix SCR data transfer

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2276 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-11-21 15:45:50 +00:00
parent a4b109eaa2
commit a5128b6fc6

View File

@ -711,7 +711,7 @@ static void stm32_recvfifo(struct stm32_dev_s *priv)
*/
while (priv->remaining > 0 &&
(getreg32(STM32_SDIO_STA) & SDIO_STA_RXDAVL) == 0)
(getreg32(STM32_SDIO_STA) & SDIO_STA_RXDAVL) != 0)
{
/* Read the next word from the RX FIFO */
@ -775,6 +775,7 @@ static void stm32_eventtimeout(int argc, uint32 arg)
/* Yes.. wake up any waiting threads */
stm32_endwait(priv, SDIOWAIT_TIMEOUT);
flldbg("Timeout: remaining: %d\n", priv->remaining);
}
}