Increased BSY & RDY timeouts to 10 seconds

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2174 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2002-09-04 20:15:45 +00:00
parent 88aeb7140c
commit e65b65eeb0

View file

@ -105,7 +105,7 @@ static int perform_soft_reset(void);
static int wait_for_bsy(void) __attribute__ ((section (".icode")));
static int wait_for_bsy(void)
{
int timeout = current_tick + HZ*4;
int timeout = current_tick + HZ*10;
while (TIME_BEFORE(current_tick, timeout) && (ATA_ALT_STATUS & STATUS_BSY))
yield();
@ -127,7 +127,7 @@ static int wait_for_rdy(void)
if (!wait_for_bsy())
return 0;
timeout = current_tick + HZ*4;
timeout = current_tick + HZ*10;
while (TIME_BEFORE(current_tick, timeout) &&
!(ATA_ALT_STATUS & STATUS_RDY))