Modified for W5500 Ethernet initialize

Fork of GMMP_mbed by SKTelecom_ThingPlug

Committer:
hkjung
Date:
Wed Aug 12 02:13:34 2015 +0000
Revision:
3:6b4536e1962f
Parent:
0:7e575e5f88ec
Modified for W5500 Ethernet initialize

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 }