提交 222edd25 编写于 作者: W weety

[BSP][AT91SAM9260] update sdio drivers.

上级 e4dd86a1
......@@ -73,9 +73,6 @@ int main(void)
#endif
#ifdef RT_USING_SDIO
rt_mmcsd_core_init();
rt_mmcsd_blk_init();
at91_mci_init();
timeout = 0;
while ((rt_device_find("sd0") == RT_NULL) && (timeout++ < RT_TICK_PER_SECOND*2))
{
......
......@@ -834,7 +834,7 @@ static void mci_gpio_init()
#endif
}
rt_int32_t at91_mci_init(void)
int at91_mci_init(void)
{
struct rt_mmcsd_host *host;
struct at91_mci *mci;
......@@ -903,6 +903,7 @@ err:
return -RT_ENOMEM;
}
INIT_DEVICE_EXPORT(at91_mci_init);
#include "finsh.h"
FINSH_FUNCTION_EXPORT(at91_mci_init, at91sam9260 sd init);
......
......@@ -119,6 +119,6 @@
#define AT91_MCI_IDR 0x48 /* Interrupt Disable Register */
#define AT91_MCI_IMR 0x4c /* Interrupt Mask Register */
extern rt_int32_t at91_mci_init(void);
extern int at91_mci_init(void);
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册