提交 c0268564 编写于 作者: L luohui2320@gmail.com

fix at91sam9260 emac driver compiling warning

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2058 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 d97ea98c
......@@ -294,8 +294,9 @@ static int macb_phy_init(rt_device_t dev)
}
}
void macb_update_link(struct rt_macb_eth *macb)
void macb_update_link(void *param)
{
struct rt_macb_eth *macb = (struct rt_macb_eth *)param;
rt_device_t dev = &macb->parent.parent;
rt_uint32_t status, status_change = 0;
rt_uint32_t link;
......@@ -407,7 +408,7 @@ static rt_err_t rt_macb_init(rt_device_t dev)
rt_timer_init(&macb->timer, "link_timer",
macb_update_link,
macb,
(void *)macb,
RT_TICK_PER_SECOND,
RT_TIMER_FLAG_PERIODIC);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册