mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 20:57:20 +08:00
Fix the value width issue under 32/64 bit arch.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user