Dependencies: mbed AvailableMemory
main.cpp@1:be64cf93dcba, 2011-06-11 (annotated)
- Committer:
- segundo
- Date:
- Sat Jun 11 16:53:13 2011 +0000
- Revision:
- 1:be64cf93dcba
- Parent:
- 0:804397913aa2
Updated mbed library to rev 28
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
segundo | 0:804397913aa2 | 1 | #include <stdio.h> |
segundo | 0:804397913aa2 | 2 | #include "AvailableMemory.h" |
segundo | 0:804397913aa2 | 3 | |
segundo | 0:804397913aa2 | 4 | int main() { |
segundo | 0:804397913aa2 | 5 | |
segundo | 0:804397913aa2 | 6 | printf("Available memory (bytes to nearest 256) : %d\n", AvailableMemory()); |
segundo | 0:804397913aa2 | 7 | printf("Available memory (exact bytes) : %d\n", AvailableMemory(1)); |
segundo | 0:804397913aa2 | 8 | |
segundo | 0:804397913aa2 | 9 | } |