first cut at turnon scripts for EasyTimer v2
[fw/altos] / src / drivers / ao_sdcard.h
index e55a3dec38c87c15d3afc51d5baa46fdf17bc480..8f794efc13b57f6eb3676161d998d0045d7ea3e2 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -65,10 +66,11 @@ ao_sdcard_init(void);
 #define SDCARD_DATA_RES_MASK           0x1f
 #define SDCARD_DATA_RES_ACCEPTED       0x05
 
-#define SDCARD_CMD_TIMEOUT             AO_MS_TO_TICKS(100)
-#define SDCARD_BUSY_TIMEOUT            AO_MS_TO_TICKS(100)
-#define SDCARD_IDLE_WAIT               10000
-#define SDCARD_BLOCK_TIMEOUT           AO_MS_TO_TICKS(1000)
+#define SDCARD_CMD_TIMEOUT             AO_MS_TO_TICKS(20)
+#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,