added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_IAR/MK22F51212.icf@121:7f86b4238bec, 2016-05-03 (annotated)
- Committer:
- mbed_official
- Date:
- Tue May 03 00:15:16 2016 +0100
- Revision:
- 121:7f86b4238bec
- Parent:
- 0:9b334a45a8ff
- Child:
- 144:ef7eb2e8f9f7
Synchronized with git revision 9cef243de23875778f461bbe9a8c1bc47e65212b
Full URL: https://github.com/mbedmicro/mbed/commit/9cef243de23875778f461bbe9a8c1bc47e65212b/
Switch to KSDK 2.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 121:7f86b4238bec | 1 | /* |
mbed_official | 121:7f86b4238bec | 2 | ** ################################################################### |
mbed_official | 121:7f86b4238bec | 3 | ** Processors: MK22FN512CAP12 |
mbed_official | 121:7f86b4238bec | 4 | ** MK22FN512VDC12 |
mbed_official | 121:7f86b4238bec | 5 | ** MK22FN512VLH12 |
mbed_official | 121:7f86b4238bec | 6 | ** MK22FN512VLL12 |
mbed_official | 121:7f86b4238bec | 7 | ** MK22FN512VMP12 |
mbed_official | 121:7f86b4238bec | 8 | ** |
mbed_official | 121:7f86b4238bec | 9 | ** Compiler: IAR ANSI C/C++ Compiler for ARM |
mbed_official | 121:7f86b4238bec | 10 | ** Reference manual: K22P121M120SF7RM, Rev. 1, March 24, 2014 |
mbed_official | 121:7f86b4238bec | 11 | ** Version: rev. 2.8, 2015-02-19 |
mbed_official | 121:7f86b4238bec | 12 | ** Build: b151009 |
mbed_official | 121:7f86b4238bec | 13 | ** |
mbed_official | 121:7f86b4238bec | 14 | ** Abstract: |
mbed_official | 121:7f86b4238bec | 15 | ** Linker file for the IAR ANSI C/C++ Compiler for ARM |
mbed_official | 121:7f86b4238bec | 16 | ** |
mbed_official | 121:7f86b4238bec | 17 | ** Copyright (c) 2015 Freescale Semiconductor, Inc. |
mbed_official | 121:7f86b4238bec | 18 | ** All rights reserved. |
mbed_official | 121:7f86b4238bec | 19 | ** |
mbed_official | 121:7f86b4238bec | 20 | ** Redistribution and use in source and binary forms, with or without modification, |
mbed_official | 121:7f86b4238bec | 21 | ** are permitted provided that the following conditions are met: |
mbed_official | 121:7f86b4238bec | 22 | ** |
mbed_official | 121:7f86b4238bec | 23 | ** o Redistributions of source code must retain the above copyright notice, this list |
mbed_official | 121:7f86b4238bec | 24 | ** of conditions and the following disclaimer. |
mbed_official | 121:7f86b4238bec | 25 | ** |
mbed_official | 121:7f86b4238bec | 26 | ** o Redistributions in binary form must reproduce the above copyright notice, this |
mbed_official | 121:7f86b4238bec | 27 | ** list of conditions and the following disclaimer in the documentation and/or |
mbed_official | 121:7f86b4238bec | 28 | ** other materials provided with the distribution. |
mbed_official | 121:7f86b4238bec | 29 | ** |
mbed_official | 121:7f86b4238bec | 30 | ** o Neither the name of Freescale Semiconductor, Inc. nor the names of its |
mbed_official | 121:7f86b4238bec | 31 | ** contributors may be used to endorse or promote products derived from this |
mbed_official | 121:7f86b4238bec | 32 | ** software without specific prior written permission. |
mbed_official | 121:7f86b4238bec | 33 | ** |
mbed_official | 121:7f86b4238bec | 34 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
mbed_official | 121:7f86b4238bec | 35 | ** ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
mbed_official | 121:7f86b4238bec | 36 | ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
mbed_official | 121:7f86b4238bec | 37 | ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR |
mbed_official | 121:7f86b4238bec | 38 | ** ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
mbed_official | 121:7f86b4238bec | 39 | ** (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
mbed_official | 121:7f86b4238bec | 40 | ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
mbed_official | 121:7f86b4238bec | 41 | ** ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
mbed_official | 121:7f86b4238bec | 42 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
mbed_official | 121:7f86b4238bec | 43 | ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mbed_official | 121:7f86b4238bec | 44 | ** |
mbed_official | 121:7f86b4238bec | 45 | ** http: www.freescale.com |
mbed_official | 121:7f86b4238bec | 46 | ** mail: support@freescale.com |
mbed_official | 121:7f86b4238bec | 47 | ** |
mbed_official | 121:7f86b4238bec | 48 | ** ################################################################### |
mbed_official | 121:7f86b4238bec | 49 | */ |
mbed_official | 121:7f86b4238bec | 50 | define symbol __ram_vector_table__ = 1; |
bogdanm | 0:9b334a45a8ff | 51 | |
mbed_official | 121:7f86b4238bec | 52 | /* Heap 1/4 of ram and stack 1/8 */ |
mbed_official | 121:7f86b4238bec | 53 | define symbol __stack_size__=0x4000; |
mbed_official | 121:7f86b4238bec | 54 | define symbol __heap_size__=0x8000; |
mbed_official | 121:7f86b4238bec | 55 | |
mbed_official | 121:7f86b4238bec | 56 | define symbol __ram_vector_table_size__ = isdefinedsymbol(__ram_vector_table__) ? 0x00000400 : 0; |
mbed_official | 121:7f86b4238bec | 57 | define symbol __ram_vector_table_offset__ = isdefinedsymbol(__ram_vector_table__) ? 0x000003FF : 0; |
mbed_official | 121:7f86b4238bec | 58 | |
mbed_official | 121:7f86b4238bec | 59 | define symbol m_interrupts_start = 0x00000000; |
mbed_official | 121:7f86b4238bec | 60 | define symbol m_interrupts_end = 0x000003FF; |
mbed_official | 121:7f86b4238bec | 61 | |
mbed_official | 121:7f86b4238bec | 62 | define symbol m_flash_config_start = 0x00000400; |
mbed_official | 121:7f86b4238bec | 63 | define symbol m_flash_config_end = 0x0000040F; |
mbed_official | 121:7f86b4238bec | 64 | |
mbed_official | 121:7f86b4238bec | 65 | define symbol m_text_start = 0x00000410; |
mbed_official | 121:7f86b4238bec | 66 | define symbol m_text_end = 0x0007FFFF; |
mbed_official | 121:7f86b4238bec | 67 | |
mbed_official | 121:7f86b4238bec | 68 | define symbol m_interrupts_ram_start = 0x1FFF0000; |
mbed_official | 121:7f86b4238bec | 69 | define symbol m_interrupts_ram_end = 0x1FFF0000 + __ram_vector_table_offset__; |
bogdanm | 0:9b334a45a8ff | 70 | |
mbed_official | 121:7f86b4238bec | 71 | define symbol m_data_start = m_interrupts_ram_start + __ram_vector_table_size__; |
mbed_official | 121:7f86b4238bec | 72 | define symbol m_data_end = 0x1FFFFFFF; |
mbed_official | 121:7f86b4238bec | 73 | |
mbed_official | 121:7f86b4238bec | 74 | define symbol m_data_2_start = 0x20000000; |
mbed_official | 121:7f86b4238bec | 75 | define symbol m_data_2_end = 0x2000FFFF; |
mbed_official | 121:7f86b4238bec | 76 | |
mbed_official | 121:7f86b4238bec | 77 | /* Sizes */ |
mbed_official | 121:7f86b4238bec | 78 | if (isdefinedsymbol(__stack_size__)) { |
mbed_official | 121:7f86b4238bec | 79 | define symbol __size_cstack__ = __stack_size__; |
mbed_official | 121:7f86b4238bec | 80 | } else { |
mbed_official | 121:7f86b4238bec | 81 | define symbol __size_cstack__ = 0x0400; |
mbed_official | 121:7f86b4238bec | 82 | } |
mbed_official | 121:7f86b4238bec | 83 | |
mbed_official | 121:7f86b4238bec | 84 | if (isdefinedsymbol(__heap_size__)) { |
mbed_official | 121:7f86b4238bec | 85 | define symbol __size_heap__ = __heap_size__; |
mbed_official | 121:7f86b4238bec | 86 | } else { |
mbed_official | 121:7f86b4238bec | 87 | define symbol __size_heap__ = 0x0400; |
mbed_official | 121:7f86b4238bec | 88 | } |
mbed_official | 121:7f86b4238bec | 89 | |
mbed_official | 121:7f86b4238bec | 90 | define exported symbol __VECTOR_TABLE = m_interrupts_start; |
mbed_official | 121:7f86b4238bec | 91 | define exported symbol __VECTOR_RAM = isdefinedsymbol(__ram_vector_table__) ? m_interrupts_ram_start : m_interrupts_start; |
mbed_official | 121:7f86b4238bec | 92 | define exported symbol __RAM_VECTOR_TABLE_SIZE = __ram_vector_table_size__; |
bogdanm | 0:9b334a45a8ff | 93 | |
bogdanm | 0:9b334a45a8ff | 94 | define memory mem with size = 4G; |
mbed_official | 121:7f86b4238bec | 95 | define region m_flash_config_region = mem:[from m_flash_config_start to m_flash_config_end]; |
mbed_official | 121:7f86b4238bec | 96 | define region TEXT_region = mem:[from m_interrupts_start to m_interrupts_end] |
mbed_official | 121:7f86b4238bec | 97 | | mem:[from m_text_start to m_text_end]; |
mbed_official | 121:7f86b4238bec | 98 | define region DATA_region = mem:[from m_data_start to m_data_end] |
mbed_official | 121:7f86b4238bec | 99 | | mem:[from m_data_2_start to m_data_2_end-__size_cstack__]; |
mbed_official | 121:7f86b4238bec | 100 | define region CSTACK_region = mem:[from m_data_2_end-__size_cstack__+1 to m_data_2_end]; |
mbed_official | 121:7f86b4238bec | 101 | define region m_interrupts_ram_region = mem:[from m_interrupts_ram_start to m_interrupts_ram_end]; |
bogdanm | 0:9b334a45a8ff | 102 | |
mbed_official | 121:7f86b4238bec | 103 | define block CSTACK with alignment = 8, size = __size_cstack__ { }; |
mbed_official | 121:7f86b4238bec | 104 | define block HEAP with alignment = 8, size = __size_heap__ { }; |
mbed_official | 121:7f86b4238bec | 105 | define block RW { readwrite }; |
mbed_official | 121:7f86b4238bec | 106 | define block ZI { zi }; |
bogdanm | 0:9b334a45a8ff | 107 | |
mbed_official | 121:7f86b4238bec | 108 | initialize by copy { readwrite, section .textrw }; |
bogdanm | 0:9b334a45a8ff | 109 | do not initialize { section .noinit }; |
bogdanm | 0:9b334a45a8ff | 110 | |
mbed_official | 121:7f86b4238bec | 111 | place at address mem: m_interrupts_start { readonly section .intvec }; |
mbed_official | 121:7f86b4238bec | 112 | place in m_flash_config_region { section FlashConfig }; |
mbed_official | 121:7f86b4238bec | 113 | place in TEXT_region { readonly }; |
mbed_official | 121:7f86b4238bec | 114 | place in DATA_region { block RW }; |
mbed_official | 121:7f86b4238bec | 115 | place in DATA_region { block ZI }; |
mbed_official | 121:7f86b4238bec | 116 | place in DATA_region { last block HEAP }; |
mbed_official | 121:7f86b4238bec | 117 | place in CSTACK_region { block CSTACK }; |
mbed_official | 121:7f86b4238bec | 118 | place in m_interrupts_ram_region { section m_interrupts_ram }; |
bogdanm | 0:9b334a45a8ff | 119 |