File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
libraries/net/eth/lwip-eth/arch/TARGET_Freescale Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -723,6 +723,13 @@ typedef struct {
723
723
enet_phy_duplex_t duplex ;
724
724
} PHY_STATE ;
725
725
726
+ int phy_link_status () {
727
+ bool connection_status ;
728
+ enet_dev_if_t * enetIfPtr = (enet_dev_if_t * )& enetDevIf [BOARD_DEBUG_ENET_INSTANCE ];
729
+ phy_get_link_status (enetIfPtr , & connection_status );
730
+ return (int )connection_status ;
731
+ }
732
+
726
733
static void k64f_phy_task (void * data ) {
727
734
struct netif * netif = (struct netif * )data ;
728
735
bool connection_status ;
Original file line number Diff line number Diff line change 44
44
45
45
#define ENET_ETH_MAX_FLEN (1522) // recommended size for a VLAN frame
46
46
47
+ #if defined(__cplusplus )
48
+ extern "C" {
49
+ #endif
50
+
51
+ int phy_link_status (void );
52
+
53
+ #if defined(__cplusplus )
54
+ }
55
+ #endif
56
+
47
57
#endif // #define K64F_EMAC_CONFIG_H__
48
58
You can’t perform that action at this time.
0 commit comments