The timer delay takes already ms, fixed it.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 2 Aug 2011 08:35:10 +0000 (08:35 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 2 Aug 2011 08:35:10 +0000 (08:35 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4984 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/sd.c

index c12d7592e6660332d57a430c1473e620057ae37a..e6ca8f93f86775f0968e326733197586c4e8451d 100644 (file)
@@ -412,8 +412,8 @@ static const KBlockVTable sd_buffered_vt =
 #define SD_SEND_OP_COND      0x41
 #define SD_SEND_OP_COND_CRC  0xF9
 
-#define SD_START_DELAY  ms_to_ticks(10)
-#define SD_INIT_TIMEOUT ms_to_ticks(1000)
+#define SD_START_DELAY  10
+#define SD_INIT_TIMEOUT 1000
 #define SD_IDLE_RETRIES 4
 
 static bool sd_blockInit(Sd *sd, KFile *ch)