![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Heap test
Revision 0:598c0284f4df, committed 2012-07-03
- Comitter:
- cosminb
- Date:
- Tue Jul 03 06:05:54 2012 +0000
- Commit message:
Changed in this revision
--- /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