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

Merge pull request #4096 from Guozhanxin/sdio_fix

完善sdio框架中切换到高速模式时的时钟设置
......@@ -892,9 +892,9 @@ static rt_int32_t sdio_init_card(struct rt_mmcsd_host *host, rt_uint32_t ocr)
if (card->flags & CARD_FLAG_HIGHSPEED)
{
mmcsd_set_clock(host, 50000000);
}
else
mmcsd_set_clock(host, card->host->freq_max > 50000000 ? 50000000 : card->host->freq_max);
}
else
{
mmcsd_set_clock(host, card->cis.max_tran_speed);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册