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:
- 8:4c02de1dbf3a
- Parent:
- 3:f8c6efc8bf83
- Child:
- 14:2101ab5ee40f
--- a/arch/int/W7500x_toe.cpp Mon Jun 15 23:43:56 2015 +0000 +++ b/arch/int/W7500x_toe.cpp Tue Jun 16 11:11:11 2015 +0900 @@ -15,7 +15,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "eth_arch.h" -#ifdef USE_W7500 +#if defined(TARGET_WIZwiki_W7500) #include "mbed.h" #include "mbed_debug.h" @@ -53,6 +53,14 @@ mdio_init(GPIO_MDC, MDC, MDIO); } +bool WIZnet_Chip::setmac() +{ + + for (int i =0; i < 6; i++) reg_wr<uint8_t>(SHAR+i, mac[i]); + + return true; +} + // Set the IP bool WIZnet_Chip::setip() { @@ -488,4 +496,3 @@ } #endif -