From 44e3a56d91674b727dc3c97feb66833c42072523 Mon Sep 17 00:00:00 2001 From: liu2guang <1004383796@qq.com> Date: Thu, 14 Sep 2017 17:23:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9SD=E5=8D=A1=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=AF=BB=E5=86=99=E8=B6=85=E8=BF=872G=20sect?= =?UTF-8?q?or=E5=9C=B0=E5=9D=80=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32f429-apollo/drivers/drv_sdio_sd.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/bsp/stm32f429-apollo/drivers/drv_sdio_sd.c b/bsp/stm32f429-apollo/drivers/drv_sdio_sd.c index 5e160ae669..e1716be0de 100644 --- a/bsp/stm32f429-apollo/drivers/drv_sdio_sd.c +++ b/bsp/stm32f429-apollo/drivers/drv_sdio_sd.c @@ -242,10 +242,10 @@ static rt_size_t rt_sdcard_read(rt_device_t dev, rt_off_t pos, void* buffer, rt_ { /* non-aligned. */ uint32_t i; - rt_size_t sector_adr; + uint64_t sector_adr; uint8_t* copy_buffer; - sector_adr = pos*SECTOR_SIZE; + sector_adr = (uint64_t)pos*SECTOR_SIZE; copy_buffer = (uint8_t*)buffer; for(i=0; i