From c0268564074c65c620c47f434de44b507391d8ca Mon Sep 17 00:00:00 2001 From: "luohui2320@gmail.com" Date: Sat, 14 Apr 2012 16:20:27 +0000 Subject: [PATCH] fix at91sam9260 emac driver compiling warning git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2058 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- bsp/at91sam9260/macb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bsp/at91sam9260/macb.c b/bsp/at91sam9260/macb.c index 0d9d5c8c3..f26a62289 100755 --- a/bsp/at91sam9260/macb.c +++ b/bsp/at91sam9260/macb.c @@ -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); -- GitLab