mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
ata-nand-telechips: tcc77x have now USEC_TIMER
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22763 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0152fe604b
commit
d9490178ff
1 changed files with 0 additions and 2 deletions
|
|
@ -825,13 +825,11 @@ int nand_read_sectors(IF_MD2(int drive,) unsigned long start, int incount,
|
||||||
goto nand_read_error;
|
goto nand_read_error;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CPU_TCC780X /* 77x doesn't have USEC_TIMER yet */
|
|
||||||
if (TIME_AFTER(USEC_TIMER, next_yield))
|
if (TIME_AFTER(USEC_TIMER, next_yield))
|
||||||
{
|
{
|
||||||
next_yield = USEC_TIMER + MIN_YIELD_PERIOD;
|
next_yield = USEC_TIMER + MIN_YIELD_PERIOD;
|
||||||
yield();
|
yield();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
inbuf += SECTOR_SIZE;
|
inbuf += SECTOR_SIZE;
|
||||||
incount--;
|
incount--;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue