金牌会员
 
- 积分
- 1423
- 金钱
- 1423
- 注册时间
- 2016-8-3
- 在线时间
- 576 小时
|
发表于 2019-3-5 08:42:09
|
显示全部楼层
在stm32f4x7_eth.c中
if(ETH_InitStruct->ETH_AutoNegotiation != ETH_AutoNegotiation_Disable)
{
/* We wait for linked satus... */
do
{
timeout++;
} while (!(ETH_ReadPHYRegister(PHYAddress, PHY_BSR) & PHY_Linked_Status) && (timeout < PHY_READ_TO));
/* Return ERROR in case of timeout */
if(timeout == PHY_READ_TO)
{
return ETH_ERROR;
}
/* Reset Timeout counter */
timeout = 0;
中的ETH_AutoNegotiation_Disable,换成ETH_AutoNegotiation_Enable |
|