[BSP][DM365] update mmcsd driver.

This commit is contained in:
weety 2017-11-05 21:43:02 +08:00
parent 222edd25c0
commit db41e7e30e
3 changed files with 5 additions and 5 deletions

View File

@ -67,9 +67,6 @@ int main(void)
#endif
#ifdef RT_USING_SDIO
rt_mmcsd_core_init();
rt_mmcsd_blk_init();
rt_hw_mmcsd_init();
timeout = 0;
while ((rt_device_find("sd0") == RT_NULL) && (timeout++ < RT_TICK_PER_SECOND*2))
{

View File

@ -1388,7 +1388,7 @@ static void rt_hw_edma_init(void)
** :
**
********************************************************************************************************/
rt_int32_t rt_hw_mmcsd_init(void)
int rt_hw_mmcsd_init(void)
{
struct clk *clk;
struct mmc_dm365_host *dm365_host;
@ -1477,3 +1477,6 @@ err:
return -RT_ENOMEM;
}
INIT_DEVICE_EXPORT(rt_hw_mmcsd_init);

View File

@ -140,6 +140,6 @@ typedef struct {
volatile rt_uint32_t MMCFIFOCTL;
}mmcsd_regs_t;
extern rt_int32_t rt_hw_mmcsd_init(void);
extern int rt_hw_mmcsd_init(void);
#endif