Browse Source

Merge pull request #911 from SummerGGift/patch_171027-2

[BSP] Fix the linkup state for ETH initialization.
Bernard Xiong 7 years ago
parent
commit
acf8ab9af2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      bsp/stm32f429-apollo/drivers/drv_eth.c

+ 3 - 0
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);
         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;
     return state;
 }
 }
 INIT_DEVICE_EXPORT(rt_hw_stm32_eth_init);
 INIT_DEVICE_EXPORT(rt_hw_stm32_eth_init);