WIZNet W5500 with additional enhancements
Fork of WIZnetInterface by
Diff: EthernetInterface.cpp
- Revision:
- 38:67e763cdde02
- Parent:
- 36:0ba2e8d5274a
--- a/EthernetInterface.cpp Wed Oct 11 14:25:44 2017 +0200 +++ b/EthernetInterface.cpp Thu Oct 12 12:19:11 2017 +0200 @@ -56,11 +56,13 @@ int EthernetInterface::init(uint8_t *mac) { dhcp = true; - // - for (int i =0; i < 6; i++) this->mac[i] = mac[i]; - // + + for (int i =0; i < 6; i++) + this->mac[i] = mac[i]; + reset(); setmac(); + setSIMR(0xff); // enable interrupts for all sockets return 0; } @@ -82,7 +84,7 @@ // @Jul. 8. 2014 add code. should be called to write chip. setmac(); setip(); - + setSIMR(0xff); // enable interrupts for all sockets return 0; }