未验证 提交 4919c415 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #4864 from linzhenxing-bit/master

修改mmc初始化错误,将card-》csd写成card-》cid
......@@ -122,7 +122,7 @@ static int mmc_get_ext_csd(struct rt_mmcsd_card *card, rt_uint8_t **new_ext_csd)
*new_ext_csd = RT_NULL;
if (GET_BITS(card->resp_cid, 122, 4) < 4)
if (GET_BITS(card->resp_csd, 122, 4) < 4)
return 0;
/*
......@@ -303,7 +303,7 @@ static int mmc_select_bus_width(struct rt_mmcsd_card *card, rt_uint8_t *ext_csd)
unsigned idx, trys, bus_width = 0;
int err = 0;
if (GET_BITS(card->resp_cid, 122, 4) < 4)
if (GET_BITS(card->resp_csd, 122, 4) < 4)
return 0;
/*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册