Modified for W5500 Ethernet initialize

Fork of GMMP_mbed by SKTelecom_ThingPlug

Committer:
lesmin
Date:
Sun Aug 09 14:11:35 2015 +0000
Revision:
0:7e575e5f88ec
forked from GMMP

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lesmin 0:7e575e5f88ec 1 #include "Utility.h"
lesmin 0:7e575e5f88ec 2
lesmin 0:7e575e5f88ec 3 void delay(int ms) {
lesmin 0:7e575e5f88ec 4 wait_ms(ms);
lesmin 0:7e575e5f88ec 5 }
lesmin 0:7e575e5f88ec 6
lesmin 0:7e575e5f88ec 7 char* strdup(const char* s) {
lesmin 0:7e575e5f88ec 8 char* ret = (char*) malloc(strlen(s) + 1);
lesmin 0:7e575e5f88ec 9 if (ret == NULL) { return ret;}
lesmin 0:7e575e5f88ec 10 return strcpy(ret, s);
lesmin 0:7e575e5f88ec 11 }