mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Wed Jul 01 08:15:11 2015 +0100
Revision:
577:15494b56c2f3
Parent:
targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_MICRO/startup_efm32wg.s@525:c320967f86b9
Child:
593:78ee8643776a
Synchronized with git revision 7766e75dd858812cd79aedb3080349715f55dd56

Full URL: https://github.com/mbedmicro/mbed/commit/7766e75dd858812cd79aedb3080349715f55dd56/

GCC asm updates

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 525:c320967f86b9 1 ;/**************************************************************************//**
mbed_official 525:c320967f86b9 2 ; * @file startup_efm32wg.s
mbed_official 525:c320967f86b9 3 ; * @brief CMSIS Core Device Startup File for
mbed_official 525:c320967f86b9 4 ; * Silicon Labs EFM32WG Device Series
mbed_official 525:c320967f86b9 5 ; * @version 3.20.6
mbed_official 525:c320967f86b9 6 ; * @date 03. February 2012
mbed_official 525:c320967f86b9 7 ; *
mbed_official 525:c320967f86b9 8 ; * @note
mbed_official 525:c320967f86b9 9 ; * Copyright (C) 2012 ARM Limited. All rights reserved.
mbed_official 525:c320967f86b9 10 ; *
mbed_official 525:c320967f86b9 11 ; * @par
mbed_official 525:c320967f86b9 12 ; * ARM Limited (ARM) is supplying this software for use with Cortex-M
mbed_official 525:c320967f86b9 13 ; * processor based microcontrollers. This file can be freely distributed
mbed_official 525:c320967f86b9 14 ; * within development tools that are supporting such ARM based processors.
mbed_official 525:c320967f86b9 15 ; *
mbed_official 525:c320967f86b9 16 ; * @par
mbed_official 525:c320967f86b9 17 ; * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
mbed_official 525:c320967f86b9 18 ; * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
mbed_official 525:c320967f86b9 19 ; * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
mbed_official 525:c320967f86b9 20 ; * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
mbed_official 525:c320967f86b9 21 ; * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
mbed_official 525:c320967f86b9 22 ; *
mbed_official 525:c320967f86b9 23 ; ******************************************************************************/
mbed_official 525:c320967f86b9 24 ;/*
mbed_official 525:c320967f86b9 25 ;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------
mbed_official 525:c320967f86b9 26 ;*/
mbed_official 525:c320967f86b9 27
mbed_official 525:c320967f86b9 28 ; <h> Stack Configuration
mbed_official 525:c320967f86b9 29 ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 525:c320967f86b9 30 ; </h>
mbed_official 525:c320967f86b9 31
mbed_official 525:c320967f86b9 32 Stack_Size EQU 0x00000400
mbed_official 525:c320967f86b9 33
mbed_official 525:c320967f86b9 34 AREA STACK, NOINIT, READWRITE, ALIGN=3
mbed_official 525:c320967f86b9 35 Stack_Mem SPACE Stack_Size
mbed_official 525:c320967f86b9 36 __initial_sp
mbed_official 525:c320967f86b9 37
mbed_official 525:c320967f86b9 38
mbed_official 525:c320967f86b9 39 ; <h> Heap Configuration
mbed_official 525:c320967f86b9 40 ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 525:c320967f86b9 41 ; </h>
mbed_official 525:c320967f86b9 42
mbed_official 525:c320967f86b9 43 Heap_Size EQU 0x00000C00
mbed_official 525:c320967f86b9 44
mbed_official 525:c320967f86b9 45 AREA HEAP, NOINIT, READWRITE, ALIGN=3
mbed_official 525:c320967f86b9 46 __heap_base
mbed_official 525:c320967f86b9 47 Heap_Mem SPACE Heap_Size
mbed_official 525:c320967f86b9 48 __heap_limit
mbed_official 525:c320967f86b9 49
mbed_official 525:c320967f86b9 50
mbed_official 525:c320967f86b9 51 PRESERVE8
mbed_official 525:c320967f86b9 52 THUMB
mbed_official 525:c320967f86b9 53
mbed_official 525:c320967f86b9 54
mbed_official 525:c320967f86b9 55 ; Vector Table Mapped to Address 0 at Reset
mbed_official 525:c320967f86b9 56
mbed_official 525:c320967f86b9 57 AREA RESET, DATA, READONLY, ALIGN=8
mbed_official 525:c320967f86b9 58 EXPORT __Vectors
mbed_official 525:c320967f86b9 59 EXPORT __Vectors_End
mbed_official 525:c320967f86b9 60 EXPORT __Vectors_Size
mbed_official 525:c320967f86b9 61
mbed_official 525:c320967f86b9 62 __Vectors DCD __initial_sp ; Top of Stack
mbed_official 525:c320967f86b9 63 DCD Reset_Handler ; Reset Handler
mbed_official 525:c320967f86b9 64 DCD NMI_Handler ; NMI Handler
mbed_official 525:c320967f86b9 65 DCD HardFault_Handler ; Hard Fault Handler
mbed_official 525:c320967f86b9 66 DCD MemManage_Handler ; MPU Fault Handler
mbed_official 525:c320967f86b9 67 DCD BusFault_Handler ; Bus Fault Handler
mbed_official 525:c320967f86b9 68 DCD UsageFault_Handler ; Usage Fault Handler
mbed_official 525:c320967f86b9 69 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 70 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 71 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 72 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 73 DCD SVC_Handler ; SVCall Handler
mbed_official 525:c320967f86b9 74 DCD DebugMon_Handler ; Debug Monitor Handler
mbed_official 525:c320967f86b9 75 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 76 DCD PendSV_Handler ; PendSV Handler
mbed_official 525:c320967f86b9 77 DCD SysTick_Handler ; SysTick Handler
mbed_official 525:c320967f86b9 78
mbed_official 525:c320967f86b9 79 ; External Interrupts
mbed_official 525:c320967f86b9 80
mbed_official 525:c320967f86b9 81 DCD DMA_IRQHandler ; 0: DMA Interrupt
mbed_official 525:c320967f86b9 82 DCD GPIO_EVEN_IRQHandler ; 1: GPIO_EVEN Interrupt
mbed_official 525:c320967f86b9 83 DCD TIMER0_IRQHandler ; 2: TIMER0 Interrupt
mbed_official 525:c320967f86b9 84 DCD USART0_RX_IRQHandler ; 3: USART0_RX Interrupt
mbed_official 525:c320967f86b9 85 DCD USART0_TX_IRQHandler ; 4: USART0_TX Interrupt
mbed_official 525:c320967f86b9 86 DCD USB_IRQHandler ; 5: USB Interrupt
mbed_official 525:c320967f86b9 87 DCD ACMP0_IRQHandler ; 6: ACMP0 Interrupt
mbed_official 525:c320967f86b9 88 DCD ADC0_IRQHandler ; 7: ADC0 Interrupt
mbed_official 525:c320967f86b9 89 DCD DAC0_IRQHandler ; 8: DAC0 Interrupt
mbed_official 525:c320967f86b9 90 DCD I2C0_IRQHandler ; 9: I2C0 Interrupt
mbed_official 525:c320967f86b9 91 DCD I2C1_IRQHandler ; 10: I2C1 Interrupt
mbed_official 525:c320967f86b9 92 DCD GPIO_ODD_IRQHandler ; 11: GPIO_ODD Interrupt
mbed_official 525:c320967f86b9 93 DCD TIMER1_IRQHandler ; 12: TIMER1 Interrupt
mbed_official 525:c320967f86b9 94 DCD TIMER2_IRQHandler ; 13: TIMER2 Interrupt
mbed_official 525:c320967f86b9 95 DCD TIMER3_IRQHandler ; 14: TIMER3 Interrupt
mbed_official 525:c320967f86b9 96 DCD USART1_RX_IRQHandler ; 15: USART1_RX Interrupt
mbed_official 525:c320967f86b9 97 DCD USART1_TX_IRQHandler ; 16: USART1_TX Interrupt
mbed_official 525:c320967f86b9 98 DCD LESENSE_IRQHandler ; 17: LESENSE Interrupt
mbed_official 525:c320967f86b9 99 DCD USART2_RX_IRQHandler ; 18: USART2_RX Interrupt
mbed_official 525:c320967f86b9 100 DCD USART2_TX_IRQHandler ; 19: USART2_TX Interrupt
mbed_official 525:c320967f86b9 101 DCD UART0_RX_IRQHandler ; 20: UART0_RX Interrupt
mbed_official 525:c320967f86b9 102 DCD UART0_TX_IRQHandler ; 21: UART0_TX Interrupt
mbed_official 525:c320967f86b9 103 DCD UART1_RX_IRQHandler ; 22: UART1_RX Interrupt
mbed_official 525:c320967f86b9 104 DCD UART1_TX_IRQHandler ; 23: UART1_TX Interrupt
mbed_official 525:c320967f86b9 105 DCD LEUART0_IRQHandler ; 24: LEUART0 Interrupt
mbed_official 525:c320967f86b9 106 DCD LEUART1_IRQHandler ; 25: LEUART1 Interrupt
mbed_official 525:c320967f86b9 107 DCD LETIMER0_IRQHandler ; 26: LETIMER0 Interrupt
mbed_official 525:c320967f86b9 108 DCD PCNT0_IRQHandler ; 27: PCNT0 Interrupt
mbed_official 525:c320967f86b9 109 DCD PCNT1_IRQHandler ; 28: PCNT1 Interrupt
mbed_official 525:c320967f86b9 110 DCD PCNT2_IRQHandler ; 29: PCNT2 Interrupt
mbed_official 525:c320967f86b9 111 DCD RTC_IRQHandler ; 30: RTC Interrupt
mbed_official 525:c320967f86b9 112 DCD BURTC_IRQHandler ; 31: BURTC Interrupt
mbed_official 525:c320967f86b9 113 DCD CMU_IRQHandler ; 32: CMU Interrupt
mbed_official 525:c320967f86b9 114 DCD VCMP_IRQHandler ; 33: VCMP Interrupt
mbed_official 525:c320967f86b9 115 DCD LCD_IRQHandler ; 34: LCD Interrupt
mbed_official 525:c320967f86b9 116 DCD MSC_IRQHandler ; 35: MSC Interrupt
mbed_official 525:c320967f86b9 117 DCD AES_IRQHandler ; 36: AES Interrupt
mbed_official 525:c320967f86b9 118 DCD EBI_IRQHandler ; 37: EBI Interrupt
mbed_official 525:c320967f86b9 119 DCD EMU_IRQHandler ; 38: EMU Interrupt
mbed_official 525:c320967f86b9 120 DCD FPUEH_IRQHandler ; 39: FPUEH Interrupt
mbed_official 525:c320967f86b9 121
mbed_official 525:c320967f86b9 122 __Vectors_End
mbed_official 525:c320967f86b9 123 __Vectors_Size EQU __Vectors_End - __Vectors
mbed_official 525:c320967f86b9 124
mbed_official 525:c320967f86b9 125 AREA |.text|, CODE, READONLY
mbed_official 525:c320967f86b9 126
mbed_official 525:c320967f86b9 127
mbed_official 525:c320967f86b9 128 ; Reset Handler
mbed_official 525:c320967f86b9 129
mbed_official 525:c320967f86b9 130 Reset_Handler PROC
mbed_official 525:c320967f86b9 131 EXPORT Reset_Handler [WEAK]
mbed_official 525:c320967f86b9 132 IMPORT SystemInit
mbed_official 525:c320967f86b9 133 IMPORT __main
mbed_official 525:c320967f86b9 134 LDR R0, =SystemInit
mbed_official 525:c320967f86b9 135 BLX R0
mbed_official 525:c320967f86b9 136 LDR R0, =__main
mbed_official 525:c320967f86b9 137 BX R0
mbed_official 525:c320967f86b9 138 ENDP
mbed_official 525:c320967f86b9 139
mbed_official 525:c320967f86b9 140
mbed_official 525:c320967f86b9 141 ; Dummy Exception Handlers (infinite loops which can be modified)
mbed_official 525:c320967f86b9 142
mbed_official 525:c320967f86b9 143 NMI_Handler PROC
mbed_official 525:c320967f86b9 144 EXPORT NMI_Handler [WEAK]
mbed_official 525:c320967f86b9 145 B .
mbed_official 525:c320967f86b9 146 ENDP
mbed_official 525:c320967f86b9 147 HardFault_Handler\
mbed_official 525:c320967f86b9 148 PROC
mbed_official 525:c320967f86b9 149 EXPORT HardFault_Handler [WEAK]
mbed_official 525:c320967f86b9 150 B .
mbed_official 525:c320967f86b9 151 ENDP
mbed_official 525:c320967f86b9 152 MemManage_Handler\
mbed_official 525:c320967f86b9 153 PROC
mbed_official 525:c320967f86b9 154 EXPORT MemManage_Handler [WEAK]
mbed_official 525:c320967f86b9 155 B .
mbed_official 525:c320967f86b9 156 ENDP
mbed_official 525:c320967f86b9 157 BusFault_Handler\
mbed_official 525:c320967f86b9 158 PROC
mbed_official 525:c320967f86b9 159 EXPORT BusFault_Handler [WEAK]
mbed_official 525:c320967f86b9 160 B .
mbed_official 525:c320967f86b9 161 ENDP
mbed_official 525:c320967f86b9 162 UsageFault_Handler\
mbed_official 525:c320967f86b9 163 PROC
mbed_official 525:c320967f86b9 164 EXPORT UsageFault_Handler [WEAK]
mbed_official 525:c320967f86b9 165 B .
mbed_official 525:c320967f86b9 166 ENDP
mbed_official 525:c320967f86b9 167 SVC_Handler PROC
mbed_official 525:c320967f86b9 168 EXPORT SVC_Handler [WEAK]
mbed_official 525:c320967f86b9 169 B .
mbed_official 525:c320967f86b9 170 ENDP
mbed_official 525:c320967f86b9 171 DebugMon_Handler\
mbed_official 525:c320967f86b9 172 PROC
mbed_official 525:c320967f86b9 173 EXPORT DebugMon_Handler [WEAK]
mbed_official 525:c320967f86b9 174 B .
mbed_official 525:c320967f86b9 175 ENDP
mbed_official 525:c320967f86b9 176 PendSV_Handler PROC
mbed_official 525:c320967f86b9 177 EXPORT PendSV_Handler [WEAK]
mbed_official 525:c320967f86b9 178 B .
mbed_official 525:c320967f86b9 179 ENDP
mbed_official 525:c320967f86b9 180 SysTick_Handler PROC
mbed_official 525:c320967f86b9 181 EXPORT SysTick_Handler [WEAK]
mbed_official 525:c320967f86b9 182 B .
mbed_official 525:c320967f86b9 183 ENDP
mbed_official 525:c320967f86b9 184
mbed_official 525:c320967f86b9 185 Default_Handler PROC
mbed_official 525:c320967f86b9 186 EXPORT DMA_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 187 EXPORT GPIO_EVEN_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 188 EXPORT TIMER0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 189 EXPORT USART0_RX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 190 EXPORT USART0_TX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 191 EXPORT USB_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 192 EXPORT ACMP0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 193 EXPORT ADC0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 194 EXPORT DAC0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 195 EXPORT I2C0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 196 EXPORT I2C1_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 197 EXPORT GPIO_ODD_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 198 EXPORT TIMER1_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 199 EXPORT TIMER2_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 200 EXPORT TIMER3_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 201 EXPORT USART1_RX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 202 EXPORT USART1_TX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 203 EXPORT LESENSE_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 204 EXPORT USART2_RX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 205 EXPORT USART2_TX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 206 EXPORT UART0_RX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 207 EXPORT UART0_TX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 208 EXPORT UART1_RX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 209 EXPORT UART1_TX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 210 EXPORT LEUART0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 211 EXPORT LEUART1_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 212 EXPORT LETIMER0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 213 EXPORT PCNT0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 214 EXPORT PCNT1_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 215 EXPORT PCNT2_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 216 EXPORT RTC_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 217 EXPORT BURTC_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 218 EXPORT CMU_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 219 EXPORT VCMP_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 220 EXPORT LCD_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 221 EXPORT MSC_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 222 EXPORT AES_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 223 EXPORT EBI_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 224 EXPORT EMU_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 225 EXPORT FPUEH_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 226
mbed_official 525:c320967f86b9 227
mbed_official 525:c320967f86b9 228 DMA_IRQHandler
mbed_official 525:c320967f86b9 229 GPIO_EVEN_IRQHandler
mbed_official 525:c320967f86b9 230 TIMER0_IRQHandler
mbed_official 525:c320967f86b9 231 USART0_RX_IRQHandler
mbed_official 525:c320967f86b9 232 USART0_TX_IRQHandler
mbed_official 525:c320967f86b9 233 USB_IRQHandler
mbed_official 525:c320967f86b9 234 ACMP0_IRQHandler
mbed_official 525:c320967f86b9 235 ADC0_IRQHandler
mbed_official 525:c320967f86b9 236 DAC0_IRQHandler
mbed_official 525:c320967f86b9 237 I2C0_IRQHandler
mbed_official 525:c320967f86b9 238 I2C1_IRQHandler
mbed_official 525:c320967f86b9 239 GPIO_ODD_IRQHandler
mbed_official 525:c320967f86b9 240 TIMER1_IRQHandler
mbed_official 525:c320967f86b9 241 TIMER2_IRQHandler
mbed_official 525:c320967f86b9 242 TIMER3_IRQHandler
mbed_official 525:c320967f86b9 243 USART1_RX_IRQHandler
mbed_official 525:c320967f86b9 244 USART1_TX_IRQHandler
mbed_official 525:c320967f86b9 245 LESENSE_IRQHandler
mbed_official 525:c320967f86b9 246 USART2_RX_IRQHandler
mbed_official 525:c320967f86b9 247 USART2_TX_IRQHandler
mbed_official 525:c320967f86b9 248 UART0_RX_IRQHandler
mbed_official 525:c320967f86b9 249 UART0_TX_IRQHandler
mbed_official 525:c320967f86b9 250 UART1_RX_IRQHandler
mbed_official 525:c320967f86b9 251 UART1_TX_IRQHandler
mbed_official 525:c320967f86b9 252 LEUART0_IRQHandler
mbed_official 525:c320967f86b9 253 LEUART1_IRQHandler
mbed_official 525:c320967f86b9 254 LETIMER0_IRQHandler
mbed_official 525:c320967f86b9 255 PCNT0_IRQHandler
mbed_official 525:c320967f86b9 256 PCNT1_IRQHandler
mbed_official 525:c320967f86b9 257 PCNT2_IRQHandler
mbed_official 525:c320967f86b9 258 RTC_IRQHandler
mbed_official 525:c320967f86b9 259 BURTC_IRQHandler
mbed_official 525:c320967f86b9 260 CMU_IRQHandler
mbed_official 525:c320967f86b9 261 VCMP_IRQHandler
mbed_official 525:c320967f86b9 262 LCD_IRQHandler
mbed_official 525:c320967f86b9 263 MSC_IRQHandler
mbed_official 525:c320967f86b9 264 AES_IRQHandler
mbed_official 525:c320967f86b9 265 EBI_IRQHandler
mbed_official 525:c320967f86b9 266 EMU_IRQHandler
mbed_official 525:c320967f86b9 267 FPUEH_IRQHandler
mbed_official 525:c320967f86b9 268
mbed_official 525:c320967f86b9 269
mbed_official 525:c320967f86b9 270 B .
mbed_official 525:c320967f86b9 271
mbed_official 525:c320967f86b9 272 ENDP
mbed_official 525:c320967f86b9 273
mbed_official 525:c320967f86b9 274 ALIGN
mbed_official 525:c320967f86b9 275
mbed_official 525:c320967f86b9 276 ; User Initial Stack & Heap
mbed_official 525:c320967f86b9 277
mbed_official 525:c320967f86b9 278 EXPORT __initial_sp
mbed_official 525:c320967f86b9 279 EXPORT __heap_base
mbed_official 525:c320967f86b9 280 EXPORT __heap_limit
mbed_official 525:c320967f86b9 281
mbed_official 525:c320967f86b9 282 END