From cf4f42ea195166dd2432c5cb825d67d43af95611 Mon Sep 17 00:00:00 2001 From: laoyening <1337849843@qq.com> Date: Mon, 12 Aug 2019 17:47:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=9C=A8=E6=B2=A1=E6=8F=92=E5=A5=BD?= =?UTF-8?q?=E7=BD=91=E7=BA=BF=EF=BC=8C=E5=BC=80=E5=8F=91=E6=9D=BF=E5=B0=B1?= =?UTF-8?q?=E4=B8=8A=E7=94=B5=E6=97=B6=EF=BC=8C=E4=BB=A5=E5=A4=AA=E7=BD=91?= =?UTF-8?q?=E7=A1=AC=E4=BB=B6=E5=88=9D=E5=A7=8B=E5=8C=96=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=EF=BC=8C=E5=AF=BC=E8=87=B4=E4=B8=8B=E4=B8=80?= =?UTF-8?q?=E6=AD=A5=E7=9A=84=E4=BB=A5=E5=A4=96=E7=BD=91DMA=E7=8E=AF?= =?UTF-8?q?=E7=BB=93=E6=9E=84=E5=92=8C=E4=BB=A5=E5=A4=AA=E7=BD=91=E4=B8=AD?= =?UTF-8?q?=E6=96=AD=E9=83=BD=E6=B2=A1=E6=9C=89=E8=A2=AB=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E5=A5=BD=E3=80=82=E7=AD=89=E5=88=B0=E7=BD=91=E7=BA=BF?= =?UTF-8?q?=E8=A2=AB=E6=8F=92=E5=A5=BD=E4=B9=8B=E5=90=8E=EF=BC=8C=E4=BB=A5?= =?UTF-8?q?=E5=A4=AA=E7=BD=91=E6=8E=A5=E6=94=B6=E6=95=B0=E6=8D=AE=E7=BA=BF?= =?UTF-8?q?=E7=A8=8B=E5=A0=86=E6=A0=88=E6=BA=A2=E5=87=BA=EF=BC=8C=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E5=8F=91=E7=94=9F=E5=A5=94=E6=BA=83=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/libraries/HAL_Drivers/drv_eth.c | 1 - 1 file changed, 1 deletion(-) diff --git a/bsp/stm32/libraries/HAL_Drivers/drv_eth.c b/bsp/stm32/libraries/HAL_Drivers/drv_eth.c index a258fc3821..12308a7391 100644 --- a/bsp/stm32/libraries/HAL_Drivers/drv_eth.c +++ b/bsp/stm32/libraries/HAL_Drivers/drv_eth.c @@ -102,7 +102,6 @@ static rt_err_t rt_stm32_eth_init(rt_device_t dev) if (HAL_ETH_Init(&EthHandle) != HAL_OK) { LOG_E("eth hardware init failed"); - return -RT_ERROR; } else { From cdb70c696eb8bc6027cc1141a043fd44117dbf8c Mon Sep 17 00:00:00 2001 From: laoyening <1337849843@qq.com> Date: Thu, 15 Aug 2019 10:37:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E5=A4=8D=E5=9B=A0LAN872?= =?UTF-8?q?0A=E9=87=8D=E5=90=AF=E6=97=A0=E6=95=88=E8=80=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=97=A0=E6=B3=95=E8=BF=9B=E8=A1=8C=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8D=8F=E5=95=86=EF=BC=8C=E5=BC=95=E8=B5=B7=E7=BD=91=E5=8D=A1?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=A4=B1=E8=B4=A5=E3=80=82=202?= =?UTF-8?q?=E3=80=81LWIP-1.4.1=E4=B8=ADtcp=E5=8D=8F=E8=AE=AE=E6=A0=88?= =?UTF-8?q?=E7=9A=84=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=BA=E5=BA=8F=E6=9C=89?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E5=AF=BC=E8=87=B4=E4=BD=BF=E7=94=A8netdev?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=97=B6=EF=BC=8C=E7=BD=91=E5=8D=A1=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=B3=A8=E5=86=8C=EF=BC=8C=E8=AF=A5?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=B9=8B=E5=89=8D=E5=9C=A8LWIP-2.0.2?= =?UTF-8?q?=E5=92=8CLWIP-2.1.0=E5=B7=B2=E7=BB=8F=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/stm32/stm32f407-atk-explorer/board/ports/phy_reset.c | 2 +- components/net/lwip-1.4.1/src/arch/sys_arch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/stm32/stm32f407-atk-explorer/board/ports/phy_reset.c b/bsp/stm32/stm32f407-atk-explorer/board/ports/phy_reset.c index 3e032649aa..838216ffaa 100644 --- a/bsp/stm32/stm32f407-atk-explorer/board/ports/phy_reset.c +++ b/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); diff --git a/components/net/lwip-1.4.1/src/arch/sys_arch.c b/components/net/lwip-1.4.1/src/arch/sys_arch.c index b8085e69d1..c31bd59c1d 100644 --- a/components/net/lwip-1.4.1/src/arch/sys_arch.c +++ b/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) {