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_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_MICRO/startup_stm32f091rc.s@392:2b59412bb664
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 340:28d1f895c6fe 1 ;******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
mbed_official 340:28d1f895c6fe 2 ;* File Name : startup_stm32f091xc.s
mbed_official 340:28d1f895c6fe 3 ;* Author : MCD Application Team
mbed_official 340:28d1f895c6fe 4 ;* Version : V2.1.0
mbed_official 340:28d1f895c6fe 5 ;* Date : 03-Oct-2014
mbed_official 340:28d1f895c6fe 6 ;* Description : STM32F091xc/STM32F098xc devices vector table for MDK-ARM_MICRO toolchain.
mbed_official 340:28d1f895c6fe 7 ;* This module performs:
mbed_official 340:28d1f895c6fe 8 ;* - Set the initial SP
mbed_official 340:28d1f895c6fe 9 ;* - Set the initial PC == Reset_Handler
mbed_official 340:28d1f895c6fe 10 ;* - Set the vector table entries with the exceptions ISR address
mbed_official 340:28d1f895c6fe 11 ;* - Branches to __main in the C library (which eventually
mbed_official 340:28d1f895c6fe 12 ;* calls main()).
mbed_official 340:28d1f895c6fe 13 ;* After Reset the CortexM0 processor is in Thread mode,
mbed_official 340:28d1f895c6fe 14 ;* priority is Privileged, and the Stack is set to Main.
mbed_official 340:28d1f895c6fe 15 ;* <<< Use Configuration Wizard in Context Menu >>>
mbed_official 340:28d1f895c6fe 16 ;*******************************************************************************
mbed_official 340:28d1f895c6fe 17 ;
mbed_official 340:28d1f895c6fe 18 ;* Redistribution and use in source and binary forms, with or without modification,
mbed_official 340:28d1f895c6fe 19 ;* are permitted provided that the following conditions are met:
mbed_official 340:28d1f895c6fe 20 ;* 1. Redistributions of source code must retain the above copyright notice,
mbed_official 340:28d1f895c6fe 21 ;* this list of conditions and the following disclaimer.
mbed_official 340:28d1f895c6fe 22 ;* 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 340:28d1f895c6fe 23 ;* this list of conditions and the following disclaimer in the documentation
mbed_official 340:28d1f895c6fe 24 ;* and/or other materials provided with the distribution.
mbed_official 340:28d1f895c6fe 25 ;* 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 340:28d1f895c6fe 26 ;* may be used to endorse or promote products derived from this software
mbed_official 340:28d1f895c6fe 27 ;* without specific prior written permission.
mbed_official 340:28d1f895c6fe 28 ;*
mbed_official 340:28d1f895c6fe 29 ;* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 340:28d1f895c6fe 30 ;* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 340:28d1f895c6fe 31 ;* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 340:28d1f895c6fe 32 ;* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 340:28d1f895c6fe 33 ;* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 340:28d1f895c6fe 34 ;* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 340:28d1f895c6fe 35 ;* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 340:28d1f895c6fe 36 ;* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 340:28d1f895c6fe 37 ;* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 340:28d1f895c6fe 38 ;* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 340:28d1f895c6fe 39 ;
mbed_official 340:28d1f895c6fe 40 ;*******************************************************************************
mbed_official 340:28d1f895c6fe 41
mbed_official 340:28d1f895c6fe 42 ; Amount of memory (in bytes) allocated for Stack
mbed_official 340:28d1f895c6fe 43 ; Tailor this value to your application needs
mbed_official 340:28d1f895c6fe 44 ; <h> Stack Configuration
mbed_official 340:28d1f895c6fe 45 ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 340:28d1f895c6fe 46 ; </h>
mbed_official 340:28d1f895c6fe 47
mbed_official 340:28d1f895c6fe 48 Stack_Size EQU 0x00000400
mbed_official 340:28d1f895c6fe 49
mbed_official 340:28d1f895c6fe 50 AREA STACK, NOINIT, READWRITE, ALIGN=3
mbed_official 340:28d1f895c6fe 51 EXPORT __initial_sp
mbed_official 340:28d1f895c6fe 52
mbed_official 340:28d1f895c6fe 53 Stack_Mem SPACE Stack_Size
mbed_official 340:28d1f895c6fe 54 __initial_sp EQU 0x20008000 ; Top of RAM (32KB)
mbed_official 340:28d1f895c6fe 55
mbed_official 340:28d1f895c6fe 56
mbed_official 340:28d1f895c6fe 57 ; <h> Heap Configuration
mbed_official 340:28d1f895c6fe 58 ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 340:28d1f895c6fe 59 ; </h>
mbed_official 340:28d1f895c6fe 60
mbed_official 340:28d1f895c6fe 61 Heap_Size EQU 0x00000400
mbed_official 340:28d1f895c6fe 62
mbed_official 340:28d1f895c6fe 63 AREA HEAP, NOINIT, READWRITE, ALIGN=3
mbed_official 340:28d1f895c6fe 64 EXPORT __heap_base
mbed_official 340:28d1f895c6fe 65 EXPORT __heap_limit
mbed_official 340:28d1f895c6fe 66
mbed_official 340:28d1f895c6fe 67 __heap_base
mbed_official 340:28d1f895c6fe 68 Heap_Mem SPACE Heap_Size
mbed_official 340:28d1f895c6fe 69 __heap_limit EQU (__initial_sp - Stack_Size)
mbed_official 340:28d1f895c6fe 70
mbed_official 340:28d1f895c6fe 71 PRESERVE8
mbed_official 340:28d1f895c6fe 72 THUMB
mbed_official 340:28d1f895c6fe 73
mbed_official 340:28d1f895c6fe 74
mbed_official 340:28d1f895c6fe 75 ; Vector Table Mapped to Address 0 at Reset
mbed_official 340:28d1f895c6fe 76 AREA RESET, DATA, READONLY
mbed_official 340:28d1f895c6fe 77 EXPORT __Vectors
mbed_official 340:28d1f895c6fe 78 EXPORT __Vectors_End
mbed_official 340:28d1f895c6fe 79 EXPORT __Vectors_Size
mbed_official 340:28d1f895c6fe 80
mbed_official 340:28d1f895c6fe 81 __Vectors DCD __initial_sp ; Top of Stack
mbed_official 340:28d1f895c6fe 82 DCD Reset_Handler ; Reset Handler
mbed_official 340:28d1f895c6fe 83 DCD NMI_Handler ; NMI Handler
mbed_official 340:28d1f895c6fe 84 DCD HardFault_Handler ; Hard Fault Handler
mbed_official 340:28d1f895c6fe 85 DCD 0 ; Reserved
mbed_official 340:28d1f895c6fe 86 DCD 0 ; Reserved
mbed_official 340:28d1f895c6fe 87 DCD 0 ; Reserved
mbed_official 340:28d1f895c6fe 88 DCD 0 ; Reserved
mbed_official 340:28d1f895c6fe 89 DCD 0 ; Reserved
mbed_official 340:28d1f895c6fe 90 DCD 0 ; Reserved
mbed_official 340:28d1f895c6fe 91 DCD 0 ; Reserved
mbed_official 340:28d1f895c6fe 92 DCD SVC_Handler ; SVCall Handler
mbed_official 340:28d1f895c6fe 93 DCD 0 ; Reserved
mbed_official 340:28d1f895c6fe 94 DCD 0 ; Reserved
mbed_official 340:28d1f895c6fe 95 DCD PendSV_Handler ; PendSV Handler
mbed_official 340:28d1f895c6fe 96 DCD SysTick_Handler ; SysTick Handler
mbed_official 340:28d1f895c6fe 97
mbed_official 340:28d1f895c6fe 98 ; External Interrupts
mbed_official 340:28d1f895c6fe 99 DCD WWDG_IRQHandler ; Window Watchdog
mbed_official 340:28d1f895c6fe 100 DCD PVD_VDDIO2_IRQHandler ; PVD through EXTI Line detect
mbed_official 340:28d1f895c6fe 101 DCD RTC_IRQHandler ; RTC through EXTI Line
mbed_official 340:28d1f895c6fe 102 DCD FLASH_IRQHandler ; FLASH
mbed_official 340:28d1f895c6fe 103 DCD RCC_CRS_IRQHandler ; RCC and CRS
mbed_official 340:28d1f895c6fe 104 DCD EXTI0_1_IRQHandler ; EXTI Line 0 and 1
mbed_official 340:28d1f895c6fe 105 DCD EXTI2_3_IRQHandler ; EXTI Line 2 and 3
mbed_official 340:28d1f895c6fe 106 DCD EXTI4_15_IRQHandler ; EXTI Line 4 to 15
mbed_official 340:28d1f895c6fe 107 DCD TSC_IRQHandler ; TS
mbed_official 340:28d1f895c6fe 108 DCD DMA1_Ch1_IRQHandler ; DMA1 Channel 1
mbed_official 340:28d1f895c6fe 109 DCD DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler ; DMA1 Channel 2 and 3 & DMA2 Channel 1 and 2
mbed_official 340:28d1f895c6fe 110 DCD DMA1_Ch4_7_DMA2_Ch3_5_IRQHandler ; DMA1 Channel 4 to 7 & DMA2 Channel 3 to 5
mbed_official 340:28d1f895c6fe 111 DCD ADC1_COMP_IRQHandler ; ADC1, COMP1 and COMP2
mbed_official 340:28d1f895c6fe 112 DCD TIM1_BRK_UP_TRG_COM_IRQHandler ; TIM1 Break, Update, Trigger and Commutation
mbed_official 340:28d1f895c6fe 113 DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
mbed_official 340:28d1f895c6fe 114 DCD TIM2_IRQHandler ; TIM2
mbed_official 340:28d1f895c6fe 115 DCD TIM3_IRQHandler ; TIM3
mbed_official 340:28d1f895c6fe 116 DCD TIM6_DAC_IRQHandler ; TIM6 and DAC
mbed_official 340:28d1f895c6fe 117 DCD TIM7_IRQHandler ; TIM7
mbed_official 340:28d1f895c6fe 118 DCD TIM14_IRQHandler ; TIM14
mbed_official 340:28d1f895c6fe 119 DCD TIM15_IRQHandler ; TIM15
mbed_official 340:28d1f895c6fe 120 DCD TIM16_IRQHandler ; TIM16
mbed_official 340:28d1f895c6fe 121 DCD TIM17_IRQHandler ; TIM17
mbed_official 340:28d1f895c6fe 122 DCD I2C1_IRQHandler ; I2C1
mbed_official 340:28d1f895c6fe 123 DCD I2C2_IRQHandler ; I2C2
mbed_official 340:28d1f895c6fe 124 DCD SPI1_IRQHandler ; SPI1
mbed_official 340:28d1f895c6fe 125 DCD SPI2_IRQHandler ; SPI2
mbed_official 340:28d1f895c6fe 126 DCD USART1_IRQHandler ; USART1
mbed_official 340:28d1f895c6fe 127 DCD USART2_IRQHandler ; USART2
mbed_official 340:28d1f895c6fe 128 DCD USART3_8_IRQHandler ; USART3, USART4, USART5, USART6, USART7, USART8
mbed_official 340:28d1f895c6fe 129 DCD CEC_CAN_IRQHandler ; CEC and CAN
mbed_official 340:28d1f895c6fe 130
mbed_official 340:28d1f895c6fe 131 __Vectors_End
mbed_official 340:28d1f895c6fe 132
mbed_official 340:28d1f895c6fe 133 __Vectors_Size EQU __Vectors_End - __Vectors
mbed_official 340:28d1f895c6fe 134
mbed_official 340:28d1f895c6fe 135 AREA |.text|, CODE, READONLY
mbed_official 340:28d1f895c6fe 136
mbed_official 340:28d1f895c6fe 137 ; Reset handler routine
mbed_official 340:28d1f895c6fe 138 Reset_Handler PROC
mbed_official 340:28d1f895c6fe 139 EXPORT Reset_Handler [WEAK]
mbed_official 340:28d1f895c6fe 140 IMPORT __main
mbed_official 340:28d1f895c6fe 141 IMPORT SystemInit
mbed_official 340:28d1f895c6fe 142 LDR R0, =SystemInit
mbed_official 340:28d1f895c6fe 143 BLX R0
mbed_official 340:28d1f895c6fe 144 LDR R0, =__main
mbed_official 340:28d1f895c6fe 145 BX R0
mbed_official 340:28d1f895c6fe 146 ENDP
mbed_official 340:28d1f895c6fe 147
mbed_official 340:28d1f895c6fe 148 ; Dummy Exception Handlers (infinite loops which can be modified)
mbed_official 340:28d1f895c6fe 149
mbed_official 340:28d1f895c6fe 150 NMI_Handler PROC
mbed_official 340:28d1f895c6fe 151 EXPORT NMI_Handler [WEAK]
mbed_official 340:28d1f895c6fe 152 B .
mbed_official 340:28d1f895c6fe 153 ENDP
mbed_official 340:28d1f895c6fe 154 HardFault_Handler\
mbed_official 340:28d1f895c6fe 155 PROC
mbed_official 340:28d1f895c6fe 156 EXPORT HardFault_Handler [WEAK]
mbed_official 340:28d1f895c6fe 157 B .
mbed_official 340:28d1f895c6fe 158 ENDP
mbed_official 340:28d1f895c6fe 159 SVC_Handler PROC
mbed_official 340:28d1f895c6fe 160 EXPORT SVC_Handler [WEAK]
mbed_official 340:28d1f895c6fe 161 B .
mbed_official 340:28d1f895c6fe 162 ENDP
mbed_official 340:28d1f895c6fe 163 PendSV_Handler PROC
mbed_official 340:28d1f895c6fe 164 EXPORT PendSV_Handler [WEAK]
mbed_official 340:28d1f895c6fe 165 B .
mbed_official 340:28d1f895c6fe 166 ENDP
mbed_official 340:28d1f895c6fe 167 SysTick_Handler PROC
mbed_official 340:28d1f895c6fe 168 EXPORT SysTick_Handler [WEAK]
mbed_official 340:28d1f895c6fe 169 B .
mbed_official 340:28d1f895c6fe 170 ENDP
mbed_official 340:28d1f895c6fe 171
mbed_official 340:28d1f895c6fe 172 Default_Handler PROC
mbed_official 340:28d1f895c6fe 173
mbed_official 340:28d1f895c6fe 174 EXPORT WWDG_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 175 EXPORT PVD_VDDIO2_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 176 EXPORT RTC_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 177 EXPORT FLASH_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 178 EXPORT RCC_CRS_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 179 EXPORT EXTI0_1_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 180 EXPORT EXTI2_3_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 181 EXPORT EXTI4_15_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 182 EXPORT TSC_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 183 EXPORT DMA1_Ch1_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 184 EXPORT DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 185 EXPORT DMA1_Ch4_7_DMA2_Ch3_5_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 186 EXPORT ADC1_COMP_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 187 EXPORT TIM1_BRK_UP_TRG_COM_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 188 EXPORT TIM1_CC_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 189 EXPORT TIM2_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 190 EXPORT TIM3_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 191 EXPORT TIM6_DAC_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 192 EXPORT TIM7_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 193 EXPORT TIM14_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 194 EXPORT TIM15_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 195 EXPORT TIM16_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 196 EXPORT TIM17_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 197 EXPORT I2C1_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 198 EXPORT I2C2_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 199 EXPORT SPI1_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 200 EXPORT SPI2_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 201 EXPORT USART1_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 202 EXPORT USART2_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 203 EXPORT USART3_8_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 204 EXPORT CEC_CAN_IRQHandler [WEAK]
mbed_official 340:28d1f895c6fe 205
mbed_official 340:28d1f895c6fe 206
mbed_official 340:28d1f895c6fe 207 WWDG_IRQHandler
mbed_official 340:28d1f895c6fe 208 PVD_VDDIO2_IRQHandler
mbed_official 340:28d1f895c6fe 209 RTC_IRQHandler
mbed_official 340:28d1f895c6fe 210 FLASH_IRQHandler
mbed_official 340:28d1f895c6fe 211 RCC_CRS_IRQHandler
mbed_official 340:28d1f895c6fe 212 EXTI0_1_IRQHandler
mbed_official 340:28d1f895c6fe 213 EXTI2_3_IRQHandler
mbed_official 340:28d1f895c6fe 214 EXTI4_15_IRQHandler
mbed_official 340:28d1f895c6fe 215 TSC_IRQHandler
mbed_official 340:28d1f895c6fe 216 DMA1_Ch1_IRQHandler
mbed_official 340:28d1f895c6fe 217 DMA1_Ch2_3_DMA2_Ch1_2_IRQHandler
mbed_official 340:28d1f895c6fe 218 DMA1_Ch4_7_DMA2_Ch3_5_IRQHandler
mbed_official 340:28d1f895c6fe 219 ADC1_COMP_IRQHandler
mbed_official 340:28d1f895c6fe 220 TIM1_BRK_UP_TRG_COM_IRQHandler
mbed_official 340:28d1f895c6fe 221 TIM1_CC_IRQHandler
mbed_official 340:28d1f895c6fe 222 TIM2_IRQHandler
mbed_official 340:28d1f895c6fe 223 TIM3_IRQHandler
mbed_official 340:28d1f895c6fe 224 TIM6_DAC_IRQHandler
mbed_official 340:28d1f895c6fe 225 TIM7_IRQHandler
mbed_official 340:28d1f895c6fe 226 TIM14_IRQHandler
mbed_official 340:28d1f895c6fe 227 TIM15_IRQHandler
mbed_official 340:28d1f895c6fe 228 TIM16_IRQHandler
mbed_official 340:28d1f895c6fe 229 TIM17_IRQHandler
mbed_official 340:28d1f895c6fe 230 I2C1_IRQHandler
mbed_official 340:28d1f895c6fe 231 I2C2_IRQHandler
mbed_official 340:28d1f895c6fe 232 SPI1_IRQHandler
mbed_official 340:28d1f895c6fe 233 SPI2_IRQHandler
mbed_official 340:28d1f895c6fe 234 USART1_IRQHandler
mbed_official 340:28d1f895c6fe 235 USART2_IRQHandler
mbed_official 340:28d1f895c6fe 236 USART3_8_IRQHandler
mbed_official 340:28d1f895c6fe 237 CEC_CAN_IRQHandler
mbed_official 340:28d1f895c6fe 238
mbed_official 340:28d1f895c6fe 239 B .
mbed_official 340:28d1f895c6fe 240
mbed_official 340:28d1f895c6fe 241 ENDP
mbed_official 340:28d1f895c6fe 242
mbed_official 340:28d1f895c6fe 243 ALIGN
mbed_official 340:28d1f895c6fe 244 END