MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / EMACPHYPowerOn

Function EMACPHYPowerOn

bsp/tm4c129x/libraries/driverlib/emac.c:3064–3074  ·  view source on GitHub ↗

Powers on the Ethernet PHY. \param ui32Base is the base address of the controller. \param ui8PhyAddr is the physical address of the PHY to power up. This function powers on the Ethernet PHY, enabling it return to normal operation. By default, the PHY is powered on, so this function is only called if EMACPHYPowerOff() has previously been called. \return None.

Source from the content-addressed store, hash-verified

3062//
3063//*****************************************************************************
3064void
3065EMACPHYPowerOn(uint32_t ui32Base, uint8_t ui8PhyAddr)
3066{
3067 //
3068 // Clear the PWRDN bit and set the ANEGEN bit in the PHY, putting it into
3069 // normal operating mode.
3070 //
3071 EMACPHYWrite(ui32Base, ui8PhyAddr, EPHY_BMCR,
3072 (EMACPHYRead(ui32Base, ui8PhyAddr, EPHY_BMCR) &
3073 ~EPHY_BMCR_PWRDWN) | EPHY_BMCR_ANEN);
3074}
3075
3076//*****************************************************************************
3077//

Callers

nothing calls this directly

Calls 2

EMACPHYWriteFunction · 0.70
EMACPHYReadFunction · 0.70

Tested by

no test coverage detected