Merge pull request #2981 from LaoYeNing/rtt-branch
[stm32][driver_eth] 修复开启自动协商时出错的 bug
This commit is contained in:
commit
61f151f463
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue