public Test program for usbhostmsd looking at ridiculous resource usage
Dependencies: test_USBHost mbed
Fork of USBHostMSD_HelloWorld by
Diff: ramstats.h
- Revision:
- 9:d86a5e08abcd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ramstats.h Thu Mar 19 02:11:22 2015 +0000 @@ -0,0 +1,21 @@ +#ifndef RAMSTATS_H + #define RAMSTATS_H +//http://mbed.org/forum/bugs-suggestions/topic/2322/ + +// important info on reducing heap useage by converting to static and const where possible +// https://mbed.org/forum/mbed/topic/2698/ +// http://mbed.org/handbook/Memory-Model + +// These external symbols are maintained by the linker to indicate the +// location of various regions in the device's memory. They will be used by +// DisplayRAMBanks() to dump the size of each RAM bank to stdout. +extern unsigned int Image$$RW_IRAM1$$Base; +extern unsigned int Image$$RW_IRAM1$$ZI$$Limit; +extern unsigned int Image$$RW_IRAM2$$Base; +extern unsigned int Image$$RW_IRAM2$$ZI$$Limit; +extern unsigned int Image$$RW_IRAM3$$Base; +extern unsigned int Image$$RW_IRAM3$$ZI$$Limit; + +void DisplayRAMBanks(char * header); + +#endif //RAMSTATS_H \ No newline at end of file