Browse Source

update:有些TF卡上电初始化比较慢

alienwalker 4 years ago
parent
commit
f4e14f4509
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bsp/device/src/dev_sdhc_spi.c

+ 1 - 1
bsp/device/src/dev_sdhc_spi.c

@@ -406,7 +406,7 @@ void SDHC_SpiInitCard(void *pSDHC)
 	{
 		goto INIT_DONE;
 	}
-	OpEndTick = GetSysTick() + 100 * CORE_TICK_1MS;
+	OpEndTick = GetSysTick() + 1 * CORE_TICK_1S;
 	if (SDHC_SpiCmd(Ctrl, CMD8, 0x1aa, 1))	//只支持2G以上的SDHC卡
 	{
 		goto INIT_DONE;