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 WIZnetInterface by
Diff: arch/ext/W5500.cpp
- Revision:
- 30:b67bcc6ee0bb
- Parent:
- 28:200e63e513a8
diff -r c91884bd2713 -r b67bcc6ee0bb arch/ext/W5500.cpp
--- a/arch/ext/W5500.cpp Tue Nov 17 06:35:55 2015 +0000
+++ b/arch/ext/W5500.cpp Thu Jun 29 18:58:37 2017 +0000
@@ -167,9 +167,8 @@
reset_pin = 1;
wait_ms(400); // 400ms (w5500)
#if defined(USE_WIZ550IO_MAC)
- // write MAC address inside the WZTOE MAC address register
- reg_wr_mac(SHAR, mac);
#endif
+
// set RX and TX buffer size
#if 0
for (int socket = 0; socket < MAX_SOCK_NUM; socket++) {
@@ -177,6 +176,10 @@
sreg<uint8_t>(socket, Sn_TXBUF_SIZE, 2);
}
#endif
+
+ // write MAC address inside the WZTOE MAC address register
+ reg_wr_mac(SHAR, mac);
+
}
