ads1115 only

Fork of mbed by mbed official

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

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Kojto 120:7c328cabac7e 1 #! armcc -E
Kojto 120:7c328cabac7e 2 /*
Kojto 120:7c328cabac7e 3 ** ###################################################################
Kojto 120:7c328cabac7e 4 ** Processors: MKL27Z64VDA4
Kojto 120:7c328cabac7e 5 ** MKL27Z64VFM4
Kojto 120:7c328cabac7e 6 ** MKL27Z64VFT4
Kojto 120:7c328cabac7e 7 ** MKL27Z64VLH4
Kojto 120:7c328cabac7e 8 ** MKL27Z64VMP4
Kojto 120:7c328cabac7e 9 **
Kojto 120:7c328cabac7e 10 ** Compiler: Keil ARM C/C++ Compiler
Kojto 120:7c328cabac7e 11 ** Reference manual: KL27P64M48SF2RM, Rev. 1, Sep 2014
Kojto 120:7c328cabac7e 12 ** Version: rev. 1.4, 2014-09-22
Kojto 120:7c328cabac7e 13 ** Build: b151009
Kojto 120:7c328cabac7e 14 **
Kojto 120:7c328cabac7e 15 ** Abstract:
Kojto 120:7c328cabac7e 16 ** Linker file for the Keil ARM C/C++ Compiler
Kojto 120:7c328cabac7e 17 **
AnnaBridge 125:2e9cc70d1897 18 ** Copyright (c) 2016 Freescale Semiconductor, Inc.
Kojto 120:7c328cabac7e 19 ** All rights reserved.
Kojto 120:7c328cabac7e 20 **
Kojto 120:7c328cabac7e 21 ** Redistribution and use in source and binary forms, with or without modification,
Kojto 120:7c328cabac7e 22 ** are permitted provided that the following conditions are met:
Kojto 120:7c328cabac7e 23 **
Kojto 120:7c328cabac7e 24 ** o Redistributions of source code must retain the above copyright notice, this list
Kojto 120:7c328cabac7e 25 ** of conditions and the following disclaimer.
Kojto 120:7c328cabac7e 26 **
Kojto 120:7c328cabac7e 27 ** o Redistributions in binary form must reproduce the above copyright notice, this
Kojto 120:7c328cabac7e 28 ** list of conditions and the following disclaimer in the documentation and/or
Kojto 120:7c328cabac7e 29 ** other materials provided with the distribution.
Kojto 120:7c328cabac7e 30 **
Kojto 120:7c328cabac7e 31 ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its
Kojto 120:7c328cabac7e 32 ** contributors may be used to endorse or promote products derived from this
Kojto 120:7c328cabac7e 33 ** software without specific prior written permission.
Kojto 120:7c328cabac7e 34 **
Kojto 120:7c328cabac7e 35 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
Kojto 120:7c328cabac7e 36 ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Kojto 120:7c328cabac7e 37 ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Kojto 120:7c328cabac7e 38 ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
Kojto 120:7c328cabac7e 39 ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
Kojto 120:7c328cabac7e 40 ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
Kojto 120:7c328cabac7e 41 ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
Kojto 120:7c328cabac7e 42 ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Kojto 120:7c328cabac7e 43 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
Kojto 120:7c328cabac7e 44 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Kojto 120:7c328cabac7e 45 **
Kojto 120:7c328cabac7e 46 ** http: www.freescale.com
Kojto 120:7c328cabac7e 47 ** mail: support@freescale.com
Kojto 120:7c328cabac7e 48 **
Kojto 120:7c328cabac7e 49 ** ###################################################################
Kojto 120:7c328cabac7e 50 */
Kojto 120:7c328cabac7e 51 #define __ram_vector_table__ 1
Kojto 120:7c328cabac7e 52
AnnaBridge 125:2e9cc70d1897 53 /* Heap 1/4 of ram and stack 1/8 */
AnnaBridge 125:2e9cc70d1897 54 #define __stack_size__ 0x800
AnnaBridge 125:2e9cc70d1897 55 #define __heap_size__ 0x1000
AnnaBridge 125:2e9cc70d1897 56
Kojto 120:7c328cabac7e 57 #if (defined(__ram_vector_table__))
Kojto 120:7c328cabac7e 58 #define __ram_vector_table_size__ 0x00000200
Kojto 120:7c328cabac7e 59 #else
Kojto 120:7c328cabac7e 60 #define __ram_vector_table_size__ 0x00000000
Kojto 120:7c328cabac7e 61 #endif
Kojto 120:7c328cabac7e 62
Kojto 120:7c328cabac7e 63 #define m_interrupts_start 0x00000000
Kojto 120:7c328cabac7e 64 #define m_interrupts_size 0x00000200
Kojto 120:7c328cabac7e 65
Kojto 120:7c328cabac7e 66 #define m_flash_config_start 0x00000400
Kojto 120:7c328cabac7e 67 #define m_flash_config_size 0x00000010
Kojto 120:7c328cabac7e 68
Kojto 120:7c328cabac7e 69 #define m_text_start 0x00000410
Kojto 120:7c328cabac7e 70 #define m_text_size 0x0000FBF0
Kojto 120:7c328cabac7e 71
Kojto 120:7c328cabac7e 72 #define m_interrupts_ram_start 0x1FFFF000
Kojto 120:7c328cabac7e 73 #define m_interrupts_ram_size __ram_vector_table_size__
Kojto 120:7c328cabac7e 74
Kojto 120:7c328cabac7e 75 #define m_data_start (m_interrupts_ram_start + m_interrupts_ram_size)
Kojto 120:7c328cabac7e 76 #define m_data_size (0x00004000 - m_interrupts_ram_size)
Kojto 120:7c328cabac7e 77
AnnaBridge 125:2e9cc70d1897 78 /* Sizes */
AnnaBridge 125:2e9cc70d1897 79 #if (defined(__stack_size__))
AnnaBridge 125:2e9cc70d1897 80 #define Stack_Size __stack_size__
AnnaBridge 125:2e9cc70d1897 81 #else
AnnaBridge 125:2e9cc70d1897 82 #define Stack_Size 0x0400
AnnaBridge 125:2e9cc70d1897 83 #endif
Kojto 120:7c328cabac7e 84
AnnaBridge 125:2e9cc70d1897 85 #if (defined(__heap_size__))
AnnaBridge 125:2e9cc70d1897 86 #define Heap_Size __heap_size__
AnnaBridge 125:2e9cc70d1897 87 #else
AnnaBridge 125:2e9cc70d1897 88 #define Heap_Size 0x0400
AnnaBridge 125:2e9cc70d1897 89 #endif
AnnaBridge 125:2e9cc70d1897 90
AnnaBridge 125:2e9cc70d1897 91 LR_m_text m_interrupts_start m_text_start+m_text_size-m_interrupts_start { ; load region size_region
Kojto 120:7c328cabac7e 92 VECTOR_ROM m_interrupts_start m_interrupts_size { ; load address = execution address
Kojto 120:7c328cabac7e 93 * (RESET,+FIRST)
Kojto 120:7c328cabac7e 94 }
Kojto 120:7c328cabac7e 95 ER_m_flash_config m_flash_config_start FIXED m_flash_config_size { ; load address = execution address
Kojto 120:7c328cabac7e 96 * (FlashConfig)
Kojto 120:7c328cabac7e 97 }
AnnaBridge 125:2e9cc70d1897 98 ER_m_text m_text_start m_text_size { ; load address = execution address
Kojto 120:7c328cabac7e 99 * (InRoot$$Sections)
Kojto 120:7c328cabac7e 100 .ANY (+RO)
Kojto 120:7c328cabac7e 101 }
AnnaBridge 125:2e9cc70d1897 102
AnnaBridge 125:2e9cc70d1897 103 #if (defined(__ram_vector_table__))
Kojto 120:7c328cabac7e 104 VECTOR_RAM m_interrupts_ram_start EMPTY m_interrupts_ram_size {
Kojto 120:7c328cabac7e 105 }
AnnaBridge 125:2e9cc70d1897 106 #else
AnnaBridge 125:2e9cc70d1897 107 VECTOR_RAM m_interrupts_start EMPTY 0 {
AnnaBridge 125:2e9cc70d1897 108 }
AnnaBridge 125:2e9cc70d1897 109 #endif
AnnaBridge 125:2e9cc70d1897 110 RW_m_data m_data_start m_data_size-Stack_Size-Heap_Size { ; RW data
Kojto 120:7c328cabac7e 111 .ANY (+RW +ZI)
Kojto 120:7c328cabac7e 112 }
<> 127:25aea2a3f4e3 113 RW_IRAM1 +0 { ; Heap region growing up
AnnaBridge 125:2e9cc70d1897 114 }
Kojto 120:7c328cabac7e 115 }
Kojto 120:7c328cabac7e 116