Przeglądaj źródła

update:增加spi读TF卡的鲁棒性

alienwalker 4 lat temu
rodzic
commit
3b40a959e8
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      bsp/device/src/dev_sdhc_spi.c

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

@@ -658,6 +658,7 @@ WAIT_INIT_DONE:
 	}
 	}
 	Ctrl->OCR = BytesGetBe32(Ctrl->ExternResult);
 	Ctrl->OCR = BytesGetBe32(Ctrl->ExternResult);
 	SPI_SetNewConfig(Ctrl->SpiID, Ctrl->SpiSpeed, 0xff);
 	SPI_SetNewConfig(Ctrl->SpiID, Ctrl->SpiSpeed, 0xff);
+	SDHC_SpiReadCardConfig(pSDHC);
 	SD_DBG("sdcard init OK OCR:0x%08x!", Ctrl->OCR);
 	SD_DBG("sdcard init OK OCR:0x%08x!", Ctrl->OCR);
 	return;
 	return;
 INIT_DONE:
 INIT_DONE: