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.

Files at this revision

API Documentation at this revision

Comitter:
loopsva
Date:
Fri Nov 07 22:05:00 2014 +0000
Parent:
2:59166b94dfd0
Child:
4:9d2a4dc03170
Commit message:
Minor change to #if directive

Changed in this revision

k64f_EthLink.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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
 
 
+