Merge pull request #2981 from LaoYeNing/rtt-branch

[stm32][driver_eth] 修复开启自动协商时出错的 bug
This commit is contained in:
Bernard Xiong 2019-08-22 17:31:24 +08:00 committed by GitHub
commit 61f151f463
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 3 deletions

View File

@ -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
{

View File

@ -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);

View File

@ -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)
{