Sansa Connect: Add udelay() in sdmmc card initialization to prevent dead locks.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31388 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Tomasz Moń 2011-12-21 09:58:03 +00:00
parent 01415ad1b7
commit 013384f138
2 changed files with 10 additions and 4 deletions

View file

@ -435,7 +435,7 @@ void udelay(int usec) {
if (stop < count)
{
/* udelay will end after counter reset (tick) */
while (((IO_TIMER1_TMCNT < stop) && (current_tick != prev_tick)) ||
while ((IO_TIMER1_TMCNT < stop) ||
(current_tick == prev_tick)); /* ensure new tick */
}
else