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_EFM32HG_STK3400/TOOLCHAIN_ARM_MICRO/startup_efm32hg.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_efm32hg.s
mbed_official 525:c320967f86b9 3 ; * @brief CMSIS Core Device Startup File for
mbed_official 525:c320967f86b9 4 ; * Silicon Labs EFM32HG Device Series
mbed_official 525:c320967f86b9 5 ; * @version 3.20.12
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 0x0
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 0 ; Reserved
mbed_official 525:c320967f86b9 67 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 68 DCD 0 ; Reserved
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 0 ; Reserved
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 ACMP0_IRQHandler ; 3: ACMP0 Interrupt
mbed_official 525:c320967f86b9 85 DCD ADC0_IRQHandler ; 4: ADC0 Interrupt
mbed_official 525:c320967f86b9 86 DCD I2C0_IRQHandler ; 5: I2C0 Interrupt
mbed_official 525:c320967f86b9 87 DCD GPIO_ODD_IRQHandler ; 6: GPIO_ODD Interrupt
mbed_official 525:c320967f86b9 88 DCD TIMER1_IRQHandler ; 7: TIMER1 Interrupt
mbed_official 525:c320967f86b9 89 DCD USART1_RX_IRQHandler ; 8: USART1_RX Interrupt
mbed_official 525:c320967f86b9 90 DCD USART1_TX_IRQHandler ; 9: USART1_TX Interrupt
mbed_official 525:c320967f86b9 91 DCD LEUART0_IRQHandler ; 10: LEUART0 Interrupt
mbed_official 525:c320967f86b9 92 DCD PCNT0_IRQHandler ; 11: PCNT0 Interrupt
mbed_official 525:c320967f86b9 93 DCD RTC_IRQHandler ; 12: RTC Interrupt
mbed_official 525:c320967f86b9 94 DCD CMU_IRQHandler ; 13: CMU Interrupt
mbed_official 525:c320967f86b9 95 DCD VCMP_IRQHandler ; 14: VCMP Interrupt
mbed_official 525:c320967f86b9 96 DCD MSC_IRQHandler ; 15: MSC Interrupt
mbed_official 525:c320967f86b9 97 DCD AES_IRQHandler ; 16: AES Interrupt
mbed_official 525:c320967f86b9 98 DCD USART0_RX_IRQHandler ; 17: USART0_RX Interrupt
mbed_official 525:c320967f86b9 99 DCD USART0_TX_IRQHandler ; 18: USART0_TX Interrupt
mbed_official 525:c320967f86b9 100 DCD USB_IRQHandler ; 19: USB Interrupt
mbed_official 525:c320967f86b9 101 DCD TIMER2_IRQHandler ; 20: TIMER2 Interrupt
mbed_official 525:c320967f86b9 102
mbed_official 525:c320967f86b9 103 __Vectors_End
mbed_official 525:c320967f86b9 104 __Vectors_Size EQU __Vectors_End - __Vectors
mbed_official 525:c320967f86b9 105
mbed_official 525:c320967f86b9 106 AREA |.text|, CODE, READONLY
mbed_official 525:c320967f86b9 107
mbed_official 525:c320967f86b9 108
mbed_official 525:c320967f86b9 109 ; Reset Handler
mbed_official 525:c320967f86b9 110
mbed_official 525:c320967f86b9 111 Reset_Handler PROC
mbed_official 525:c320967f86b9 112 EXPORT Reset_Handler [WEAK]
mbed_official 525:c320967f86b9 113 IMPORT SystemInit
mbed_official 525:c320967f86b9 114 IMPORT __main
mbed_official 525:c320967f86b9 115 LDR R0, =SystemInit
mbed_official 525:c320967f86b9 116 BLX R0
mbed_official 525:c320967f86b9 117 LDR R0, =__main
mbed_official 525:c320967f86b9 118 BX R0
mbed_official 525:c320967f86b9 119 ENDP
mbed_official 525:c320967f86b9 120
mbed_official 525:c320967f86b9 121
mbed_official 525:c320967f86b9 122 ; Dummy Exception Handlers (infinite loops which can be modified)
mbed_official 525:c320967f86b9 123
mbed_official 525:c320967f86b9 124 NMI_Handler PROC
mbed_official 525:c320967f86b9 125 EXPORT NMI_Handler [WEAK]
mbed_official 525:c320967f86b9 126 B .
mbed_official 525:c320967f86b9 127 ENDP
mbed_official 525:c320967f86b9 128 HardFault_Handler\
mbed_official 525:c320967f86b9 129 PROC
mbed_official 525:c320967f86b9 130 EXPORT HardFault_Handler [WEAK]
mbed_official 525:c320967f86b9 131 B .
mbed_official 525:c320967f86b9 132 ENDP
mbed_official 525:c320967f86b9 133 SVC_Handler PROC
mbed_official 525:c320967f86b9 134 EXPORT SVC_Handler [WEAK]
mbed_official 525:c320967f86b9 135 B .
mbed_official 525:c320967f86b9 136 ENDP
mbed_official 525:c320967f86b9 137 PendSV_Handler PROC
mbed_official 525:c320967f86b9 138 EXPORT PendSV_Handler [WEAK]
mbed_official 525:c320967f86b9 139 B .
mbed_official 525:c320967f86b9 140 ENDP
mbed_official 525:c320967f86b9 141 SysTick_Handler PROC
mbed_official 525:c320967f86b9 142 EXPORT SysTick_Handler [WEAK]
mbed_official 525:c320967f86b9 143 B .
mbed_official 525:c320967f86b9 144 ENDP
mbed_official 525:c320967f86b9 145
mbed_official 525:c320967f86b9 146 Default_Handler PROC
mbed_official 525:c320967f86b9 147 EXPORT DMA_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 148 EXPORT GPIO_EVEN_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 149 EXPORT TIMER0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 150 EXPORT ACMP0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 151 EXPORT ADC0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 152 EXPORT I2C0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 153 EXPORT GPIO_ODD_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 154 EXPORT TIMER1_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 155 EXPORT USART1_RX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 156 EXPORT USART1_TX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 157 EXPORT LEUART0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 158 EXPORT PCNT0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 159 EXPORT RTC_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 160 EXPORT CMU_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 161 EXPORT VCMP_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 162 EXPORT MSC_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 163 EXPORT AES_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 164 EXPORT USART0_RX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 165 EXPORT USART0_TX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 166 EXPORT USB_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 167 EXPORT TIMER2_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 168
mbed_official 525:c320967f86b9 169
mbed_official 525:c320967f86b9 170 DMA_IRQHandler
mbed_official 525:c320967f86b9 171 GPIO_EVEN_IRQHandler
mbed_official 525:c320967f86b9 172 TIMER0_IRQHandler
mbed_official 525:c320967f86b9 173 ACMP0_IRQHandler
mbed_official 525:c320967f86b9 174 ADC0_IRQHandler
mbed_official 525:c320967f86b9 175 I2C0_IRQHandler
mbed_official 525:c320967f86b9 176 GPIO_ODD_IRQHandler
mbed_official 525:c320967f86b9 177 TIMER1_IRQHandler
mbed_official 525:c320967f86b9 178 USART1_RX_IRQHandler
mbed_official 525:c320967f86b9 179 USART1_TX_IRQHandler
mbed_official 525:c320967f86b9 180 LEUART0_IRQHandler
mbed_official 525:c320967f86b9 181 PCNT0_IRQHandler
mbed_official 525:c320967f86b9 182 RTC_IRQHandler
mbed_official 525:c320967f86b9 183 CMU_IRQHandler
mbed_official 525:c320967f86b9 184 VCMP_IRQHandler
mbed_official 525:c320967f86b9 185 MSC_IRQHandler
mbed_official 525:c320967f86b9 186 AES_IRQHandler
mbed_official 525:c320967f86b9 187 USART0_RX_IRQHandler
mbed_official 525:c320967f86b9 188 USART0_TX_IRQHandler
mbed_official 525:c320967f86b9 189 USB_IRQHandler
mbed_official 525:c320967f86b9 190 TIMER2_IRQHandler
mbed_official 525:c320967f86b9 191 B .
mbed_official 525:c320967f86b9 192 ENDP
mbed_official 525:c320967f86b9 193
mbed_official 525:c320967f86b9 194 ALIGN
mbed_official 525:c320967f86b9 195
mbed_official 525:c320967f86b9 196 ; User Initial Stack & Heap
mbed_official 525:c320967f86b9 197
mbed_official 525:c320967f86b9 198 EXPORT __initial_sp
mbed_official 525:c320967f86b9 199 EXPORT __heap_base
mbed_official 525:c320967f86b9 200 EXPORT __heap_limit
mbed_official 525:c320967f86b9 201
mbed_official 525:c320967f86b9 202 END