summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-12-13 16:47:19 +0800
committerGitHub <[email protected]>2018-12-13 16:47:19 +0800
commitb75a809d197f4a248ed995f2688187a4697ba1c3 (patch)
treed4490ad25d6b751e8fcfbb30af40141e387946f9 /components/drivers
parentdcf7bce2cc5d04bcb006b84a27a5498f42268184 (diff)
parent1f37de29c4ee4dac488aa9c4f8f0990263f94c1a (diff)
Merge pull request #2070 from RT-Thread/fix_32bit_64bit
Fix the value width issue under 32/64 bit arch.
Diffstat (limited to 'components/drivers')
-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)
{