Browse Source

1、修复因LAN8720A重启无效而导致无法进行自动协商,引起网卡初始化失败。
2、LWIP-1.4.1中tcp协议栈的初始化顺序有误,导致使用netdev组件时,网卡无法正常注册,该问题之前在LWIP-2.0.2和LWIP-2.1.0已经修复。

laoyening 5 years ago
parent
commit
cdb70c696e

+ 1 - 1
bsp/stm32/stm32f407-atk-explorer/board/ports/phy_reset.c

@@ -25,4 +25,4 @@ int phy_init(void)
     rt_pin_write(RESET_IO, PIN_HIGH);
     return RT_EOK;
 }
-INIT_APP_EXPORT(phy_init);
+INIT_BOARD_EXPORT(phy_init);

+ 1 - 1
components/net/lwip-1.4.1/src/arch/sys_arch.c

@@ -198,7 +198,7 @@ int lwip_system_init(void)
 
 	return 0;
 }
-INIT_COMPONENT_EXPORT(lwip_system_init);
+INIT_PREV_EXPORT(lwip_system_init);
 
 void sys_init(void)
 {