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/int/W7500x_toe.cpp
- Revision:
- 15:24a9f2df2145
- Parent:
- 14:2101ab5ee40f
- Child:
- 19:d8773cd4edc5
- Child:
- 24:06e3836a627b
--- a/arch/int/W7500x_toe.cpp	Wed Jun 17 00:24:45 2015 +0000
+++ b/arch/int/W7500x_toe.cpp	Mon Jun 22 09:11:47 2015 +0000
@@ -50,7 +50,6 @@
 WIZnet_Chip::WIZnet_Chip()
 {
 	inst = this;
-	mdio_init(GPIO_MDC, MDC, MDIO);
 }
 
 bool WIZnet_Chip::setmac()
@@ -146,6 +145,8 @@
 	wait_ms(10);//for S/W reset
 	wait_ms(10);//for MDC I/F RDY
 
+	mdio_init(GPIO_MDC, MDC, MDIO);
+	
 	/* S/W Reset WZTOE */
 	reg_wr<uint8_t>(MR, MR_RST);
 	// set PAD strengh and pull-up for TXD[3:0] and TXE 
    