mirror of
https://github.com/apache/nuttx.git
synced 2026-10-22 22:42:31 +00:00
SAMA5 NAND: Trivial changes
This commit is contained in:
parent
eb3a2335da
commit
bafa5b1031
1 changed files with 6 additions and 3 deletions
|
|
@ -644,7 +644,7 @@ static void nand_wait_cmddone(struct sam_nandcs_s *priv)
|
|||
/* Wait for the CMDDONE interrupt to occur */
|
||||
|
||||
flags = irqsave();
|
||||
while (!g_nand.cmddone)
|
||||
do
|
||||
{
|
||||
ret = sem_wait(&g_nand.waitsem);
|
||||
if (ret < 0)
|
||||
|
|
@ -652,6 +652,7 @@ static void nand_wait_cmddone(struct sam_nandcs_s *priv)
|
|||
DEBUGASSERT(errno == EINTR);
|
||||
}
|
||||
}
|
||||
while (!g_nand.cmddone);
|
||||
|
||||
/* Disable further CMDDONE interrupts */
|
||||
|
||||
|
|
@ -717,7 +718,7 @@ static void nand_wait_xfrdone(struct sam_nandcs_s *priv)
|
|||
/* Wait for the XFRDONE interrupt to occur */
|
||||
|
||||
flags = irqsave();
|
||||
while (!g_nand.xfrdone)
|
||||
do
|
||||
{
|
||||
ret = sem_wait(&g_nand.waitsem);
|
||||
if (ret < 0)
|
||||
|
|
@ -725,6 +726,7 @@ static void nand_wait_xfrdone(struct sam_nandcs_s *priv)
|
|||
DEBUGASSERT(errno == EINTR);
|
||||
}
|
||||
}
|
||||
while (!g_nand.xfrdone);
|
||||
|
||||
/* Disable further XFRDONE interrupts */
|
||||
|
||||
|
|
@ -790,7 +792,7 @@ static void nand_wait_rbedge(struct sam_nandcs_s *priv)
|
|||
/* Wait for the RBEDGE interrupt to occur */
|
||||
|
||||
flags = irqsave();
|
||||
while (!g_nand.rbedge)
|
||||
do
|
||||
{
|
||||
ret = sem_wait(&g_nand.waitsem);
|
||||
if (ret < 0)
|
||||
|
|
@ -798,6 +800,7 @@ static void nand_wait_rbedge(struct sam_nandcs_s *priv)
|
|||
DEBUGASSERT(errno == EINTR);
|
||||
}
|
||||
}
|
||||
while (!g_nand.rbedge);
|
||||
|
||||
/* Disable further RBEDGE interrupts */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue