added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/TOOLCHAIN_ARM_STD/startup_MPS2.s@0:9b334a45a8ff, 2015-10-01 (annotated)
- Committer:
- bogdanm
- Date:
- Thu Oct 01 15:25:22 2015 +0300
- Revision:
- 0:9b334a45a8ff
- Child:
- 80:bdf1132a57cf
Initial commit on mbed-dev
Replaces mbed-src (now inactive)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 0:9b334a45a8ff | 1 | ;/**************************************************************************//** |
bogdanm | 0:9b334a45a8ff | 2 | ; * @file startup_CMSDK_CM0.s |
bogdanm | 0:9b334a45a8ff | 3 | ; * @brief CMSIS Core Device Startup File for |
bogdanm | 0:9b334a45a8ff | 4 | ; * CMSDK_CM0 Device |
bogdanm | 0:9b334a45a8ff | 5 | ; * @version V3.02 |
bogdanm | 0:9b334a45a8ff | 6 | ; * @date 15. November 2013 |
bogdanm | 0:9b334a45a8ff | 7 | ; * |
bogdanm | 0:9b334a45a8ff | 8 | ; * @note |
bogdanm | 0:9b334a45a8ff | 9 | ; * Copyright (C) 2014 ARM Limited. All rights reserved. |
bogdanm | 0:9b334a45a8ff | 10 | ; * |
bogdanm | 0:9b334a45a8ff | 11 | ; ******************************************************************************/ |
bogdanm | 0:9b334a45a8ff | 12 | ;/* Copyright (c) 2011 - 2013 ARM LIMITED |
bogdanm | 0:9b334a45a8ff | 13 | ; |
bogdanm | 0:9b334a45a8ff | 14 | ; All rights reserved. |
bogdanm | 0:9b334a45a8ff | 15 | ; Redistribution and use in source and binary forms, with or without |
bogdanm | 0:9b334a45a8ff | 16 | ; modification, are permitted provided that the following conditions are met: |
bogdanm | 0:9b334a45a8ff | 17 | ; - Redistributions of source code must retain the above copyright |
bogdanm | 0:9b334a45a8ff | 18 | ; notice, this list of conditions and the following disclaimer. |
bogdanm | 0:9b334a45a8ff | 19 | ; - Redistributions in binary form must reproduce the above copyright |
bogdanm | 0:9b334a45a8ff | 20 | ; notice, this list of conditions and the following disclaimer in the |
bogdanm | 0:9b334a45a8ff | 21 | ; documentation and/or other materials provided with the distribution. |
bogdanm | 0:9b334a45a8ff | 22 | ; - Neither the name of ARM nor the names of its contributors may be used |
bogdanm | 0:9b334a45a8ff | 23 | ; to endorse or promote products derived from this software without |
bogdanm | 0:9b334a45a8ff | 24 | ; specific prior written permission. |
bogdanm | 0:9b334a45a8ff | 25 | ; * |
bogdanm | 0:9b334a45a8ff | 26 | ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
bogdanm | 0:9b334a45a8ff | 27 | ; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
bogdanm | 0:9b334a45a8ff | 28 | ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
bogdanm | 0:9b334a45a8ff | 29 | ; ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE |
bogdanm | 0:9b334a45a8ff | 30 | ; LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
bogdanm | 0:9b334a45a8ff | 31 | ; CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
bogdanm | 0:9b334a45a8ff | 32 | ; SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
bogdanm | 0:9b334a45a8ff | 33 | ; INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
bogdanm | 0:9b334a45a8ff | 34 | ; CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
bogdanm | 0:9b334a45a8ff | 35 | ; ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
bogdanm | 0:9b334a45a8ff | 36 | ; POSSIBILITY OF SUCH DAMAGE. |
bogdanm | 0:9b334a45a8ff | 37 | ; ---------------------------------------------------------------------------*/ |
bogdanm | 0:9b334a45a8ff | 38 | ;/* |
bogdanm | 0:9b334a45a8ff | 39 | ;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------ |
bogdanm | 0:9b334a45a8ff | 40 | ;*/ |
bogdanm | 0:9b334a45a8ff | 41 | |
bogdanm | 0:9b334a45a8ff | 42 | |
bogdanm | 0:9b334a45a8ff | 43 | ; <h> Stack Configuration |
bogdanm | 0:9b334a45a8ff | 44 | ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8> |
bogdanm | 0:9b334a45a8ff | 45 | ; </h> |
bogdanm | 0:9b334a45a8ff | 46 | |
bogdanm | 0:9b334a45a8ff | 47 | Stack_Size EQU 0x00004000 |
bogdanm | 0:9b334a45a8ff | 48 | |
bogdanm | 0:9b334a45a8ff | 49 | AREA STACK, NOINIT, READWRITE, ALIGN=3 |
bogdanm | 0:9b334a45a8ff | 50 | Stack_Mem SPACE Stack_Size |
bogdanm | 0:9b334a45a8ff | 51 | __initial_sp |
bogdanm | 0:9b334a45a8ff | 52 | |
bogdanm | 0:9b334a45a8ff | 53 | |
bogdanm | 0:9b334a45a8ff | 54 | ; <h> Heap Configuration |
bogdanm | 0:9b334a45a8ff | 55 | ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8> |
bogdanm | 0:9b334a45a8ff | 56 | ; </h> |
bogdanm | 0:9b334a45a8ff | 57 | |
bogdanm | 0:9b334a45a8ff | 58 | Heap_Size EQU 0x00001000 |
bogdanm | 0:9b334a45a8ff | 59 | |
bogdanm | 0:9b334a45a8ff | 60 | AREA HEAP, NOINIT, READWRITE, ALIGN=3 |
bogdanm | 0:9b334a45a8ff | 61 | __heap_base |
bogdanm | 0:9b334a45a8ff | 62 | Heap_Mem SPACE Heap_Size |
bogdanm | 0:9b334a45a8ff | 63 | __heap_limit |
bogdanm | 0:9b334a45a8ff | 64 | |
bogdanm | 0:9b334a45a8ff | 65 | |
bogdanm | 0:9b334a45a8ff | 66 | PRESERVE8 |
bogdanm | 0:9b334a45a8ff | 67 | THUMB |
bogdanm | 0:9b334a45a8ff | 68 | |
bogdanm | 0:9b334a45a8ff | 69 | |
bogdanm | 0:9b334a45a8ff | 70 | ; Vector Table Mapped to Address 0 at Reset |
bogdanm | 0:9b334a45a8ff | 71 | |
bogdanm | 0:9b334a45a8ff | 72 | AREA RESET, DATA, READONLY |
bogdanm | 0:9b334a45a8ff | 73 | EXPORT __Vectors |
bogdanm | 0:9b334a45a8ff | 74 | EXPORT __Vectors_End |
bogdanm | 0:9b334a45a8ff | 75 | EXPORT __Vectors_Size |
bogdanm | 0:9b334a45a8ff | 76 | |
bogdanm | 0:9b334a45a8ff | 77 | __Vectors DCD __initial_sp ; Top of Stack |
bogdanm | 0:9b334a45a8ff | 78 | DCD Reset_Handler ; Reset Handler |
bogdanm | 0:9b334a45a8ff | 79 | DCD NMI_Handler ; NMI Handler |
bogdanm | 0:9b334a45a8ff | 80 | DCD HardFault_Handler ; Hard Fault Handler |
bogdanm | 0:9b334a45a8ff | 81 | DCD 0 ; Reserved |
bogdanm | 0:9b334a45a8ff | 82 | DCD 0 ; Reserved |
bogdanm | 0:9b334a45a8ff | 83 | DCD 0 ; Reserved |
bogdanm | 0:9b334a45a8ff | 84 | DCD 0 ; Reserved |
bogdanm | 0:9b334a45a8ff | 85 | DCD 0 ; Reserved |
bogdanm | 0:9b334a45a8ff | 86 | DCD 0 ; Reserved |
bogdanm | 0:9b334a45a8ff | 87 | DCD 0 ; Reserved |
bogdanm | 0:9b334a45a8ff | 88 | DCD SVC_Handler ; SVCall Handler |
bogdanm | 0:9b334a45a8ff | 89 | DCD 0 ; Reserved |
bogdanm | 0:9b334a45a8ff | 90 | DCD 0 ; Reserved |
bogdanm | 0:9b334a45a8ff | 91 | DCD PendSV_Handler ; PendSV Handler |
bogdanm | 0:9b334a45a8ff | 92 | DCD SysTick_Handler ; SysTick Handler |
bogdanm | 0:9b334a45a8ff | 93 | |
bogdanm | 0:9b334a45a8ff | 94 | ; External Interrupts |
bogdanm | 0:9b334a45a8ff | 95 | DCD UARTRX0_Handler ; UART 0 RX Handler |
bogdanm | 0:9b334a45a8ff | 96 | DCD UARTTX0_Handler ; UART 0 TX Handler |
bogdanm | 0:9b334a45a8ff | 97 | DCD UARTRX1_Handler ; UART 1 RX Handler |
bogdanm | 0:9b334a45a8ff | 98 | DCD UARTTX1_Handler ; UART 1 TX Handler |
bogdanm | 0:9b334a45a8ff | 99 | DCD UARTRX2_Handler ; UART 2 RX Handler |
bogdanm | 0:9b334a45a8ff | 100 | DCD UARTTX2_Handler ; UART 2 TX Handler |
bogdanm | 0:9b334a45a8ff | 101 | DCD PORT0_COMB_Handler ; GPIO Port 0 Combined Handler |
bogdanm | 0:9b334a45a8ff | 102 | DCD PORT1_COMB_Handler ; GPIO Port 1 Combined Handler |
bogdanm | 0:9b334a45a8ff | 103 | DCD TIMER0_Handler ; TIMER 0 handler |
bogdanm | 0:9b334a45a8ff | 104 | DCD TIMER1_Handler ; TIMER 1 handler |
bogdanm | 0:9b334a45a8ff | 105 | DCD DUALTIMER_HANDLER ; Dual timer handler |
bogdanm | 0:9b334a45a8ff | 106 | DCD SPI_Handler ; SPI exceptions Handler |
bogdanm | 0:9b334a45a8ff | 107 | DCD UARTOVF_Handler ; UART 0,1,2 Overflow Handler |
bogdanm | 0:9b334a45a8ff | 108 | DCD ETHERNET_Handler ; Ethernet Overflow Handler |
bogdanm | 0:9b334a45a8ff | 109 | DCD I2S_Handler ; I2S Handler |
bogdanm | 0:9b334a45a8ff | 110 | DCD TSC_Handler ; Touch Screen handler |
bogdanm | 0:9b334a45a8ff | 111 | DCD PORT0_0_Handler ; GPIO Port 0 pin 0 Handler |
bogdanm | 0:9b334a45a8ff | 112 | DCD PORT0_1_Handler ; GPIO Port 0 pin 1 Handler |
bogdanm | 0:9b334a45a8ff | 113 | DCD PORT0_2_Handler ; GPIO Port 0 pin 2 Handler |
bogdanm | 0:9b334a45a8ff | 114 | DCD PORT0_3_Handler ; GPIO Port 0 pin 3 Handler |
bogdanm | 0:9b334a45a8ff | 115 | DCD PORT0_4_Handler ; GPIO Port 0 pin 4 Handler |
bogdanm | 0:9b334a45a8ff | 116 | DCD PORT0_5_Handler ; GPIO Port 0 pin 5 Handler |
bogdanm | 0:9b334a45a8ff | 117 | DCD PORT0_6_Handler ; GPIO Port 0 pin 6 Handler |
bogdanm | 0:9b334a45a8ff | 118 | DCD PORT0_7_Handler ; GPIO Port 0 pin 7 Handler |
bogdanm | 0:9b334a45a8ff | 119 | DCD PORT0_8_Handler ; GPIO Port 0 pin 8 Handler |
bogdanm | 0:9b334a45a8ff | 120 | DCD PORT0_9_Handler ; GPIO Port 0 pin 9 Handler |
bogdanm | 0:9b334a45a8ff | 121 | DCD PORT0_10_Handler ; GPIO Port 0 pin 10 Handler |
bogdanm | 0:9b334a45a8ff | 122 | DCD PORT0_11_Handler ; GPIO Port 0 pin 11 Handler |
bogdanm | 0:9b334a45a8ff | 123 | DCD PORT0_12_Handler ; GPIO Port 0 pin 12 Handler |
bogdanm | 0:9b334a45a8ff | 124 | DCD PORT0_13_Handler ; GPIO Port 0 pin 13 Handler |
bogdanm | 0:9b334a45a8ff | 125 | DCD PORT0_14_Handler ; GPIO Port 0 pin 14 Handler |
bogdanm | 0:9b334a45a8ff | 126 | DCD PORT0_15_Handler ; GPIO Port 0 pin 15 Handler |
bogdanm | 0:9b334a45a8ff | 127 | __Vectors_End |
bogdanm | 0:9b334a45a8ff | 128 | |
bogdanm | 0:9b334a45a8ff | 129 | __Vectors_Size EQU __Vectors_End - __Vectors |
bogdanm | 0:9b334a45a8ff | 130 | |
bogdanm | 0:9b334a45a8ff | 131 | AREA |.text|, CODE, READONLY |
bogdanm | 0:9b334a45a8ff | 132 | |
bogdanm | 0:9b334a45a8ff | 133 | |
bogdanm | 0:9b334a45a8ff | 134 | ; Reset Handler |
bogdanm | 0:9b334a45a8ff | 135 | |
bogdanm | 0:9b334a45a8ff | 136 | Reset_Handler PROC |
bogdanm | 0:9b334a45a8ff | 137 | EXPORT Reset_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 138 | IMPORT SystemInit |
bogdanm | 0:9b334a45a8ff | 139 | IMPORT __main |
bogdanm | 0:9b334a45a8ff | 140 | LDR R0, =SystemInit |
bogdanm | 0:9b334a45a8ff | 141 | BLX R0 |
bogdanm | 0:9b334a45a8ff | 142 | LDR R0, =__main |
bogdanm | 0:9b334a45a8ff | 143 | BX R0 |
bogdanm | 0:9b334a45a8ff | 144 | ENDP |
bogdanm | 0:9b334a45a8ff | 145 | |
bogdanm | 0:9b334a45a8ff | 146 | |
bogdanm | 0:9b334a45a8ff | 147 | ; Dummy Exception Handlers (infinite loops which can be modified) |
bogdanm | 0:9b334a45a8ff | 148 | |
bogdanm | 0:9b334a45a8ff | 149 | NMI_Handler PROC |
bogdanm | 0:9b334a45a8ff | 150 | EXPORT NMI_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 151 | B . |
bogdanm | 0:9b334a45a8ff | 152 | ENDP |
bogdanm | 0:9b334a45a8ff | 153 | HardFault_Handler\ |
bogdanm | 0:9b334a45a8ff | 154 | PROC |
bogdanm | 0:9b334a45a8ff | 155 | EXPORT HardFault_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 156 | B . |
bogdanm | 0:9b334a45a8ff | 157 | ENDP |
bogdanm | 0:9b334a45a8ff | 158 | SVC_Handler PROC |
bogdanm | 0:9b334a45a8ff | 159 | EXPORT SVC_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 160 | B . |
bogdanm | 0:9b334a45a8ff | 161 | ENDP |
bogdanm | 0:9b334a45a8ff | 162 | PendSV_Handler PROC |
bogdanm | 0:9b334a45a8ff | 163 | EXPORT PendSV_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 164 | B . |
bogdanm | 0:9b334a45a8ff | 165 | ENDP |
bogdanm | 0:9b334a45a8ff | 166 | SysTick_Handler PROC |
bogdanm | 0:9b334a45a8ff | 167 | EXPORT SysTick_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 168 | B . |
bogdanm | 0:9b334a45a8ff | 169 | ENDP |
bogdanm | 0:9b334a45a8ff | 170 | |
bogdanm | 0:9b334a45a8ff | 171 | Default_Handler PROC |
bogdanm | 0:9b334a45a8ff | 172 | EXPORT UARTRX0_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 173 | EXPORT UARTTX0_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 174 | EXPORT UARTRX1_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 175 | EXPORT UARTTX1_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 176 | EXPORT UARTRX2_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 177 | EXPORT UARTTX2_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 178 | EXPORT PORT0_COMB_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 179 | EXPORT PORT1_COMB_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 180 | EXPORT TIMER0_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 181 | EXPORT TIMER1_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 182 | EXPORT DUALTIMER_HANDLER [WEAK] |
bogdanm | 0:9b334a45a8ff | 183 | EXPORT SPI_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 184 | EXPORT UARTOVF_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 185 | EXPORT ETHERNET_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 186 | EXPORT I2S_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 187 | EXPORT TSC_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 188 | EXPORT PORT0_0_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 189 | EXPORT PORT0_1_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 190 | EXPORT PORT0_2_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 191 | EXPORT PORT0_3_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 192 | EXPORT PORT0_4_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 193 | EXPORT PORT0_5_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 194 | EXPORT PORT0_6_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 195 | EXPORT PORT0_7_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 196 | EXPORT PORT0_8_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 197 | EXPORT PORT0_9_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 198 | EXPORT PORT0_10_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 199 | EXPORT PORT0_11_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 200 | EXPORT PORT0_12_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 201 | EXPORT PORT0_13_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 202 | EXPORT PORT0_14_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 203 | EXPORT PORT0_15_Handler [WEAK] |
bogdanm | 0:9b334a45a8ff | 204 | |
bogdanm | 0:9b334a45a8ff | 205 | UARTRX0_Handler |
bogdanm | 0:9b334a45a8ff | 206 | UARTTX0_Handler |
bogdanm | 0:9b334a45a8ff | 207 | UARTRX1_Handler |
bogdanm | 0:9b334a45a8ff | 208 | UARTTX1_Handler |
bogdanm | 0:9b334a45a8ff | 209 | UARTRX2_Handler |
bogdanm | 0:9b334a45a8ff | 210 | UARTTX2_Handler |
bogdanm | 0:9b334a45a8ff | 211 | PORT0_COMB_Handler |
bogdanm | 0:9b334a45a8ff | 212 | PORT1_COMB_Handler |
bogdanm | 0:9b334a45a8ff | 213 | TIMER0_Handler |
bogdanm | 0:9b334a45a8ff | 214 | TIMER1_Handler |
bogdanm | 0:9b334a45a8ff | 215 | DUALTIMER_HANDLER |
bogdanm | 0:9b334a45a8ff | 216 | SPI_Handler |
bogdanm | 0:9b334a45a8ff | 217 | UARTOVF_Handler |
bogdanm | 0:9b334a45a8ff | 218 | ETHERNET_Handler |
bogdanm | 0:9b334a45a8ff | 219 | I2S_Handler |
bogdanm | 0:9b334a45a8ff | 220 | TSC_Handler |
bogdanm | 0:9b334a45a8ff | 221 | PORT0_0_Handler |
bogdanm | 0:9b334a45a8ff | 222 | PORT0_1_Handler |
bogdanm | 0:9b334a45a8ff | 223 | PORT0_2_Handler |
bogdanm | 0:9b334a45a8ff | 224 | PORT0_3_Handler |
bogdanm | 0:9b334a45a8ff | 225 | PORT0_4_Handler |
bogdanm | 0:9b334a45a8ff | 226 | PORT0_5_Handler |
bogdanm | 0:9b334a45a8ff | 227 | PORT0_6_Handler |
bogdanm | 0:9b334a45a8ff | 228 | PORT0_7_Handler |
bogdanm | 0:9b334a45a8ff | 229 | PORT0_8_Handler |
bogdanm | 0:9b334a45a8ff | 230 | PORT0_9_Handler |
bogdanm | 0:9b334a45a8ff | 231 | PORT0_10_Handler |
bogdanm | 0:9b334a45a8ff | 232 | PORT0_11_Handler |
bogdanm | 0:9b334a45a8ff | 233 | PORT0_12_Handler |
bogdanm | 0:9b334a45a8ff | 234 | PORT0_13_Handler |
bogdanm | 0:9b334a45a8ff | 235 | PORT0_14_Handler |
bogdanm | 0:9b334a45a8ff | 236 | PORT0_15_Handler |
bogdanm | 0:9b334a45a8ff | 237 | B . |
bogdanm | 0:9b334a45a8ff | 238 | |
bogdanm | 0:9b334a45a8ff | 239 | ENDP |
bogdanm | 0:9b334a45a8ff | 240 | |
bogdanm | 0:9b334a45a8ff | 241 | |
bogdanm | 0:9b334a45a8ff | 242 | ALIGN |
bogdanm | 0:9b334a45a8ff | 243 | |
bogdanm | 0:9b334a45a8ff | 244 | |
bogdanm | 0:9b334a45a8ff | 245 | ; User Initial Stack & Heap |
bogdanm | 0:9b334a45a8ff | 246 | |
bogdanm | 0:9b334a45a8ff | 247 | IF :DEF:__MICROLIB |
bogdanm | 0:9b334a45a8ff | 248 | |
bogdanm | 0:9b334a45a8ff | 249 | EXPORT __initial_sp |
bogdanm | 0:9b334a45a8ff | 250 | EXPORT __heap_base |
bogdanm | 0:9b334a45a8ff | 251 | EXPORT __heap_limit |
bogdanm | 0:9b334a45a8ff | 252 | |
bogdanm | 0:9b334a45a8ff | 253 | ELSE |
bogdanm | 0:9b334a45a8ff | 254 | |
bogdanm | 0:9b334a45a8ff | 255 | IMPORT __use_two_region_memory |
bogdanm | 0:9b334a45a8ff | 256 | EXPORT __user_initial_stackheap |
bogdanm | 0:9b334a45a8ff | 257 | |
bogdanm | 0:9b334a45a8ff | 258 | __user_initial_stackheap PROC |
bogdanm | 0:9b334a45a8ff | 259 | LDR R0, = Heap_Mem |
bogdanm | 0:9b334a45a8ff | 260 | LDR R1, =(Stack_Mem + Stack_Size) |
bogdanm | 0:9b334a45a8ff | 261 | LDR R2, = (Heap_Mem + Heap_Size) |
bogdanm | 0:9b334a45a8ff | 262 | LDR R3, = Stack_Mem |
bogdanm | 0:9b334a45a8ff | 263 | BX LR |
bogdanm | 0:9b334a45a8ff | 264 | ENDP |
bogdanm | 0:9b334a45a8ff | 265 | |
bogdanm | 0:9b334a45a8ff | 266 | ALIGN |
bogdanm | 0:9b334a45a8ff | 267 | |
bogdanm | 0:9b334a45a8ff | 268 | ENDIF |
bogdanm | 0:9b334a45a8ff | 269 | |
bogdanm | 0:9b334a45a8ff | 270 | |
bogdanm | 0:9b334a45a8ff | 271 | END |