1
0
Fork 0
forked from len0rd/rockbox

sd-as3525: give timeout in HZ units, not in ticks

remove a TODO fixed in r26029

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26159 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-05-19 12:11:50 +00:00
parent 38136345f6
commit a53785911a

View file

@ -22,8 +22,6 @@
/* Driver for the ARM PL180 SD/MMC controller inside AS3525 SoC */ /* Driver for the ARM PL180 SD/MMC controller inside AS3525 SoC */
/* TODO: Find the real capacity of >2GB models (will be useful for USB) */
#include "config.h" /* for HAVE_MULTIDRIVE & AMS_OF_SIZE */ #include "config.h" /* for HAVE_MULTIDRIVE & AMS_OF_SIZE */
#include "fat.h" #include "fat.h"
#include "thread.h" #include "thread.h"
@ -575,7 +573,7 @@ bool sd_present(IF_MD_NONVOID(int drive))
static int sd_wait_for_state(const int drive, unsigned int state) static int sd_wait_for_state(const int drive, unsigned int state)
{ {
unsigned long response = 0; unsigned long response = 0;
unsigned int timeout = current_tick + 100; /* 100 ticks timeout */ unsigned int timeout = current_tick + HZ;
while (1) while (1)
{ {