Searched refs:phy_value (Results 1 – 2 of 2) sorted by relevance
| /hal_gigadevice-latest/gd32f4xx/standard_peripheral/source/ |
| D | gd32f4xx_enet.c | 342 uint16_t phy_value = 0U; in enet_init() local 361 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_REG_BSR, &phy_value); in enet_init() 362 phy_value &= PHY_LINKED_STATUS; in enet_init() 364 } while((RESET == phy_value) && (timeout < PHY_READ_TO)); in enet_init() 373 phy_value = PHY_AUTONEGOTIATION; in enet_init() 374 phy_state = enet_phy_write_read(ENET_PHY_WRITE, PHY_ADDRESS, PHY_REG_BCR, &phy_value); in enet_init() 382 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_REG_BSR, &phy_value); in enet_init() 383 phy_value &= PHY_AUTONEGO_COMPLETE; in enet_init() 385 } while((RESET == phy_value) && (timeout < (uint32_t)PHY_READ_TO)); in enet_init() 394 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_SR, &phy_value); in enet_init() [all …]
|
| /hal_gigadevice-latest/gd32e50x/standard_peripheral/source/ |
| D | gd32e50x_enet.c | 341 uint16_t phy_value = 0U; in enet_init() local 360 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_REG_BSR, &phy_value); in enet_init() 361 phy_value &= PHY_LINKED_STATUS; in enet_init() 363 }while((RESET == phy_value) && (timeout < PHY_READ_TO)); in enet_init() 372 phy_value = PHY_AUTONEGOTIATION; in enet_init() 373 phy_state = enet_phy_write_read(ENET_PHY_WRITE, PHY_ADDRESS, PHY_REG_BCR, &phy_value); in enet_init() 381 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_REG_BSR, &phy_value); in enet_init() 382 phy_value &= PHY_AUTONEGO_COMPLETE; in enet_init() 384 }while((RESET == phy_value) && (timeout < (uint32_t)PHY_READ_TO)); in enet_init() 393 enet_phy_write_read(ENET_PHY_READ, PHY_ADDRESS, PHY_SR, &phy_value); in enet_init() [all …]
|