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

update AT91SAM9260 macb driver

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2051 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 97f10d0a
......@@ -324,15 +324,12 @@ void macb_update_link(struct rt_macb_eth *macb)
rt_kprintf("%s: link up (%dMbps/%s-duplex)\n",
dev->parent.name, macb->speed,
DUPLEX_FULL == macb->duplex ? "Full":"Half");
//macb->parent.link_status = 1;
//netif_set_link_up(macb->parent.netif);
eth_device_linkchange(&macb->parent, RT_TRUE);
} else {
rt_kprintf("%s: link down\n", dev->parent.name);
//macb->parent.link_status = 0;
//netif_set_link_down(macb->parent.netif);
eth_device_linkchange(&macb->parent, RT_FALSE);
}
//eth_device_linkchange(&macb->parent, RT_TRUE);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册