modify for blynk
Fork of WIZnetInterface by
Diff: arch/int/W7500x_toe.cpp
- Revision:
- 8:4c02de1dbf3a
- Parent:
- 3:f8c6efc8bf83
- Child:
- 14:2101ab5ee40f
diff -r da6fcec0f3fe -r 4c02de1dbf3a arch/int/W7500x_toe.cpp --- 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 -