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.
| 3062 | // |
| 3063 | //***************************************************************************** |
| 3064 | void |
| 3065 | EMACPHYPowerOn(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 | // |
nothing calls this directly
no test coverage detected