提交 0560feab 编写于 作者: S SummerGift

修改:网卡驱动注册后改变连接状态为link up,避免因为连接状态没有更新而导致lwip 2.02无法使用。

上级 ebf0b32f
......@@ -602,6 +602,9 @@ static int rt_hw_stm32_eth_init(void)
{
STM32_ETH_PRINTF("eth_device_init faild: %d\r\n", state);
}
eth_device_linkchange(&stm32_eth_device.parent, RT_TRUE); //linkup the e0 for lwip to check
return state;
}
INIT_DEVICE_EXPORT(rt_hw_stm32_eth_init);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册