From 0560feabdd6e94a961c9fa2a236485b2bacf6770 Mon Sep 17 00:00:00 2001 From: SummerGift Date: Fri, 27 Oct 2017 11:08:37 +0800 Subject: 修改:网卡驱动注册后改变连接状态为link up,避免因为连接状态没有更新而导致lwip 2.02无法使用。 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32f429-apollo/drivers/drv_eth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bsp/stm32f429-apollo/drivers/drv_eth.c b/bsp/stm32f429-apollo/drivers/drv_eth.c index 257e34f701..3f17445935 100644 --- a/bsp/stm32f429-apollo/drivers/drv_eth.c +++ b/bsp/stm32f429-apollo/drivers/drv_eth.c @@ -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); -- cgit v1.3.1