summaryrefslogtreecommitdiff
path: root/components/drivers/sdio
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-12-13 14:54:26 +0800
committerBernard Xiong <[email protected]>2018-12-13 14:54:26 +0800
commit1f37de29c4ee4dac488aa9c4f8f0990263f94c1a (patch)
treed4490ad25d6b751e8fcfbb30af40141e387946f9 /components/drivers/sdio
parentdcf7bce2cc5d04bcb006b84a27a5498f42268184 (diff)
Fix the value width issue under 32/64 bit arch.
Diffstat (limited to 'components/drivers/sdio')
-rw-r--r--components/drivers/sdio/mmcsd_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/drivers/sdio/mmcsd_core.c b/components/drivers/sdio/mmcsd_core.c
index d1f5978374..2206960a69 100644
--- a/components/drivers/sdio/mmcsd_core.c
+++ b/components/drivers/sdio/mmcsd_core.c
@@ -595,7 +595,7 @@ static void mmcsd_power_off(struct rt_mmcsd_host *host)
int mmcsd_wait_cd_changed(rt_int32_t timeout)
{
struct rt_mmcsd_host *host;
- if (rt_mb_recv(&mmcsd_hotpluge_mb, (rt_uint32_t*)&host, timeout) == RT_EOK)
+ if (rt_mb_recv(&mmcsd_hotpluge_mb, (rt_ubase_t *)&host, timeout) == RT_EOK)
{
if(host->card == RT_NULL)
{
@@ -623,7 +623,7 @@ void mmcsd_detect(void *param)
while (1)
{
- if (rt_mb_recv(&mmcsd_detect_mb, (rt_uint32_t*)&host, RT_WAITING_FOREVER) == RT_EOK)
+ if (rt_mb_recv(&mmcsd_detect_mb, (rt_ubase_t *)&host, RT_WAITING_FOREVER) == RT_EOK)
{
if (host->card == RT_NULL)
{