ads1115 only

Fork of mbed by mbed official

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

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 126:abea610beb85 1 /* [ROM = 2048kb = 0x200000] */
AnnaBridge 126:abea610beb85 2 define symbol __intvec_start__ = 0x08000000;
AnnaBridge 126:abea610beb85 3 define symbol __region_ROM_start__ = 0x08000000;
AnnaBridge 126:abea610beb85 4 define symbol __region_ROM_end__ = 0x081FFFFF;
AnnaBridge 126:abea610beb85 5
AnnaBridge 126:abea610beb85 6 /* [RAM = 512kb = 0x80000] Vector table dynamic copy: 126 vectors = 504 bytes (0x1F8) to be reserved in RAM */
AnnaBridge 126:abea610beb85 7 define symbol __NVIC_start__ = 0x20000000;
AnnaBridge 126:abea610beb85 8 define symbol __NVIC_end__ = 0x200001F7; /* Aligned on 8 bytes */
AnnaBridge 126:abea610beb85 9 define symbol __region_RAM_start__ = 0x200001F8;
AnnaBridge 126:abea610beb85 10 define symbol __region_RAM_end__ = 0x2007FFFF;
AnnaBridge 126:abea610beb85 11
AnnaBridge 126:abea610beb85 12 define symbol __region_ITCMRAM_start__ = 0x00000000;
AnnaBridge 126:abea610beb85 13 define symbol __region_ITCMRAM_end__ = 0x00003FFF;
AnnaBridge 126:abea610beb85 14
AnnaBridge 126:abea610beb85 15 /* Memory regions */
AnnaBridge 126:abea610beb85 16 define memory mem with size = 4G;
AnnaBridge 126:abea610beb85 17 define region ROM_region = mem:[from __region_ROM_start__ to __region_ROM_end__];
AnnaBridge 126:abea610beb85 18 define region RAM_region = mem:[from __region_RAM_start__ to __region_RAM_end__];
AnnaBridge 126:abea610beb85 19 define region ITCMRAM_region = mem:[from __region_ITCMRAM_start__ to __region_ITCMRAM_end__];
AnnaBridge 126:abea610beb85 20
AnnaBridge 126:abea610beb85 21 /* Stack and Heap */
AnnaBridge 126:abea610beb85 22 /*Heap 1/4 of ram and stack 1/8*/
AnnaBridge 126:abea610beb85 23 define symbol __size_cstack__ = 0x8000;
AnnaBridge 126:abea610beb85 24 define symbol __size_heap__ = 0x8000;
AnnaBridge 126:abea610beb85 25 define block CSTACK with alignment = 8, size = __size_cstack__ { };
AnnaBridge 126:abea610beb85 26 define block HEAP with alignment = 8, size = __size_heap__ { };
AnnaBridge 126:abea610beb85 27 define block STACKHEAP with fixed order { block HEAP, block CSTACK };
AnnaBridge 126:abea610beb85 28
AnnaBridge 126:abea610beb85 29 initialize by copy with packing = zeros { readwrite };
AnnaBridge 126:abea610beb85 30 do not initialize { section .noinit };
AnnaBridge 126:abea610beb85 31
AnnaBridge 126:abea610beb85 32 place at address mem:__intvec_start__ { readonly section .intvec };
AnnaBridge 126:abea610beb85 33
AnnaBridge 126:abea610beb85 34 place in ROM_region { readonly };
AnnaBridge 126:abea610beb85 35 place in RAM_region { readwrite, block STACKHEAP };