mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-19 18:12:54 -05:00
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:
parent
01415ad1b7
commit
013384f138
2 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue