From 99e6d7dfcdcc9a3195253af748e74a749c881ec7 Mon Sep 17 00:00:00 2001 From: heyuanjie <943313837@qq.com> Date: Fri, 20 Apr 2018 11:41:37 +0800 Subject: [PATCH] =?UTF-8?q?[imx=20rt]mdk=20memcpy=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=9F=BA=E5=9C=B0=E5=9D=80=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/imxrt1052-evk/drivers/drv_sdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/imxrt1052-evk/drivers/drv_sdio.c b/bsp/imxrt1052-evk/drivers/drv_sdio.c index 33a9c81f8..d8eda0730 100644 --- a/bsp/imxrt1052-evk/drivers/drv_sdio.c +++ b/bsp/imxrt1052-evk/drivers/drv_sdio.c @@ -357,7 +357,7 @@ static void _mmc_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req) if (buf) { MMCSD_DGB(" write(data->buf to buf) "); - memcpy(buf, data->buf, fsl_data.blockSize * fsl_data.blockCount); + rt_memcpy(buf, data->buf, fsl_data.blockSize * fsl_data.blockCount); fsl_data.txData = (uint32_t const *)buf; } else @@ -401,7 +401,7 @@ static void _mmc_request(struct rt_mmcsd_host *host, struct rt_mmcsd_req *req) if (fsl_data.rxData) { MMCSD_DGB("read copy buf to data->buf "); - memcpy(data->buf, buf, fsl_data.blockSize * fsl_data.blockCount); + rt_memcpy(data->buf, buf, fsl_data.blockSize * fsl_data.blockCount); } rt_free_align(buf);