summaryrefslogtreecommitdiff
path: root/src/drivers/ao_sdcard.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-12 01:55:33 -0700
committerKeith Packard <keithp@keithp.com>2013-04-12 01:55:33 -0700
commit7e6e2ca60c65a4fe2bee0bd8b9b89d45a7dbcfb3 (patch)
tree4bfbe330f8066d639a3da3fee92090f3d3268588 /src/drivers/ao_sdcard.h
parent1f88d345c407e409611448d0e8813ab5a6de0a0b (diff)
altos: Delay while waking up SD card a bit
This seems to make bringing the card from idle to ready mode more reliable. If you spam the card with requests, it will eventually whinge and shut down communications. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_sdcard.h')
-rw-r--r--src/drivers/ao_sdcard.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/ao_sdcard.h b/src/drivers/ao_sdcard.h
index 0d1464b3..50b70c73 100644
--- a/src/drivers/ao_sdcard.h
+++ b/src/drivers/ao_sdcard.h
@@ -69,6 +69,7 @@ ao_sdcard_init(void);
#define SDCARD_BUSY_TIMEOUT AO_MS_TO_TICKS(20)
#define SDCARD_BLOCK_TIMEOUT AO_MS_TO_TICKS(200)
#define SDCARD_IDLE_RETRY 10
+#define SDCARD_OP_COND_RETRY 10
enum ao_sdtype {
ao_sdtype_unknown,