summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-31 13:55:16 -0700
committerKeith Packard <keithp@keithp.com>2013-03-31 13:55:16 -0700
commit182ceaac7d91dc6e9ebac6455d5de0c10687796b (patch)
treeb720b8a6c658e1685d0bbdf7eeb6e618810cd61a
parentd813566cdc4d43a43ed988dde4a3ceeccf24efe6 (diff)
altos: Increase SD card timeout at startup time
Sometimes the SD card takes 'a while' to go into idle mode at first power up. Just hang around waiting for a long time. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/drivers/ao_sdcard.h4
-rw-r--r--src/telegps-v0.1/Makefile4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/drivers/ao_sdcard.h b/src/drivers/ao_sdcard.h
index be0ff1f3..512439b4 100644
--- a/src/drivers/ao_sdcard.h
+++ b/src/drivers/ao_sdcard.h
@@ -61,9 +61,9 @@ ao_sdcard_init(void);
#define SDCARD_DATA_RES_ACCEPTED 0x05
#define SDCARD_CMD_TIMEOUT 100
-#define SDCARD_IDLE_WAIT 100
+#define SDCARD_IDLE_WAIT 1000
#define SDCARD_BLOCK_TIMEOUT 100
-#define SDCARD_IDLE_TIMEOUT 10000
+#define SDCARD_IDLE_TIMEOUT 1000
enum ao_sdtype {
ao_sdtype_unknown,
diff --git a/src/telegps-v0.1/Makefile b/src/telegps-v0.1/Makefile
index 8e610db7..4458724d 100644
--- a/src/telegps-v0.1/Makefile
+++ b/src/telegps-v0.1/Makefile
@@ -16,8 +16,12 @@ INC = \
ao_cc115l.h \
ao_fec.h \
stm32l.h \
+ ao_sdcard.h \
+ ao_bufio.h \
+ ao_fat.h \
Makefile
+
#PROFILE=ao_profile.c
#PROFILE_DEF=-DAO_PROFILE=1