Ethernet link status for the K64F

Dependents:   JRO_CR2 K64F_EthLink_HelloWorld frdm_test JRO_DDSv2

Simple K64F technique to determine if the Ethernet PHY link is up or down. The routine utilizes the Ethernet MII interface to gain access to the Ethernet PHY which contains the actual link status.

I wrote this because the mbed Ethernet function does not recognize its own "int link();" function with the K64F.

History

Changed from: default tip

2016-05-19, by loopsva [Thu, 19 May 2016 17:20:55 +0000] rev 4

Changed from:
;
; uint32_t k64f_mdio_reg = ENET_EIR;
;
; To:
;
; uint32_t k64f_mdio_reg = ENET->EIR;


Minor change to #if directive

2014-11-07, by loopsva [Fri, 07 Nov 2014 22:05:00 +0000] rev 3

Minor change to #if directive


Added compiler test for K46F and RTOS

2014-11-07, by loopsva [Fri, 07 Nov 2014 21:41:13 +0000] rev 2

Added compiler test for K46F and RTOS


Changed MDIO timeout from 200mS to 300mS

2014-10-01, by loopsva [Wed, 01 Oct 2014 00:23:48 +0000] rev 1

Changed MDIO timeout from 200mS to 300mS


Crude driver for obtaining the K64F's Ethernet link status

2014-09-30, by loopsva [Tue, 30 Sep 2014 21:48:34 +0000] rev 0

Crude driver for obtaining the K64F's Ethernet link status