diff options
| author | Bernard Xiong <[email protected]> | 2017-10-27 12:32:08 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-10-27 12:32:08 +0800 |
| commit | acf8ab9af2399cba348f97d0f82efae9ad27af2f (patch) | |
| tree | 82528df86aaaf583e28545603c0b327d47239c60 | |
| parent | 192a6db76332944da8937307af3160bf3c826ade (diff) | |
| parent | 0560feabdd6e94a961c9fa2a236485b2bacf6770 (diff) | |
Merge pull request #911 from SummerGGift/patch_171027-2
[BSP] Fix the linkup state for ETH initialization.
| -rw-r--r-- | bsp/stm32f429-apollo/drivers/drv_eth.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |
