/* Send lValue to the lPhyReg within the PHY.  */
static long prvWritePHY(long lPhyReg, long lValue)
/* Send lValue to the lPhyReg within the PHY.  */
static long prvWritePHY(long lPhyReg, long lValue)
{
const long lMaxTime = 10;
long x;
	LPC_EMAC->MADR = DP83848C_DEF_ADR | lPhyReg;
	LPC_EMAC->MWTD = lValue;
	x = 0;
	for( x = 0; x < lMaxTime; x++ )
	{
		if( ( LPC_EMAC->MIND & MIND_BUSY ) == 0 )
		{
			break;
		}
		vTaskDelay( emacSHORT_DELAY );
	}
	if( x < lMaxTime )
	{
		return pdPASS;
	}
	else
	{
		return pdFAIL;
	}
}