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.

Revision:
3:fbd2336e1193
Parent:
2:59166b94dfd0
Child:
4:9d2a4dc03170
diff -r 59166b94dfd0 -r fbd2336e1193 k64f_EthLink.cpp
--- a/k64f_EthLink.cpp	Fri Nov 07 21:41:13 2014 +0000
+++ b/k64f_EthLink.cpp	Fri Nov 07 22:05:00 2014 +0000
@@ -1,4 +1,4 @@
-#ifdef defined(TARGET_K64F)
+#if defined(TARGET_K64F)
 #include "k64f_EthLink.h"
 
 //--------------------------------------------------------------------------------------------------------------------------------------//
@@ -38,3 +38,4 @@
 #endif
 
 
+