diff options
| author | Bernard Xiong <[email protected]> | 2021-07-14 17:09:07 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-07-14 17:09:07 +0800 |
| commit | 4919c415273d2b95a0e2a994bb081cad78969d22 (patch) | |
| tree | b589908c3b50c99ae8fdf92e29d2358e50a62680 /components | |
| parent | 2602f54ff41337e694a1f675808dc40b3421da48 (diff) | |
| parent | 9f9c3a2bb0d75e99cf1cd8c091f11c6cd1b2b1f4 (diff) | |
Merge pull request #4864 from linzhenxing-bit/master
修改mmc初始化错误,将card-》csd写成card-》cid
Diffstat (limited to 'components')
| -rw-r--r-- | components/drivers/sdio/mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/sdio/mmc.c b/components/drivers/sdio/mmc.c index d8f3a9e0a5..bebfa39ea2 100644 --- a/components/drivers/sdio/mmc.c +++ b/components/drivers/sdio/mmc.c @@ -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; /* |
