summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
Diffstat (limited to 'bsp')
-rw-r--r--bsp/stm32/libraries/HAL_Drivers/drv_eth.c1
-rw-r--r--bsp/stm32/stm32f407-atk-explorer/board/ports/phy_reset.c2
2 files changed, 1 insertions, 2 deletions
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
{
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);