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) {
715715
716716bool ENC28J60::isLinked () {
717717 // ( https://github.com/JAndrassy/EthernetENC/tree/master/src/utility/enc28j60.h )
718+ ethernet_arch_lwip_gpio_mask ();
718719 ethernet_arch_lwip_begin ();
719720 auto ret = !!(phyread (MACSTAT2) & 0x400 );
720721 ethernet_arch_lwip_end ();
722+ ethernet_arch_lwip_gpio_unmask ();
721723 return ret;
722724}
Original file line number Diff line number Diff line change @@ -84,9 +84,11 @@ class Wiznet5500 {
8484 @return true when physical link is up
8585 */
8686 bool isLinked () {
87+ ethernet_arch_lwip_gpio_mask ();
8788 ethernet_arch_lwip_begin ();
8889 auto ret = wizphy_getphylink () == PHY_LINK_ON;
8990 ethernet_arch_lwip_end ();
91+ ethernet_arch_lwip_gpio_unmask ();
9092 return ret;
9193 }
9294
You can’t perform that action at this time.
0 commit comments