mbed library sources
Fork of mbed-src by
targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/startup_LPC13xx.s@308:59cc78a25982, 2014-09-05 (annotated)
- Committer:
- todotani
- Date:
- Fri Sep 05 14:20:33 2014 +0000
- Revision:
- 308:59cc78a25982
- Parent:
- 13:0645d8841f51
BLE_Health_Thermometer for mbed HRM1017 with BLE library 0.1.0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 13:0645d8841f51 | 1 | ;/***************************************************************************** |
bogdanm | 13:0645d8841f51 | 2 | ; * @file: startup_LPC13xx.s |
bogdanm | 13:0645d8841f51 | 3 | ; * @purpose: CMSIS Cortex-M3 Core Device Startup File |
bogdanm | 13:0645d8841f51 | 4 | ; * for the NXP LPC13xx Device Series |
bogdanm | 13:0645d8841f51 | 5 | ; * @version: V1.02, modified for mbed |
bogdanm | 13:0645d8841f51 | 6 | ; * @date: 27. July 2009, modified 3rd Aug 2009 |
bogdanm | 13:0645d8841f51 | 7 | ; *------- <<< Use Configuration Wizard in Context Menu >>> ------------------ |
bogdanm | 13:0645d8841f51 | 8 | ; * |
bogdanm | 13:0645d8841f51 | 9 | ; * Copyright (C) 2009 ARM Limited. All rights reserved. |
bogdanm | 13:0645d8841f51 | 10 | ; * ARM Limited (ARM) is supplying this software for use with Cortex-M3 |
bogdanm | 13:0645d8841f51 | 11 | ; * processor based microcontrollers. This file can be freely distributed |
bogdanm | 13:0645d8841f51 | 12 | ; * within development tools that are supporting such ARM based processors. |
bogdanm | 13:0645d8841f51 | 13 | ; * |
bogdanm | 13:0645d8841f51 | 14 | ; * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
bogdanm | 13:0645d8841f51 | 15 | ; * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
bogdanm | 13:0645d8841f51 | 16 | ; * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
bogdanm | 13:0645d8841f51 | 17 | ; * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR |
bogdanm | 13:0645d8841f51 | 18 | ; * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
bogdanm | 13:0645d8841f51 | 19 | ; * |
bogdanm | 13:0645d8841f51 | 20 | ; *****************************************************************************/ |
bogdanm | 13:0645d8841f51 | 21 | Stack_Size EQU 0x00000400 |
bogdanm | 13:0645d8841f51 | 22 | |
bogdanm | 13:0645d8841f51 | 23 | AREA STACK, NOINIT, READWRITE, ALIGN=3 |
bogdanm | 13:0645d8841f51 | 24 | EXPORT __initial_sp |
bogdanm | 13:0645d8841f51 | 25 | |
bogdanm | 13:0645d8841f51 | 26 | Stack_Mem SPACE Stack_Size |
bogdanm | 13:0645d8841f51 | 27 | __initial_sp EQU 0x10002000 ; Top of RAM from LPC1347 |
bogdanm | 13:0645d8841f51 | 28 | |
bogdanm | 13:0645d8841f51 | 29 | |
bogdanm | 13:0645d8841f51 | 30 | Heap_Size EQU 0x00000000 |
bogdanm | 13:0645d8841f51 | 31 | |
bogdanm | 13:0645d8841f51 | 32 | AREA HEAP, NOINIT, READWRITE, ALIGN=3 |
bogdanm | 13:0645d8841f51 | 33 | EXPORT __heap_base |
bogdanm | 13:0645d8841f51 | 34 | EXPORT __heap_limit |
bogdanm | 13:0645d8841f51 | 35 | |
bogdanm | 13:0645d8841f51 | 36 | __heap_base |
bogdanm | 13:0645d8841f51 | 37 | Heap_Mem SPACE Heap_Size |
bogdanm | 13:0645d8841f51 | 38 | __heap_limit |
bogdanm | 13:0645d8841f51 | 39 | |
bogdanm | 13:0645d8841f51 | 40 | PRESERVE8 |
bogdanm | 13:0645d8841f51 | 41 | THUMB |
bogdanm | 13:0645d8841f51 | 42 | |
bogdanm | 13:0645d8841f51 | 43 | ; Vector Table Mapped to Address 0 at Reset |
bogdanm | 13:0645d8841f51 | 44 | |
bogdanm | 13:0645d8841f51 | 45 | AREA RESET, DATA, READONLY |
bogdanm | 13:0645d8841f51 | 46 | EXPORT __Vectors |
bogdanm | 13:0645d8841f51 | 47 | |
bogdanm | 13:0645d8841f51 | 48 | __Vectors DCD __initial_sp ; Top of Stack |
bogdanm | 13:0645d8841f51 | 49 | DCD Reset_Handler ; Reset Handler |
bogdanm | 13:0645d8841f51 | 50 | DCD NMI_Handler ; NMI Handler |
bogdanm | 13:0645d8841f51 | 51 | DCD HardFault_Handler ; Hard Fault Handler |
bogdanm | 13:0645d8841f51 | 52 | DCD MemManage_Handler ; MPU Fault Handler |
bogdanm | 13:0645d8841f51 | 53 | DCD BusFault_Handler ; Bus Fault Handler |
bogdanm | 13:0645d8841f51 | 54 | DCD UsageFault_Handler ; Usage Fault Handler |
bogdanm | 13:0645d8841f51 | 55 | DCD 0 ; Reserved |
bogdanm | 13:0645d8841f51 | 56 | DCD 0 ; Reserved |
bogdanm | 13:0645d8841f51 | 57 | DCD 0 ; Reserved |
bogdanm | 13:0645d8841f51 | 58 | DCD 0 ; Reserved |
bogdanm | 13:0645d8841f51 | 59 | DCD SVC_Handler ; SVCall Handler |
bogdanm | 13:0645d8841f51 | 60 | DCD DebugMon_Handler ; Debug Monitor Handler |
bogdanm | 13:0645d8841f51 | 61 | DCD 0 ; Reserved |
bogdanm | 13:0645d8841f51 | 62 | DCD PendSV_Handler ; PendSV Handler |
bogdanm | 13:0645d8841f51 | 63 | DCD SysTick_Handler ; SysTick Handler |
bogdanm | 13:0645d8841f51 | 64 | |
bogdanm | 13:0645d8841f51 | 65 | ; External Interrupts |
bogdanm | 13:0645d8841f51 | 66 | |
bogdanm | 13:0645d8841f51 | 67 | DCD PIN_INT0_Handler ; All GPIO pin can be routed to PIN_INTx |
bogdanm | 13:0645d8841f51 | 68 | DCD PIN_INT1_Handler |
bogdanm | 13:0645d8841f51 | 69 | DCD PIN_INT2_Handler |
bogdanm | 13:0645d8841f51 | 70 | DCD PIN_INT3_Handler |
bogdanm | 13:0645d8841f51 | 71 | DCD PIN_INT4_Handler |
bogdanm | 13:0645d8841f51 | 72 | DCD PIN_INT5_Handler |
bogdanm | 13:0645d8841f51 | 73 | DCD PIN_INT6_Handler |
bogdanm | 13:0645d8841f51 | 74 | DCD PIN_INT7_Handler |
bogdanm | 13:0645d8841f51 | 75 | DCD GINT0_Handler |
bogdanm | 13:0645d8841f51 | 76 | DCD GINT1_Handler ; PIO0 (0:7) |
bogdanm | 13:0645d8841f51 | 77 | DCD 0 |
bogdanm | 13:0645d8841f51 | 78 | DCD 0 |
bogdanm | 13:0645d8841f51 | 79 | DCD OSTIMER_Handler |
bogdanm | 13:0645d8841f51 | 80 | DCD 0 |
bogdanm | 13:0645d8841f51 | 81 | DCD SSP1_Handler ; SSP1 |
bogdanm | 13:0645d8841f51 | 82 | DCD I2C_Handler ; I2C |
bogdanm | 13:0645d8841f51 | 83 | DCD CT16B0_Handler ; 16-bit Timer0 |
bogdanm | 13:0645d8841f51 | 84 | DCD CT16B1_Handler ; 16-bit Timer1 |
bogdanm | 13:0645d8841f51 | 85 | DCD CT32B0_Handler ; 32-bit Timer0 |
bogdanm | 13:0645d8841f51 | 86 | DCD CT32B1_Handler ; 32-bit Timer1 |
bogdanm | 13:0645d8841f51 | 87 | DCD SSP0_Handler ; SSP0 |
bogdanm | 13:0645d8841f51 | 88 | DCD USART_Handler ; USART |
bogdanm | 13:0645d8841f51 | 89 | DCD USB_Handler ; USB IRQ |
bogdanm | 13:0645d8841f51 | 90 | DCD USB_FIQHandler ; USB FIQ |
bogdanm | 13:0645d8841f51 | 91 | DCD ADC_Handler ; A/D Converter |
bogdanm | 13:0645d8841f51 | 92 | DCD WDT_Handler ; Watchdog timer |
bogdanm | 13:0645d8841f51 | 93 | DCD BOD_Handler ; Brown Out Detect |
bogdanm | 13:0645d8841f51 | 94 | DCD FMC_Handler ; IP2111 Flash Memory Controller |
bogdanm | 13:0645d8841f51 | 95 | DCD OSCFAIL_Handler ; OSC FAIL |
bogdanm | 13:0645d8841f51 | 96 | DCD PVTCIRCUIT_Handler ; PVT CIRCUIT |
bogdanm | 13:0645d8841f51 | 97 | DCD USBWakeup_Handler ; USB wake up |
bogdanm | 13:0645d8841f51 | 98 | DCD 0 |
bogdanm | 13:0645d8841f51 | 99 | |
bogdanm | 13:0645d8841f51 | 100 | IF :LNOT::DEF:NO_CRP |
bogdanm | 13:0645d8841f51 | 101 | AREA |.ARM.__at_0x02FC|, CODE, READONLY |
bogdanm | 13:0645d8841f51 | 102 | CRP_Key DCD 0xFFFFFFFF |
bogdanm | 13:0645d8841f51 | 103 | ENDIF |
bogdanm | 13:0645d8841f51 | 104 | |
bogdanm | 13:0645d8841f51 | 105 | |
bogdanm | 13:0645d8841f51 | 106 | AREA |.text|, CODE, READONLY |
bogdanm | 13:0645d8841f51 | 107 | |
bogdanm | 13:0645d8841f51 | 108 | |
bogdanm | 13:0645d8841f51 | 109 | ; Reset Handler |
bogdanm | 13:0645d8841f51 | 110 | |
bogdanm | 13:0645d8841f51 | 111 | Reset_Handler PROC |
bogdanm | 13:0645d8841f51 | 112 | EXPORT Reset_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 113 | IMPORT SystemInit |
bogdanm | 13:0645d8841f51 | 114 | IMPORT __main |
bogdanm | 13:0645d8841f51 | 115 | LDR R0, =SystemInit |
bogdanm | 13:0645d8841f51 | 116 | BLX R0 |
bogdanm | 13:0645d8841f51 | 117 | LDR R0, =__main |
bogdanm | 13:0645d8841f51 | 118 | BX R0 |
bogdanm | 13:0645d8841f51 | 119 | ENDP |
bogdanm | 13:0645d8841f51 | 120 | |
bogdanm | 13:0645d8841f51 | 121 | |
bogdanm | 13:0645d8841f51 | 122 | ; Dummy Exception Handlers (infinite loops which can be modified) |
bogdanm | 13:0645d8841f51 | 123 | |
bogdanm | 13:0645d8841f51 | 124 | NMI_Handler PROC |
bogdanm | 13:0645d8841f51 | 125 | EXPORT NMI_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 126 | B . |
bogdanm | 13:0645d8841f51 | 127 | ENDP |
bogdanm | 13:0645d8841f51 | 128 | HardFault_Handler\ |
bogdanm | 13:0645d8841f51 | 129 | PROC |
bogdanm | 13:0645d8841f51 | 130 | EXPORT HardFault_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 131 | B . |
bogdanm | 13:0645d8841f51 | 132 | ENDP |
bogdanm | 13:0645d8841f51 | 133 | MemManage_Handler\ |
bogdanm | 13:0645d8841f51 | 134 | PROC |
bogdanm | 13:0645d8841f51 | 135 | EXPORT MemManage_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 136 | B . |
bogdanm | 13:0645d8841f51 | 137 | ENDP |
bogdanm | 13:0645d8841f51 | 138 | BusFault_Handler\ |
bogdanm | 13:0645d8841f51 | 139 | PROC |
bogdanm | 13:0645d8841f51 | 140 | EXPORT BusFault_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 141 | B . |
bogdanm | 13:0645d8841f51 | 142 | ENDP |
bogdanm | 13:0645d8841f51 | 143 | UsageFault_Handler\ |
bogdanm | 13:0645d8841f51 | 144 | PROC |
bogdanm | 13:0645d8841f51 | 145 | EXPORT UsageFault_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 146 | B . |
bogdanm | 13:0645d8841f51 | 147 | ENDP |
bogdanm | 13:0645d8841f51 | 148 | SVC_Handler PROC |
bogdanm | 13:0645d8841f51 | 149 | EXPORT SVC_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 150 | B . |
bogdanm | 13:0645d8841f51 | 151 | ENDP |
bogdanm | 13:0645d8841f51 | 152 | DebugMon_Handler\ |
bogdanm | 13:0645d8841f51 | 153 | PROC |
bogdanm | 13:0645d8841f51 | 154 | EXPORT DebugMon_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 155 | B . |
bogdanm | 13:0645d8841f51 | 156 | ENDP |
bogdanm | 13:0645d8841f51 | 157 | PendSV_Handler PROC |
bogdanm | 13:0645d8841f51 | 158 | EXPORT PendSV_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 159 | B . |
bogdanm | 13:0645d8841f51 | 160 | ENDP |
bogdanm | 13:0645d8841f51 | 161 | SysTick_Handler PROC |
bogdanm | 13:0645d8841f51 | 162 | EXPORT SysTick_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 163 | B . |
bogdanm | 13:0645d8841f51 | 164 | ENDP |
bogdanm | 13:0645d8841f51 | 165 | |
bogdanm | 13:0645d8841f51 | 166 | Default_Handler PROC |
bogdanm | 13:0645d8841f51 | 167 | |
bogdanm | 13:0645d8841f51 | 168 | EXPORT PIN_INT0_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 169 | EXPORT PIN_INT1_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 170 | EXPORT PIN_INT2_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 171 | EXPORT PIN_INT3_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 172 | EXPORT PIN_INT4_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 173 | EXPORT PIN_INT5_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 174 | EXPORT PIN_INT6_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 175 | EXPORT PIN_INT7_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 176 | EXPORT GINT0_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 177 | EXPORT GINT1_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 178 | EXPORT OSTIMER_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 179 | EXPORT SSP1_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 180 | EXPORT I2C_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 181 | EXPORT CT16B0_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 182 | EXPORT CT16B1_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 183 | EXPORT CT32B0_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 184 | EXPORT CT32B1_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 185 | EXPORT SSP0_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 186 | EXPORT USART_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 187 | EXPORT USB_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 188 | EXPORT USB_FIQHandler [WEAK] |
bogdanm | 13:0645d8841f51 | 189 | EXPORT ADC_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 190 | EXPORT WDT_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 191 | EXPORT BOD_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 192 | EXPORT FMC_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 193 | EXPORT OSCFAIL_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 194 | EXPORT PVTCIRCUIT_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 195 | EXPORT USBWakeup_Handler [WEAK] |
bogdanm | 13:0645d8841f51 | 196 | |
bogdanm | 13:0645d8841f51 | 197 | PIN_INT0_Handler |
bogdanm | 13:0645d8841f51 | 198 | PIN_INT1_Handler |
bogdanm | 13:0645d8841f51 | 199 | PIN_INT2_Handler |
bogdanm | 13:0645d8841f51 | 200 | PIN_INT3_Handler |
bogdanm | 13:0645d8841f51 | 201 | PIN_INT4_Handler |
bogdanm | 13:0645d8841f51 | 202 | PIN_INT5_Handler |
bogdanm | 13:0645d8841f51 | 203 | PIN_INT6_Handler |
bogdanm | 13:0645d8841f51 | 204 | PIN_INT7_Handler |
bogdanm | 13:0645d8841f51 | 205 | GINT0_Handler |
bogdanm | 13:0645d8841f51 | 206 | GINT1_Handler |
bogdanm | 13:0645d8841f51 | 207 | OSTIMER_Handler |
bogdanm | 13:0645d8841f51 | 208 | SSP1_Handler |
bogdanm | 13:0645d8841f51 | 209 | I2C_Handler |
bogdanm | 13:0645d8841f51 | 210 | CT16B0_Handler |
bogdanm | 13:0645d8841f51 | 211 | CT16B1_Handler |
bogdanm | 13:0645d8841f51 | 212 | CT32B0_Handler |
bogdanm | 13:0645d8841f51 | 213 | CT32B1_Handler |
bogdanm | 13:0645d8841f51 | 214 | SSP0_Handler |
bogdanm | 13:0645d8841f51 | 215 | USART_Handler |
bogdanm | 13:0645d8841f51 | 216 | USB_Handler |
bogdanm | 13:0645d8841f51 | 217 | USB_FIQHandler |
bogdanm | 13:0645d8841f51 | 218 | ADC_Handler |
bogdanm | 13:0645d8841f51 | 219 | WDT_Handler |
bogdanm | 13:0645d8841f51 | 220 | BOD_Handler |
bogdanm | 13:0645d8841f51 | 221 | FMC_Handler |
bogdanm | 13:0645d8841f51 | 222 | OSCFAIL_Handler |
bogdanm | 13:0645d8841f51 | 223 | PVTCIRCUIT_Handler |
bogdanm | 13:0645d8841f51 | 224 | USBWakeup_Handler |
bogdanm | 13:0645d8841f51 | 225 | |
bogdanm | 13:0645d8841f51 | 226 | B . |
bogdanm | 13:0645d8841f51 | 227 | |
bogdanm | 13:0645d8841f51 | 228 | ENDP |
bogdanm | 13:0645d8841f51 | 229 | |
bogdanm | 13:0645d8841f51 | 230 | ALIGN |
bogdanm | 13:0645d8841f51 | 231 | END |