mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-23 20:57:20 +08:00
Merge pull request #2981 from LaoYeNing/rtt-branch
[stm32][driver_eth] 修复开启自动协商时出错的 bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user