ads1115 only

Fork of mbed by mbed official

Committer:
kaoshen
Date:
Tue Jan 17 23:27:32 2017 +0000
Revision:
135:fce8a9387ed1
Parent:
132:9baf128c2fab
333 ADS1115 ADC1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 132:9baf128c2fab 1 /* [ROM = 1024kb = 0x100000] */
<> 132:9baf128c2fab 2 define symbol __intvec_start__ = 0x08000000;
<> 132:9baf128c2fab 3 define symbol __region_ROM_start__ = 0x08000000;
<> 132:9baf128c2fab 4 define symbol __region_ROM_end__ = 0x080FFFFF;
<> 132:9baf128c2fab 5
<> 132:9baf128c2fab 6 /* [RAM = 256kb = 0x40000] Vector table dynamic copy: 113 vectors = 452 bytes (0x1C4) to be reserved in RAM */
<> 132:9baf128c2fab 7 define symbol __NVIC_start__ = 0x20000000;
<> 132:9baf128c2fab 8 define symbol __NVIC_end__ = 0x200001C7; /* Aligned on 8 bytes */
<> 132:9baf128c2fab 9 define symbol __region_RAM_start__ = 0x200001C8;
<> 132:9baf128c2fab 10 define symbol __region_RAM_end__ = 0x2001FFFF;
<> 132:9baf128c2fab 11
<> 132:9baf128c2fab 12 /* Memory regions */
<> 132:9baf128c2fab 13 define memory mem with size = 4G;
<> 132:9baf128c2fab 14 define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__];
<> 132:9baf128c2fab 15 define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
<> 132:9baf128c2fab 16
<> 132:9baf128c2fab 17 /* Stack and Heap */
<> 132:9baf128c2fab 18 /*Heap 1/4 of ram and stack 1/8*/
<> 132:9baf128c2fab 19 define symbol __size_cstack__ = 0x8000;
<> 132:9baf128c2fab 20 define symbol __size_heap__ = 0x10000;
<> 132:9baf128c2fab 21 define block CSTACK with alignment = 8, size = __size_cstack__ { };
<> 132:9baf128c2fab 22 define block HEAP with alignment = 8, size = __size_heap__ { };
<> 132:9baf128c2fab 23 define block STACKHEAP with fixed order { block HEAP, block CSTACK };
<> 132:9baf128c2fab 24
<> 132:9baf128c2fab 25 initialize by copy with packing = zeros { readwrite };
<> 132:9baf128c2fab 26 do not initialize { section .noinit };
<> 132:9baf128c2fab 27
<> 132:9baf128c2fab 28 place at address mem:__intvec_start__ { readonly section .intvec };
<> 132:9baf128c2fab 29
<> 132:9baf128c2fab 30 place in ROM_region { readonly };
<> 132:9baf128c2fab 31 place in RAM_region { readwrite, block STACKHEAP };