mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_16K/startup_nRF51822.s@323:9e901b0a5aa1, 2014-09-13 (annotated)
- Committer:
- shaoziyang
- Date:
- Sat Sep 13 14:25:46 2014 +0000
- Revision:
- 323:9e901b0a5aa1
- Parent:
- 310:1c287fe42d43
test with CLOCK_SETUP = 0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 85:e1a8e879a6a9 | 1 | ; mbed Microcontroller Library |
mbed_official | 104:a6a92e2e5a92 | 2 | ; Copyright (c) 2013 Nordic Semiconductor. |
mbed_official | 85:e1a8e879a6a9 | 3 | ;Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 85:e1a8e879a6a9 | 4 | ;you may not use this file except in compliance with the License. |
mbed_official | 85:e1a8e879a6a9 | 5 | ;You may obtain a copy of the License at |
mbed_official | 85:e1a8e879a6a9 | 6 | ;http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 85:e1a8e879a6a9 | 7 | ;Unless required by applicable law or agreed to in writing, software |
mbed_official | 85:e1a8e879a6a9 | 8 | ;distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 85:e1a8e879a6a9 | 9 | ;WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 85:e1a8e879a6a9 | 10 | ;See the License for the specific language governing permissions and |
mbed_official | 85:e1a8e879a6a9 | 11 | ;limitations under the License. |
mbed_official | 85:e1a8e879a6a9 | 12 | |
mbed_official | 85:e1a8e879a6a9 | 13 | ; Description message |
mbed_official | 85:e1a8e879a6a9 | 14 | |
mbed_official | 85:e1a8e879a6a9 | 15 | __initial_sp EQU 0x20004000 |
mbed_official | 85:e1a8e879a6a9 | 16 | |
mbed_official | 85:e1a8e879a6a9 | 17 | |
mbed_official | 85:e1a8e879a6a9 | 18 | PRESERVE8 |
mbed_official | 85:e1a8e879a6a9 | 19 | THUMB |
mbed_official | 85:e1a8e879a6a9 | 20 | |
mbed_official | 85:e1a8e879a6a9 | 21 | ; Vector Table Mapped to Address 0 at Reset |
mbed_official | 85:e1a8e879a6a9 | 22 | |
mbed_official | 85:e1a8e879a6a9 | 23 | AREA RESET, DATA, READONLY |
mbed_official | 85:e1a8e879a6a9 | 24 | EXPORT __Vectors |
mbed_official | 85:e1a8e879a6a9 | 25 | EXPORT __Vectors_End |
mbed_official | 85:e1a8e879a6a9 | 26 | EXPORT __Vectors_Size |
mbed_official | 85:e1a8e879a6a9 | 27 | |
mbed_official | 85:e1a8e879a6a9 | 28 | __Vectors DCD __initial_sp ; Top of Stack |
mbed_official | 85:e1a8e879a6a9 | 29 | DCD Reset_Handler ; Reset Handler |
mbed_official | 85:e1a8e879a6a9 | 30 | DCD NMI_Handler ; NMI Handler |
mbed_official | 85:e1a8e879a6a9 | 31 | DCD HardFault_Handler ; Hard Fault Handler |
mbed_official | 85:e1a8e879a6a9 | 32 | DCD 0 ; Reserved |
mbed_official | 85:e1a8e879a6a9 | 33 | DCD 0 ; Reserved |
mbed_official | 85:e1a8e879a6a9 | 34 | DCD 0 ; Reserved |
mbed_official | 85:e1a8e879a6a9 | 35 | DCD 0 ; Reserved |
mbed_official | 85:e1a8e879a6a9 | 36 | DCD 0 ; Reserved |
mbed_official | 85:e1a8e879a6a9 | 37 | DCD 0 ; Reserved |
mbed_official | 85:e1a8e879a6a9 | 38 | DCD 0 ; Reserved |
mbed_official | 85:e1a8e879a6a9 | 39 | DCD SVC_Handler ; SVCall Handler |
mbed_official | 85:e1a8e879a6a9 | 40 | DCD 0 ; Reserved |
mbed_official | 85:e1a8e879a6a9 | 41 | DCD 0 ; Reserved |
mbed_official | 85:e1a8e879a6a9 | 42 | DCD PendSV_Handler ; PendSV Handler |
mbed_official | 85:e1a8e879a6a9 | 43 | DCD SysTick_Handler ; SysTick Handler |
mbed_official | 85:e1a8e879a6a9 | 44 | |
mbed_official | 85:e1a8e879a6a9 | 45 | ; External Interrupts |
mbed_official | 85:e1a8e879a6a9 | 46 | DCD POWER_CLOCK_IRQHandler ;POWER_CLOCK |
mbed_official | 85:e1a8e879a6a9 | 47 | DCD RADIO_IRQHandler ;RADIO |
mbed_official | 85:e1a8e879a6a9 | 48 | DCD UART0_IRQHandler ;UART0 |
mbed_official | 85:e1a8e879a6a9 | 49 | DCD SPI0_TWI0_IRQHandler ;SPI0_TWI0 |
mbed_official | 85:e1a8e879a6a9 | 50 | DCD SPI1_TWI1_IRQHandler ;SPI1_TWI1 |
mbed_official | 85:e1a8e879a6a9 | 51 | DCD 0 ;Reserved |
mbed_official | 85:e1a8e879a6a9 | 52 | DCD GPIOTE_IRQHandler ;GPIOTE |
mbed_official | 85:e1a8e879a6a9 | 53 | DCD ADC_IRQHandler ;ADC |
mbed_official | 85:e1a8e879a6a9 | 54 | DCD TIMER0_IRQHandler ;TIMER0 |
mbed_official | 85:e1a8e879a6a9 | 55 | DCD TIMER1_IRQHandler ;TIMER1 |
mbed_official | 85:e1a8e879a6a9 | 56 | DCD TIMER2_IRQHandler ;TIMER2 |
mbed_official | 85:e1a8e879a6a9 | 57 | DCD RTC0_IRQHandler ;RTC0 |
mbed_official | 85:e1a8e879a6a9 | 58 | DCD TEMP_IRQHandler ;TEMP |
mbed_official | 85:e1a8e879a6a9 | 59 | DCD RNG_IRQHandler ;RNG |
mbed_official | 85:e1a8e879a6a9 | 60 | DCD ECB_IRQHandler ;ECB |
mbed_official | 85:e1a8e879a6a9 | 61 | DCD CCM_AAR_IRQHandler ;CCM_AAR |
mbed_official | 85:e1a8e879a6a9 | 62 | DCD WDT_IRQHandler ;WDT |
mbed_official | 85:e1a8e879a6a9 | 63 | DCD RTC1_IRQHandler ;RTC1 |
mbed_official | 85:e1a8e879a6a9 | 64 | DCD QDEC_IRQHandler ;QDEC |
mbed_official | 85:e1a8e879a6a9 | 65 | DCD LPCOMP_COMP_IRQHandler ;LPCOMP_COMP |
mbed_official | 85:e1a8e879a6a9 | 66 | DCD SWI0_IRQHandler ;SWI0 |
mbed_official | 85:e1a8e879a6a9 | 67 | DCD SWI1_IRQHandler ;SWI1 |
mbed_official | 85:e1a8e879a6a9 | 68 | DCD SWI2_IRQHandler ;SWI2 |
mbed_official | 85:e1a8e879a6a9 | 69 | DCD SWI3_IRQHandler ;SWI3 |
mbed_official | 85:e1a8e879a6a9 | 70 | DCD SWI4_IRQHandler ;SWI4 |
mbed_official | 85:e1a8e879a6a9 | 71 | DCD SWI5_IRQHandler ;SWI5 |
mbed_official | 85:e1a8e879a6a9 | 72 | DCD 0 ;Reserved |
mbed_official | 85:e1a8e879a6a9 | 73 | DCD 0 ;Reserved |
mbed_official | 85:e1a8e879a6a9 | 74 | DCD 0 ;Reserved |
mbed_official | 85:e1a8e879a6a9 | 75 | DCD 0 ;Reserved |
mbed_official | 85:e1a8e879a6a9 | 76 | DCD 0 ;Reserved |
mbed_official | 85:e1a8e879a6a9 | 77 | DCD 0 ;Reserved |
mbed_official | 85:e1a8e879a6a9 | 78 | |
mbed_official | 85:e1a8e879a6a9 | 79 | |
mbed_official | 85:e1a8e879a6a9 | 80 | __Vectors_End |
mbed_official | 85:e1a8e879a6a9 | 81 | |
mbed_official | 85:e1a8e879a6a9 | 82 | __Vectors_Size EQU __Vectors_End - __Vectors |
mbed_official | 85:e1a8e879a6a9 | 83 | |
mbed_official | 85:e1a8e879a6a9 | 84 | AREA |.text|, CODE, READONLY |
mbed_official | 85:e1a8e879a6a9 | 85 | |
mbed_official | 85:e1a8e879a6a9 | 86 | ; Reset Handler |
mbed_official | 85:e1a8e879a6a9 | 87 | |
mbed_official | 85:e1a8e879a6a9 | 88 | NRF_POWER_RAMON_ADDRESS EQU 0x40000524 ; NRF_POWER->RAMON address |
mbed_official | 85:e1a8e879a6a9 | 89 | NRF_POWER_RAMON_RAMxON_ONMODE_Msk EQU 0xF ; All RAM blocks on in onmode bit mask |
mbed_official | 85:e1a8e879a6a9 | 90 | |
mbed_official | 85:e1a8e879a6a9 | 91 | Reset_Handler PROC |
mbed_official | 85:e1a8e879a6a9 | 92 | EXPORT Reset_Handler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 93 | IMPORT SystemInit |
mbed_official | 85:e1a8e879a6a9 | 94 | IMPORT __main |
mbed_official | 85:e1a8e879a6a9 | 95 | LDR R0, =NRF_POWER_RAMON_ADDRESS |
mbed_official | 85:e1a8e879a6a9 | 96 | LDR R2, [R0] |
mbed_official | 85:e1a8e879a6a9 | 97 | MOVS R1, #NRF_POWER_RAMON_RAMxON_ONMODE_Msk |
mbed_official | 85:e1a8e879a6a9 | 98 | ORRS R2, R2, R1 |
mbed_official | 85:e1a8e879a6a9 | 99 | STR R2, [R0] |
mbed_official | 85:e1a8e879a6a9 | 100 | LDR R0, =SystemInit |
mbed_official | 85:e1a8e879a6a9 | 101 | BLX R0 |
mbed_official | 85:e1a8e879a6a9 | 102 | LDR R0, =__main |
mbed_official | 85:e1a8e879a6a9 | 103 | BX R0 |
mbed_official | 85:e1a8e879a6a9 | 104 | ENDP |
mbed_official | 85:e1a8e879a6a9 | 105 | |
mbed_official | 85:e1a8e879a6a9 | 106 | ; Dummy Exception Handlers (infinite loops which can be modified) |
mbed_official | 85:e1a8e879a6a9 | 107 | |
mbed_official | 85:e1a8e879a6a9 | 108 | NMI_Handler PROC |
mbed_official | 85:e1a8e879a6a9 | 109 | EXPORT NMI_Handler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 110 | B . |
mbed_official | 85:e1a8e879a6a9 | 111 | ENDP |
mbed_official | 85:e1a8e879a6a9 | 112 | HardFault_Handler\ |
mbed_official | 85:e1a8e879a6a9 | 113 | PROC |
mbed_official | 85:e1a8e879a6a9 | 114 | EXPORT HardFault_Handler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 115 | B . |
mbed_official | 85:e1a8e879a6a9 | 116 | ENDP |
mbed_official | 85:e1a8e879a6a9 | 117 | SVC_Handler PROC |
mbed_official | 85:e1a8e879a6a9 | 118 | EXPORT SVC_Handler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 119 | B . |
mbed_official | 85:e1a8e879a6a9 | 120 | ENDP |
mbed_official | 85:e1a8e879a6a9 | 121 | PendSV_Handler PROC |
mbed_official | 85:e1a8e879a6a9 | 122 | EXPORT PendSV_Handler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 123 | B . |
mbed_official | 85:e1a8e879a6a9 | 124 | ENDP |
mbed_official | 85:e1a8e879a6a9 | 125 | SysTick_Handler PROC |
mbed_official | 85:e1a8e879a6a9 | 126 | EXPORT SysTick_Handler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 127 | B . |
mbed_official | 85:e1a8e879a6a9 | 128 | ENDP |
mbed_official | 85:e1a8e879a6a9 | 129 | |
mbed_official | 85:e1a8e879a6a9 | 130 | Default_Handler PROC |
mbed_official | 85:e1a8e879a6a9 | 131 | |
mbed_official | 85:e1a8e879a6a9 | 132 | EXPORT POWER_CLOCK_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 133 | EXPORT RADIO_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 134 | EXPORT UART0_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 135 | EXPORT SPI0_TWI0_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 136 | EXPORT SPI1_TWI1_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 137 | EXPORT GPIOTE_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 138 | EXPORT ADC_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 139 | EXPORT TIMER0_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 140 | EXPORT TIMER1_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 141 | EXPORT TIMER2_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 142 | EXPORT RTC0_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 143 | EXPORT TEMP_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 144 | EXPORT RNG_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 145 | EXPORT ECB_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 146 | EXPORT CCM_AAR_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 147 | EXPORT WDT_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 148 | EXPORT RTC1_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 149 | EXPORT QDEC_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 150 | EXPORT LPCOMP_COMP_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 151 | EXPORT SWI0_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 152 | EXPORT SWI1_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 153 | EXPORT SWI2_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 154 | EXPORT SWI3_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 155 | EXPORT SWI4_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 156 | EXPORT SWI5_IRQHandler [WEAK] |
mbed_official | 85:e1a8e879a6a9 | 157 | POWER_CLOCK_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 158 | RADIO_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 159 | UART0_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 160 | SPI0_TWI0_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 161 | SPI1_TWI1_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 162 | GPIOTE_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 163 | ADC_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 164 | TIMER0_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 165 | TIMER1_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 166 | TIMER2_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 167 | RTC0_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 168 | TEMP_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 169 | RNG_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 170 | ECB_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 171 | CCM_AAR_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 172 | WDT_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 173 | RTC1_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 174 | QDEC_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 175 | LPCOMP_COMP_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 176 | SWI0_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 177 | SWI1_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 178 | SWI2_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 179 | SWI3_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 180 | SWI4_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 181 | SWI5_IRQHandler |
mbed_official | 85:e1a8e879a6a9 | 182 | |
mbed_official | 85:e1a8e879a6a9 | 183 | B . |
mbed_official | 85:e1a8e879a6a9 | 184 | ENDP |
mbed_official | 85:e1a8e879a6a9 | 185 | ALIGN |
mbed_official | 85:e1a8e879a6a9 | 186 | END |
mbed_official | 85:e1a8e879a6a9 | 187 |