altos: Increase SD card timeout at startup time
authorKeith Packard <keithp@keithp.com>
Sun, 31 Mar 2013 20:55:16 +0000 (13:55 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 31 Mar 2013 20:55:16 +0000 (13:55 -0700)
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>
src/drivers/ao_sdcard.h
src/telegps-v0.1/Makefile

index be0ff1f3596d852677b931f1a36af39686f48f52..512439b4bc1e2b77c0d5e8eaceec521d23699efd 100644 (file)
@@ -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,
index 8e610db7594cec3e2eb21cd36affa42a3ce02c21..4458724d41a488b5ee51923f436a83f27b1efe08 100644 (file)
@@ -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