Heap test

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
cosminb
Date:
Tue Jul 03 06:05:54 2012 +0000
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
rtos.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Jul 03 06:05:54 2012 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+#include <rtos.h>
+Serial serial(USBTX,USBRX);
+
+int main() {
+
+
+    char* p=(char*)malloc(4000);
+    if (p) {
+        serial.printf("OK\r");
+    } else {
+        serial.printf("FAIL\r");
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Jul 03 06:05:54 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/737756e0b479
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rtos.lib	Tue Jul 03 06:05:54 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/emilmont/code/rtos/#247e37fb0524