ads1115 only

Fork of mbed by mbed official

Committer:
kaoshen
Date:
Tue Jan 17 23:27:32 2017 +0000
Revision:
135:fce8a9387ed1
Parent:
129:0ab6a29f35bf
333 ADS1115 ADC1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
<> 129:0ab6a29f35bf 1 /* [ROM] */
<> 129:0ab6a29f35bf 2 define symbol __intvec_start__ = 0x00000000;
<> 129:0ab6a29f35bf 3 define symbol __region_ROM_start__ = 0x00000000;
<> 129:0ab6a29f35bf 4 define symbol __region_ROM_end__ = 0x0007FFFF;
<> 129:0ab6a29f35bf 5
<> 129:0ab6a29f35bf 6 /* [RAM] Vector table dynamic copy: 68 vectors * 4 bytes = 272 (0x110) bytes */
<> 129:0ab6a29f35bf 7 define symbol __NVIC_start__ = 0x00000000;
<> 129:0ab6a29f35bf 8 define symbol __NVIC_end__ = 0x00000110; /* to be aligned on 8 bytes */
<> 129:0ab6a29f35bf 9 define symbol __region_RAM_start__ = 0x20000000;
<> 129:0ab6a29f35bf 10 define symbol __region_RAM_end__ = 0x20027FFF;
<> 129:0ab6a29f35bf 11
<> 129:0ab6a29f35bf 12 /* Memory regions */
<> 129:0ab6a29f35bf 13 define memory mem with size = 4G;
<> 129:0ab6a29f35bf 14 define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__];
<> 129:0ab6a29f35bf 15 define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
<> 129:0ab6a29f35bf 16
<> 129:0ab6a29f35bf 17 /* Stack and Heap */
<> 129:0ab6a29f35bf 18 define symbol __size_cstack__ = 0x5000;
<> 129:0ab6a29f35bf 19 define symbol __size_heap__ = 0xA000;
<> 129:0ab6a29f35bf 20 define block CSTACK with alignment = 8, size = __size_cstack__ { };
<> 129:0ab6a29f35bf 21 define block HEAP with alignment = 8, size = __size_heap__ { };
<> 129:0ab6a29f35bf 22
<> 129:0ab6a29f35bf 23 initialize by copy { readwrite };
<> 129:0ab6a29f35bf 24 do not initialize { section .noinit };
<> 129:0ab6a29f35bf 25
<> 129:0ab6a29f35bf 26 place at address mem:__intvec_start__ { readonly section .intvec };
<> 129:0ab6a29f35bf 27 place in ROM_region { readonly };
<> 129:0ab6a29f35bf 28 place in RAM_region { readwrite,
<> 129:0ab6a29f35bf 29 block CSTACK, block HEAP };