File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
lwIP_enc28j60/src/utility Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -715,8 +715,10 @@ uint16_t ENC28J60::phyread(uint8_t reg) {
715
715
716
716
bool ENC28J60::isLinked () {
717
717
// ( https://github.com/JAndrassy/EthernetENC/tree/master/src/utility/enc28j60.h )
718
+ ethernet_arch_lwip_gpio_mask ();
718
719
ethernet_arch_lwip_begin ();
719
720
auto ret = !!(phyread (MACSTAT2) & 0x400 );
720
721
ethernet_arch_lwip_end ();
722
+ ethernet_arch_lwip_gpio_unmask ();
721
723
return ret;
722
724
}
Original file line number Diff line number Diff line change @@ -84,9 +84,11 @@ class Wiznet5500 {
84
84
@return true when physical link is up
85
85
*/
86
86
bool isLinked () {
87
+ ethernet_arch_lwip_gpio_mask ();
87
88
ethernet_arch_lwip_begin ();
88
89
auto ret = wizphy_getphylink () == PHY_LINK_ON;
89
90
ethernet_arch_lwip_end ();
91
+ ethernet_arch_lwip_gpio_unmask ();
90
92
return ret;
91
93
}
92
94
You can’t perform that action at this time.
0 commit comments