DM9161_InitPhy
Default mainpageat91libcomponentsethernetdm9161DM9161_InitPhy
Description Source Call Graph
DM9161_InitPhy
Do a HW initialize to the PHY ( via RSTC ) and setup clocks & PIOs This should be called only once to initialize the PHY pre-settings.
 
Syntax / parameters
unsigned char DM9161_InitPhy (Dm9161 *pDm, unsigned int mck, const Pin *pResetPins, unsigned int nbResetPins, const Pin *pEmacPins, unsigned int nbEmacPins)

Name Type Default Description
pDm Dm9161 *
  Pointer to the Dm9161 instance
mck unsigned int
  Main clock setting to initialize clock
pResetPins const Pin *
   
nbResetPins unsigned int
  Number of PIO items that should be configured
pEmacPins const Pin *
   
nbEmacPins unsigned int
  Number of PIO items that should be configured
 
Return value unsigned char
   
Description
Do a HW initialize to the PHY ( via RSTC ) and setup clocks & PIOs This should be called only once to initialize the PHY pre-settings.
The PHY address is reset status of CRS,RXD[3:0] (the emacPins' pullups). The COL pin is used to select MII mode on reset (pulled up for Reduced MII) The RXDV pin is used to select test mode on reset (pulled up for test mode) The above pins should be predefined for corresponding settings in resetPins The EMAC peripheral pins are configured after the reset done. Return 1 if RESET OK, 0 if timeout.
 
Source
The documentation for this Member was generated from the following files:
  • dm9161.c