Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of lwip-eth by
Diff: arch/TARGET_Freescale/k64f_emac.c
- Revision:
- 21:10cdd9fe0509
- Parent:
- 20:620d381e7f4c
- Child:
- 27:fde88aaaea28
--- a/arch/TARGET_Freescale/k64f_emac.c Mon Sep 22 17:30:30 2014 +0100 +++ b/arch/TARGET_Freescale/k64f_emac.c Mon Oct 13 07:15:17 2014 +0100 @@ -723,6 +723,13 @@ enet_phy_duplex_t duplex; } PHY_STATE; +int phy_link_status() { + bool connection_status; + enet_dev_if_t * enetIfPtr = (enet_dev_if_t*)&enetDevIf[BOARD_DEBUG_ENET_INSTANCE]; + phy_get_link_status(enetIfPtr, &connection_status); + return (int)connection_status; +} + static void k64f_phy_task(void *data) { struct netif *netif = (struct netif*)data; bool connection_status;