mbed SDK library sources

Fork of mbed-src by mbed official

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:
Tue Jan 07 11:00:05 2014 +0000
Revision:
70:c1fbde68b492
Parent:
56:99eb381a3269
Synchronized with git revision 3f438a307904431f2782db3c8fa49946b9fc1d85

Full URL: https://github.com/mbedmicro/mbed/commit/3f438a307904431f2782db3c8fa49946b9fc1d85/

[NUCLEO_F103RB] license text changed + sleep hal updated

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 70:c1fbde68b492 1 ; STM32F10x Medium Density Devices vector table for MDK ARM_STD toolchain
mbed_official 70:c1fbde68b492 2 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mbed_official 70:c1fbde68b492 3 ; Copyright (c) 2014, STMicroelectronics
mbed_official 70:c1fbde68b492 4 ; All rights reserved.
mbed_official 70:c1fbde68b492 5 ;
mbed_official 70:c1fbde68b492 6 ; Redistribution and use in source and binary forms, with or without
mbed_official 70:c1fbde68b492 7 ; modification, are permitted provided that the following conditions are met:
mbed_official 70:c1fbde68b492 8 ;
mbed_official 70:c1fbde68b492 9 ; 1. Redistributions of source code must retain the above copyright notice,
mbed_official 70:c1fbde68b492 10 ; this list of conditions and the following disclaimer.
mbed_official 70:c1fbde68b492 11 ; 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 70:c1fbde68b492 12 ; this list of conditions and the following disclaimer in the documentation
mbed_official 70:c1fbde68b492 13 ; and/or other materials provided with the distribution.
mbed_official 70:c1fbde68b492 14 ; 3. Neither the name of STMicroelectronics nor the names of its contributors
mbed_official 70:c1fbde68b492 15 ; may be used to endorse or promote products derived from this software
mbed_official 70:c1fbde68b492 16 ; without specific prior written permission.
mbed_official 70:c1fbde68b492 17 ;
mbed_official 70:c1fbde68b492 18 ; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
mbed_official 70:c1fbde68b492 19 ; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
mbed_official 70:c1fbde68b492 20 ; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
mbed_official 70:c1fbde68b492 21 ; DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
mbed_official 70:c1fbde68b492 22 ; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 70:c1fbde68b492 23 ; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
mbed_official 70:c1fbde68b492 24 ; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
mbed_official 70:c1fbde68b492 25 ; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
mbed_official 70:c1fbde68b492 26 ; OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
mbed_official 70:c1fbde68b492 27 ; OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
mbed_official 70:c1fbde68b492 28 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mbed_official 52:a51c77007319 29
mbed_official 52:a51c77007319 30 __initial_sp EQU 0x20005000 ; Top of RAM
mbed_official 52:a51c77007319 31
mbed_official 52:a51c77007319 32 PRESERVE8
mbed_official 52:a51c77007319 33 THUMB
mbed_official 52:a51c77007319 34
mbed_official 52:a51c77007319 35
mbed_official 52:a51c77007319 36 ; Vector Table Mapped to Address 0 at Reset
mbed_official 52:a51c77007319 37 AREA RESET, DATA, READONLY
mbed_official 52:a51c77007319 38 EXPORT __Vectors
mbed_official 52:a51c77007319 39 EXPORT __Vectors_End
mbed_official 52:a51c77007319 40 EXPORT __Vectors_Size
mbed_official 52:a51c77007319 41
mbed_official 52:a51c77007319 42 __Vectors DCD __initial_sp ; Top of Stack
mbed_official 52:a51c77007319 43 DCD Reset_Handler ; Reset Handler
mbed_official 52:a51c77007319 44 DCD NMI_Handler ; NMI Handler
mbed_official 52:a51c77007319 45 DCD HardFault_Handler ; Hard Fault Handler
mbed_official 52:a51c77007319 46 DCD MemManage_Handler ; MPU Fault Handler
mbed_official 52:a51c77007319 47 DCD BusFault_Handler ; Bus Fault Handler
mbed_official 52:a51c77007319 48 DCD UsageFault_Handler ; Usage Fault Handler
mbed_official 52:a51c77007319 49 DCD 0 ; Reserved
mbed_official 52:a51c77007319 50 DCD 0 ; Reserved
mbed_official 52:a51c77007319 51 DCD 0 ; Reserved
mbed_official 52:a51c77007319 52 DCD 0 ; Reserved
mbed_official 52:a51c77007319 53 DCD SVC_Handler ; SVCall Handler
mbed_official 52:a51c77007319 54 DCD DebugMon_Handler ; Debug Monitor Handler
mbed_official 52:a51c77007319 55 DCD 0 ; Reserved
mbed_official 52:a51c77007319 56 DCD PendSV_Handler ; PendSV Handler
mbed_official 52:a51c77007319 57 DCD SysTick_Handler ; SysTick Handler
mbed_official 52:a51c77007319 58
mbed_official 52:a51c77007319 59 ; External Interrupts
mbed_official 52:a51c77007319 60 DCD WWDG_IRQHandler ; Window Watchdog
mbed_official 52:a51c77007319 61 DCD PVD_IRQHandler ; PVD through EXTI Line detect
mbed_official 52:a51c77007319 62 DCD TAMPER_IRQHandler ; Tamper
mbed_official 52:a51c77007319 63 DCD RTC_IRQHandler ; RTC
mbed_official 52:a51c77007319 64 DCD FLASH_IRQHandler ; Flash
mbed_official 52:a51c77007319 65 DCD RCC_IRQHandler ; RCC
mbed_official 52:a51c77007319 66 DCD EXTI0_IRQHandler ; EXTI Line 0
mbed_official 52:a51c77007319 67 DCD EXTI1_IRQHandler ; EXTI Line 1
mbed_official 52:a51c77007319 68 DCD EXTI2_IRQHandler ; EXTI Line 2
mbed_official 52:a51c77007319 69 DCD EXTI3_IRQHandler ; EXTI Line 3
mbed_official 52:a51c77007319 70 DCD EXTI4_IRQHandler ; EXTI Line 4
mbed_official 52:a51c77007319 71 DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1
mbed_official 52:a51c77007319 72 DCD DMA1_Channel2_IRQHandler ; DMA1 Channel 2
mbed_official 52:a51c77007319 73 DCD DMA1_Channel3_IRQHandler ; DMA1 Channel 3
mbed_official 52:a51c77007319 74 DCD DMA1_Channel4_IRQHandler ; DMA1 Channel 4
mbed_official 52:a51c77007319 75 DCD DMA1_Channel5_IRQHandler ; DMA1 Channel 5
mbed_official 52:a51c77007319 76 DCD DMA1_Channel6_IRQHandler ; DMA1 Channel 6
mbed_official 52:a51c77007319 77 DCD DMA1_Channel7_IRQHandler ; DMA1 Channel 7
mbed_official 52:a51c77007319 78 DCD ADC1_2_IRQHandler ; ADC1_2
mbed_official 52:a51c77007319 79 DCD USB_HP_CAN1_TX_IRQHandler ; USB High Priority or CAN1 TX
mbed_official 52:a51c77007319 80 DCD USB_LP_CAN1_RX0_IRQHandler ; USB Low Priority or CAN1 RX0
mbed_official 52:a51c77007319 81 DCD CAN1_RX1_IRQHandler ; CAN1 RX1
mbed_official 52:a51c77007319 82 DCD CAN1_SCE_IRQHandler ; CAN1 SCE
mbed_official 52:a51c77007319 83 DCD EXTI9_5_IRQHandler ; EXTI Line 9..5
mbed_official 52:a51c77007319 84 DCD TIM1_BRK_IRQHandler ; TIM1 Break
mbed_official 52:a51c77007319 85 DCD TIM1_UP_IRQHandler ; TIM1 Update
mbed_official 52:a51c77007319 86 DCD TIM1_TRG_COM_IRQHandler ; TIM1 Trigger and Commutation
mbed_official 52:a51c77007319 87 DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare
mbed_official 52:a51c77007319 88 DCD TIM2_IRQHandler ; TIM2
mbed_official 52:a51c77007319 89 DCD TIM3_IRQHandler ; TIM3
mbed_official 52:a51c77007319 90 DCD TIM4_IRQHandler ; TIM4
mbed_official 52:a51c77007319 91 DCD I2C1_EV_IRQHandler ; I2C1 Event
mbed_official 52:a51c77007319 92 DCD I2C1_ER_IRQHandler ; I2C1 Error
mbed_official 52:a51c77007319 93 DCD I2C2_EV_IRQHandler ; I2C2 Event
mbed_official 52:a51c77007319 94 DCD I2C2_ER_IRQHandler ; I2C2 Error
mbed_official 52:a51c77007319 95 DCD SPI1_IRQHandler ; SPI1
mbed_official 52:a51c77007319 96 DCD SPI2_IRQHandler ; SPI2
mbed_official 52:a51c77007319 97 DCD USART1_IRQHandler ; USART1
mbed_official 52:a51c77007319 98 DCD USART2_IRQHandler ; USART2
mbed_official 52:a51c77007319 99 DCD USART3_IRQHandler ; USART3
mbed_official 52:a51c77007319 100 DCD EXTI15_10_IRQHandler ; EXTI Line 15..10
mbed_official 52:a51c77007319 101 DCD RTCAlarm_IRQHandler ; RTC Alarm through EXTI Line
mbed_official 52:a51c77007319 102 DCD USBWakeUp_IRQHandler ; USB Wakeup from suspend
mbed_official 52:a51c77007319 103 __Vectors_End
mbed_official 52:a51c77007319 104
mbed_official 52:a51c77007319 105 __Vectors_Size EQU __Vectors_End - __Vectors
mbed_official 52:a51c77007319 106
mbed_official 52:a51c77007319 107 AREA |.text|, CODE, READONLY
mbed_official 52:a51c77007319 108
mbed_official 52:a51c77007319 109 ; Reset handler
mbed_official 52:a51c77007319 110 Reset_Handler PROC
mbed_official 52:a51c77007319 111 EXPORT Reset_Handler [WEAK]
mbed_official 52:a51c77007319 112 IMPORT __main
mbed_official 52:a51c77007319 113 IMPORT SystemInit
mbed_official 52:a51c77007319 114 LDR R0, =SystemInit
mbed_official 52:a51c77007319 115 BLX R0
mbed_official 52:a51c77007319 116 LDR R0, =__main
mbed_official 52:a51c77007319 117 BX R0
mbed_official 52:a51c77007319 118 ENDP
mbed_official 52:a51c77007319 119
mbed_official 52:a51c77007319 120 ; Dummy Exception Handlers (infinite loops which can be modified)
mbed_official 52:a51c77007319 121
mbed_official 52:a51c77007319 122 NMI_Handler PROC
mbed_official 52:a51c77007319 123 EXPORT NMI_Handler [WEAK]
mbed_official 52:a51c77007319 124 B .
mbed_official 52:a51c77007319 125 ENDP
mbed_official 52:a51c77007319 126 HardFault_Handler\
mbed_official 52:a51c77007319 127 PROC
mbed_official 52:a51c77007319 128 EXPORT HardFault_Handler [WEAK]
mbed_official 52:a51c77007319 129 B .
mbed_official 52:a51c77007319 130 ENDP
mbed_official 52:a51c77007319 131 MemManage_Handler\
mbed_official 52:a51c77007319 132 PROC
mbed_official 52:a51c77007319 133 EXPORT MemManage_Handler [WEAK]
mbed_official 52:a51c77007319 134 B .
mbed_official 52:a51c77007319 135 ENDP
mbed_official 52:a51c77007319 136 BusFault_Handler\
mbed_official 52:a51c77007319 137 PROC
mbed_official 52:a51c77007319 138 EXPORT BusFault_Handler [WEAK]
mbed_official 52:a51c77007319 139 B .
mbed_official 52:a51c77007319 140 ENDP
mbed_official 52:a51c77007319 141 UsageFault_Handler\
mbed_official 52:a51c77007319 142 PROC
mbed_official 52:a51c77007319 143 EXPORT UsageFault_Handler [WEAK]
mbed_official 52:a51c77007319 144 B .
mbed_official 52:a51c77007319 145 ENDP
mbed_official 52:a51c77007319 146 SVC_Handler PROC
mbed_official 52:a51c77007319 147 EXPORT SVC_Handler [WEAK]
mbed_official 52:a51c77007319 148 B .
mbed_official 52:a51c77007319 149 ENDP
mbed_official 52:a51c77007319 150 DebugMon_Handler\
mbed_official 52:a51c77007319 151 PROC
mbed_official 52:a51c77007319 152 EXPORT DebugMon_Handler [WEAK]
mbed_official 52:a51c77007319 153 B .
mbed_official 52:a51c77007319 154 ENDP
mbed_official 52:a51c77007319 155 PendSV_Handler PROC
mbed_official 52:a51c77007319 156 EXPORT PendSV_Handler [WEAK]
mbed_official 52:a51c77007319 157 B .
mbed_official 52:a51c77007319 158 ENDP
mbed_official 52:a51c77007319 159 SysTick_Handler PROC
mbed_official 52:a51c77007319 160 EXPORT SysTick_Handler [WEAK]
mbed_official 52:a51c77007319 161 B .
mbed_official 52:a51c77007319 162 ENDP
mbed_official 52:a51c77007319 163
mbed_official 52:a51c77007319 164 Default_Handler PROC
mbed_official 52:a51c77007319 165
mbed_official 52:a51c77007319 166 EXPORT WWDG_IRQHandler [WEAK]
mbed_official 52:a51c77007319 167 EXPORT PVD_IRQHandler [WEAK]
mbed_official 52:a51c77007319 168 EXPORT TAMPER_IRQHandler [WEAK]
mbed_official 52:a51c77007319 169 EXPORT RTC_IRQHandler [WEAK]
mbed_official 52:a51c77007319 170 EXPORT FLASH_IRQHandler [WEAK]
mbed_official 52:a51c77007319 171 EXPORT RCC_IRQHandler [WEAK]
mbed_official 52:a51c77007319 172 EXPORT EXTI0_IRQHandler [WEAK]
mbed_official 52:a51c77007319 173 EXPORT EXTI1_IRQHandler [WEAK]
mbed_official 52:a51c77007319 174 EXPORT EXTI2_IRQHandler [WEAK]
mbed_official 52:a51c77007319 175 EXPORT EXTI3_IRQHandler [WEAK]
mbed_official 52:a51c77007319 176 EXPORT EXTI4_IRQHandler [WEAK]
mbed_official 52:a51c77007319 177 EXPORT DMA1_Channel1_IRQHandler [WEAK]
mbed_official 52:a51c77007319 178 EXPORT DMA1_Channel2_IRQHandler [WEAK]
mbed_official 52:a51c77007319 179 EXPORT DMA1_Channel3_IRQHandler [WEAK]
mbed_official 52:a51c77007319 180 EXPORT DMA1_Channel4_IRQHandler [WEAK]
mbed_official 52:a51c77007319 181 EXPORT DMA1_Channel5_IRQHandler [WEAK]
mbed_official 52:a51c77007319 182 EXPORT DMA1_Channel6_IRQHandler [WEAK]
mbed_official 52:a51c77007319 183 EXPORT DMA1_Channel7_IRQHandler [WEAK]
mbed_official 52:a51c77007319 184 EXPORT ADC1_2_IRQHandler [WEAK]
mbed_official 52:a51c77007319 185 EXPORT USB_HP_CAN1_TX_IRQHandler [WEAK]
mbed_official 52:a51c77007319 186 EXPORT USB_LP_CAN1_RX0_IRQHandler [WEAK]
mbed_official 52:a51c77007319 187 EXPORT CAN1_RX1_IRQHandler [WEAK]
mbed_official 52:a51c77007319 188 EXPORT CAN1_SCE_IRQHandler [WEAK]
mbed_official 52:a51c77007319 189 EXPORT EXTI9_5_IRQHandler [WEAK]
mbed_official 52:a51c77007319 190 EXPORT TIM1_BRK_IRQHandler [WEAK]
mbed_official 52:a51c77007319 191 EXPORT TIM1_UP_IRQHandler [WEAK]
mbed_official 52:a51c77007319 192 EXPORT TIM1_TRG_COM_IRQHandler [WEAK]
mbed_official 52:a51c77007319 193 EXPORT TIM1_CC_IRQHandler [WEAK]
mbed_official 52:a51c77007319 194 EXPORT TIM2_IRQHandler [WEAK]
mbed_official 52:a51c77007319 195 EXPORT TIM3_IRQHandler [WEAK]
mbed_official 52:a51c77007319 196 EXPORT TIM4_IRQHandler [WEAK]
mbed_official 52:a51c77007319 197 EXPORT I2C1_EV_IRQHandler [WEAK]
mbed_official 52:a51c77007319 198 EXPORT I2C1_ER_IRQHandler [WEAK]
mbed_official 52:a51c77007319 199 EXPORT I2C2_EV_IRQHandler [WEAK]
mbed_official 52:a51c77007319 200 EXPORT I2C2_ER_IRQHandler [WEAK]
mbed_official 52:a51c77007319 201 EXPORT SPI1_IRQHandler [WEAK]
mbed_official 52:a51c77007319 202 EXPORT SPI2_IRQHandler [WEAK]
mbed_official 52:a51c77007319 203 EXPORT USART1_IRQHandler [WEAK]
mbed_official 52:a51c77007319 204 EXPORT USART2_IRQHandler [WEAK]
mbed_official 52:a51c77007319 205 EXPORT USART3_IRQHandler [WEAK]
mbed_official 52:a51c77007319 206 EXPORT EXTI15_10_IRQHandler [WEAK]
mbed_official 52:a51c77007319 207 EXPORT RTCAlarm_IRQHandler [WEAK]
mbed_official 52:a51c77007319 208 EXPORT USBWakeUp_IRQHandler [WEAK]
mbed_official 52:a51c77007319 209
mbed_official 52:a51c77007319 210 WWDG_IRQHandler
mbed_official 52:a51c77007319 211 PVD_IRQHandler
mbed_official 52:a51c77007319 212 TAMPER_IRQHandler
mbed_official 52:a51c77007319 213 RTC_IRQHandler
mbed_official 52:a51c77007319 214 FLASH_IRQHandler
mbed_official 52:a51c77007319 215 RCC_IRQHandler
mbed_official 52:a51c77007319 216 EXTI0_IRQHandler
mbed_official 52:a51c77007319 217 EXTI1_IRQHandler
mbed_official 52:a51c77007319 218 EXTI2_IRQHandler
mbed_official 52:a51c77007319 219 EXTI3_IRQHandler
mbed_official 52:a51c77007319 220 EXTI4_IRQHandler
mbed_official 52:a51c77007319 221 DMA1_Channel1_IRQHandler
mbed_official 52:a51c77007319 222 DMA1_Channel2_IRQHandler
mbed_official 52:a51c77007319 223 DMA1_Channel3_IRQHandler
mbed_official 52:a51c77007319 224 DMA1_Channel4_IRQHandler
mbed_official 52:a51c77007319 225 DMA1_Channel5_IRQHandler
mbed_official 52:a51c77007319 226 DMA1_Channel6_IRQHandler
mbed_official 52:a51c77007319 227 DMA1_Channel7_IRQHandler
mbed_official 52:a51c77007319 228 ADC1_2_IRQHandler
mbed_official 52:a51c77007319 229 USB_HP_CAN1_TX_IRQHandler
mbed_official 52:a51c77007319 230 USB_LP_CAN1_RX0_IRQHandler
mbed_official 52:a51c77007319 231 CAN1_RX1_IRQHandler
mbed_official 52:a51c77007319 232 CAN1_SCE_IRQHandler
mbed_official 52:a51c77007319 233 EXTI9_5_IRQHandler
mbed_official 52:a51c77007319 234 TIM1_BRK_IRQHandler
mbed_official 52:a51c77007319 235 TIM1_UP_IRQHandler
mbed_official 52:a51c77007319 236 TIM1_TRG_COM_IRQHandler
mbed_official 52:a51c77007319 237 TIM1_CC_IRQHandler
mbed_official 52:a51c77007319 238 TIM2_IRQHandler
mbed_official 52:a51c77007319 239 TIM3_IRQHandler
mbed_official 52:a51c77007319 240 TIM4_IRQHandler
mbed_official 52:a51c77007319 241 I2C1_EV_IRQHandler
mbed_official 52:a51c77007319 242 I2C1_ER_IRQHandler
mbed_official 52:a51c77007319 243 I2C2_EV_IRQHandler
mbed_official 52:a51c77007319 244 I2C2_ER_IRQHandler
mbed_official 52:a51c77007319 245 SPI1_IRQHandler
mbed_official 52:a51c77007319 246 SPI2_IRQHandler
mbed_official 52:a51c77007319 247 USART1_IRQHandler
mbed_official 52:a51c77007319 248 USART2_IRQHandler
mbed_official 52:a51c77007319 249 USART3_IRQHandler
mbed_official 52:a51c77007319 250 EXTI15_10_IRQHandler
mbed_official 52:a51c77007319 251 RTCAlarm_IRQHandler
mbed_official 52:a51c77007319 252 USBWakeUp_IRQHandler
mbed_official 52:a51c77007319 253
mbed_official 52:a51c77007319 254 B .
mbed_official 52:a51c77007319 255
mbed_official 52:a51c77007319 256 ENDP
mbed_official 52:a51c77007319 257
mbed_official 52:a51c77007319 258 ALIGN
mbed_official 56:99eb381a3269 259 END