Dependencies:   mbed AvailableMemory

Files at this revision

API Documentation at this revision

Comitter:
segundo
Date:
Tue Dec 21 22:11:25 2010 +0000
Child:
1:be64cf93dcba
Commit message:

Changed in this revision

AvailableMemory.lib Show annotated file Show diff for this revision Revisions of this file
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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/AvailableMemory.lib	Tue Dec 21 22:11:25 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/segundo/code/AvailableMemory/#d00289c15c89
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Dec 21 22:11:25 2010 +0000
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include "AvailableMemory.h"
+
+int main() {
+
+    printf("Available memory (bytes to nearest 256) : %d\n", AvailableMemory());
+    printf("Available memory (exact bytes) : %d\n", AvailableMemory(1));
+
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Dec 21 22:11:25 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e