Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MX12 ServoRingBuffer mbed-src
Fork of SpindleBot by
ram_test.h
00001 // These external symbols are maintained by the linker to indicate the 00002 // location of various regions in the device's memory. They will be used by 00003 // DisplayRAMBanks() to dump the size of each RAM bank to stdout. 00004 extern unsigned int Image$$RW_IRAM1$$Base; 00005 extern unsigned int Image$$RW_IRAM1$$ZI$$Limit; 00006 extern unsigned int Image$$RW_IRAM2$$Base; 00007 extern unsigned int Image$$RW_IRAM2$$ZI$$Limit; 00008 extern unsigned int Image$$RW_IRAM3$$Base; 00009 extern unsigned int Image$$RW_IRAM3$$ZI$$Limit; 00010 00011 00012 // Displays the size of static allocations for each RAM bank as indicated by 00013 // ARM linker to stdout. 00014 static void DisplayRAMBanks(void) 00015 { 00016 printf("Static RAM bank allocations\r\n"); 00017 printf(" Main RAM = %u\r\n", (unsigned int)&Image$$RW_IRAM1$$ZI$$Limit - 00018 (unsigned int)&Image$$RW_IRAM1$$Base); 00019 printf(" RAM0 = %u\r\n", (unsigned int)&Image$$RW_IRAM2$$ZI$$Limit - 00020 (unsigned int)&Image$$RW_IRAM2$$Base); 00021 printf(" RAM1 = %u\r\n", (unsigned int)&Image$$RW_IRAM3$$ZI$$Limit - 00022 (unsigned int)&Image$$RW_IRAM3$$Base); 00023 }
Generated on Thu Jul 14 2022 07:15:41 by
1.7.2
