mbed library sources modified for open wear

Dependents:   openwear-lifelogger-example

Fork of mbed-src by mbed official

Committer:
bogdanm
Date:
Tue Sep 10 15:14:19 2013 +0300
Revision:
20:4263a77256ae
Sync with git revision 171dda705c947bf910926a0b73d6a4797802554d

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 20:4263a77256ae 1 /* [ROM] */
bogdanm 20:4263a77256ae 2 define symbol __intvec_start__ = 0x14000000;
bogdanm 20:4263a77256ae 3 define symbol __region_ROM_start__ = 0x14000000;
bogdanm 20:4263a77256ae 4 define symbol __region_ROM_end__ = 0x143FFFFF;
bogdanm 20:4263a77256ae 5
bogdanm 20:4263a77256ae 6 /* [RAM] Vector table dynamic copy: 8_byte_aligned(69 vect * 4 bytes) = 8_byte_aligned(0x0114) = 0x0118*/
bogdanm 20:4263a77256ae 7 define symbol __NVIC_start__ = 0x10000000;
bogdanm 20:4263a77256ae 8 define symbol __NVIC_end__ = 0x10000117;
bogdanm 20:4263a77256ae 9 define symbol __region_RAM_start__ = 0x10000118;
bogdanm 20:4263a77256ae 10 define symbol __region_RAM_end__ = 0x1001FFDF;
bogdanm 20:4263a77256ae 11 define symbol _AHB_RAM_start__ = 0x20000000;
bogdanm 20:4263a77256ae 12 define symbol _AHB_RAM_end__ = 0x20007FFF;
bogdanm 20:4263a77256ae 13
bogdanm 20:4263a77256ae 14 /* Memory regions */
bogdanm 20:4263a77256ae 15 define memory mem with size = 4G;
bogdanm 20:4263a77256ae 16
bogdanm 20:4263a77256ae 17 define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__];
bogdanm 20:4263a77256ae 18
bogdanm 20:4263a77256ae 19 define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
bogdanm 20:4263a77256ae 20 define region AHB_RAM_region = mem:[from _AHB_RAM_start__ to _AHB_RAM_end__];
bogdanm 20:4263a77256ae 21
bogdanm 20:4263a77256ae 22 /* Stack and Heap */
bogdanm 20:4263a77256ae 23 define symbol __size_cstack__ = 0x800;
bogdanm 20:4263a77256ae 24 define symbol __size_heap__ = 0x800;
bogdanm 20:4263a77256ae 25 define block CSTACK with alignment = 8, size = __size_cstack__ { };
bogdanm 20:4263a77256ae 26 define block HEAP with alignment = 8, size = __size_heap__ { };
bogdanm 20:4263a77256ae 27 define block STACKHEAP with fixed order { block HEAP, block CSTACK };
bogdanm 20:4263a77256ae 28
bogdanm 20:4263a77256ae 29 initialize by copy with packing = zeros { readwrite };
bogdanm 20:4263a77256ae 30 do not initialize { section .noinit };
bogdanm 20:4263a77256ae 31
bogdanm 20:4263a77256ae 32 place at address mem:__intvec_start__ { section .intvec };
bogdanm 20:4263a77256ae 33 place in ROM_region { readonly };
bogdanm 20:4263a77256ae 34 place in RAM_region { readwrite, block STACKHEAP };
bogdanm 20:4263a77256ae 35 place in AHB_RAM_region { section USB_RAM };