Sergei G / WIZnetInterface

Fork of WIZnetInterface by WIZnet

Files at this revision

API Documentation at this revision

Comitter:
embeddist
Date:
Tue Nov 17 06:35:55 2015 +0000
Parent:
28:200e63e513a8
Child:
30:b67bcc6ee0bb
Commit message:
Fixed setMAC() functions

Changed in this revision

arch/int/W7500x_toe.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/arch/int/W7500x_toe.cpp	Thu Oct 29 13:29:46 2015 +0000
+++ b/arch/int/W7500x_toe.cpp	Tue Nov 17 06:35:55 2015 +0000
@@ -76,9 +76,7 @@
 
 bool WIZnet_Chip::setmac()
 {
-
-    for (int i =0; i < 6; i++) reg_wr<uint8_t>(SHAR+i, mac[i]);
-
+	reg_wr_mac(SHAR, mac);
     return true;
 }