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