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.
Dependents: m2x-demo-all M2X_MTS_ACCEL_DEMO M2X_MTS_Accel M2X_K64F_ACCEL ... more
Diff: Utility.cpp
- Revision:
- 0:f479e4f4db0e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Utility.cpp Wed Feb 12 19:43:34 2014 +0000
@@ -0,0 +1,11 @@
+#include "Utility.h"
+
+void delay(int ms) {
+ wait_ms(ms);
+}
+
+char* strdup(const char* s) {
+ char* ret = (char*) malloc(strlen(s) + 1);
+ if (ret == NULL) { return ret;}
+ return strcpy(ret, s);
+}
AT&T M2X