mbed library sources(for async_print)

Dependents:   AsyncPrint

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Thu Jul 02 16:15:09 2015 +0100
Revision:
580:3c14cb9b87c5
Synchronized with git revision 213caf296f26963a7bea129b8ec4f33bbd1e6588

Full URL: https://github.com/mbedmicro/mbed/commit/213caf296f26963a7bea129b8ec4f33bbd1e6588/

commit of mps2

Who changed what in which revision?

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