(eth_link_status1 == ETH_LINK_UNDEFINED)) return; phy_link_status = phy_link_detect(xemacp, phyaddrforemac); net1_link_state = phy_link_status; if ((eth_link_status1 == ETH_LINK_UP) && (!phy_link_status)) eth_link_status1 = ETH_LINK_DOWN; switch (eth_link_status1) { case...
(eth_link_status == ETH_LINK_UNDEFINED)) return; phy_link_status = phy_link_detect(xemacp, phyaddrforemac); net0_link_state = phy_link_status; if ((eth_link_status == ETH_LINK_UP) && (!phy_link_status)) eth_link_status = ETH_LINK_DOWN; switch (eth_link_status) { case ETH_...
(eth_link_status == ETH_LINK_UNDEFINED)) return; phy_link_status = phy_link_detect(xemacp, phyaddrforemac); if ((eth_link_status == ETH_LINK_UP) && (!phy_link_status)) eth_link_status = ETH_LINK_DOWN; switch (eth_link_status) { case ETH_LINK_UNDEFINED: case ETH_LINK_UP: re...
(eth_link_status == ETH_LINK_UNDEFINED)) return; phy_link_status = phy_link_detect(xemacp, phyaddrforemac); net0_link_state = phy_link_status; if ((eth_link_status == ETH_LINK_UP) && (!phy_link_status)) eth_link_status = ETH_LINK_DOWN; switch (eth_link_status) { case ETH_...
== ETH_LINK_DETECT_INTERVAL) { eth_link_detect(echo_netif);DetectEthLinkStatus = 0;} */ ...
15 EthLinkStatus = 1; 16 /* Set link down */ 17 netif_set_link_down(&gnetif); 18 19 status = 0; 20 } 21 } ETH_CheckLinkStatus函数用于获取PHY状态,实际上也是通过宏定义GET_PHY_LINK_STATUS()获取得到的,函数还根据PHY状态通知LwIP当前链路状态,gnetif是一个netif结构体类型变量,LwIP定义了...
//if ((eth_link_status == ETH_LINK_UP) && (!phy_link_status))// eth_link_status = ETH_LINK_DOWN; Then this app can be run under my ethernet chip KSZ9031RN. Is it due to that this chip can not return proper link status at line 351: ...
t && status) { EthLinkStatus = 1; /* Set link down */ netif_set_link_down(&gnetif); status = 0; } } ETH_CheckLinkStatus函数用于获取PHY状态,实际上也是通过宏定义GET_PHY_LINK_STATUS()获取得到的,函数还根据PHY状态通知LwIP当前链路状态, gnetif是一个netif结构体类型变量,LwIP定义了netif结构...
if(((ETH_ReadPHYRegister(DP83848_PHY_ADDRESS, PHY_MISR)) & PHY_LINK_STATUS) != 0){/*检测...
uint16_t ETH_CHIP_SPEED_STATUS; uint16_t ETH_CHIP_DUPLEX_STATUS;#endif/*Private functions ---*//*** PHI IO Functions ***