From 3965dc797040fcb269426c03c5e21a233a7ee2d3 Mon Sep 17 00:00:00 2001 From: kyz Date: Thu, 8 May 2025 10:58:04 +0800 Subject: [PATCH] reset phy --- user/user_app.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/user/user_app.c b/user/user_app.c index 6537721..e7d93e8 100644 --- a/user/user_app.c +++ b/user/user_app.c @@ -126,6 +126,12 @@ void main_task(void *argument) user_dev_init(); /* init code for LWIP */ + + //ÉϵçÓÐʱphyоƬûÓÐ50Mhz CLK²úÉú£¬µ¼ÖÂETH³õʼ»¯Ê§°Ü£¬ÕâÀïÏȸ´Î»Ò»ÏÂphyоƬ + HAL_GPIO_WritePin( PB15_ETH_RESET_GPIO_Port, PB15_ETH_RESET_Pin, GPIO_PIN_RESET ); + osDelay( 100 ); + HAL_GPIO_WritePin( PB15_ETH_RESET_GPIO_Port, PB15_ETH_RESET_Pin, GPIO_PIN_SET ); + MX_LWIP_Init(); Tcp_Server_Init(); -- 2.34.1