gioSetBit(dmmPORT, DMM_CLK, 1);
dummy_wait();
*/
- /* Fill some testing ethernet frame with relevant data */
+ /* Fill some testing Ethernet frame with relevant data */
efr1.destination[0] = 0x00;
efr1.destination[1] = 0x21;
efr1.destination[2] = 0x70;
}
//} while (phyalive == 0);
phylink = MDIOPhyLinkStatusGet(mdioBase);
- if (!phylink) {
+ if (!phylink)
print((uint8_t *)"PHY link down\r\n");
- return -1;
- }
-
+ else
+ print((uint8_t *)"PHY link up\r\n");
+ print((uint8_t *)"Configuring PHY and EMAC...\r\n");
PHY_configure(mdioBase, emacPhyAddress);
/* Set the EMAC with the negotiation results if it is successful */
//EMACRxEnable(emacBase);
EMACTxEnable(emacBase);
-
EMACMIIEnable(emacBase);
+ phylink = MDIOPhyLinkStatusGet(mdioBase);
+ if (!phylink)
+ print((uint8_t *)"PHY link down\r\n");
+ else
+ print((uint8_t *)"PHY link up\r\n");
+
+
for (j = 0; j < 8; j++) {
fr1.pNext = NULL;
fr1.pBuffer = (uint8_t*)&efr1;