projects
/
yn
/
alarmmonitor_mcu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a89b186
)
reset phy
author
kyz
<kongyuzhong@google.com>
Thu, 8 May 2025 02:58:04 +0000
(10:58 +0800)
committer
kyz
<kongyuzhong@google.com>
Thu, 8 May 2025 02:58:04 +0000
(10:58 +0800)
user/user_app.c
patch
|
blob
|
history
diff --git
a/user/user_app.c
b/user/user_app.c
index 65377213be8b8b81ff402a0de0ccb864fbfa4c92..e7d93e869986441ac0fdd75f6cdcd8f5319ec7a1 100644
(file)
--- 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();