mbed library sources
Fork of mbed-src by
targets/cmsis/TARGET_STM/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/startup_stm32f10x_md.s@56:99eb381a3269, 2013-12-12 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Dec 12 10:45:05 2013 +0000
- Revision:
- 56:99eb381a3269
- Parent:
- 52:a51c77007319
- Child:
- 70:c1fbde68b492
Synchronized with git revision bd51e4eb73a1706f1d5379ec5cebcbd6d978cb4f
Full URL: https://github.com/mbedmicro/mbed/commit/bd51e4eb73a1706f1d5379ec5cebcbd6d978cb4f/
[NUCLEO_F103RB] Add I2C master, code cleanup, ...
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 56:99eb381a3269 | 1 | ;******************************************************************************* |
mbed_official | 52:a51c77007319 | 2 | ;* File Name : startup_stm32f10x_md.s |
mbed_official | 52:a51c77007319 | 3 | ;* Description : STM32F10x Medium Density Devices vector table for MDK-ARM |
mbed_official | 56:99eb381a3269 | 4 | ;* toolchain + ARM_STD compiler |
mbed_official | 52:a51c77007319 | 5 | ;* <<< Use Configuration Wizard in Context Menu >>> |
mbed_official | 52:a51c77007319 | 6 | ;******************************************************************************* |
mbed_official | 52:a51c77007319 | 7 | ; THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
mbed_official | 52:a51c77007319 | 8 | ; WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
mbed_official | 52:a51c77007319 | 9 | ; AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, |
mbed_official | 52:a51c77007319 | 10 | ; INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE |
mbed_official | 52:a51c77007319 | 11 | ; CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
mbed_official | 52:a51c77007319 | 12 | ; INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
mbed_official | 52:a51c77007319 | 13 | ;******************************************************************************* |
mbed_official | 52:a51c77007319 | 14 | |
mbed_official | 52:a51c77007319 | 15 | __initial_sp EQU 0x20005000 ; Top of RAM |
mbed_official | 52:a51c77007319 | 16 | |
mbed_official | 52:a51c77007319 | 17 | PRESERVE8 |
mbed_official | 52:a51c77007319 | 18 | THUMB |
mbed_official | 52:a51c77007319 | 19 | |
mbed_official | 52:a51c77007319 | 20 | |
mbed_official | 52:a51c77007319 | 21 | ; Vector Table Mapped to Address 0 at Reset |
mbed_official | 52:a51c77007319 | 22 | AREA RESET, DATA, READONLY |
mbed_official | 52:a51c77007319 | 23 | EXPORT __Vectors |
mbed_official | 52:a51c77007319 | 24 | EXPORT __Vectors_End |
mbed_official | 52:a51c77007319 | 25 | EXPORT __Vectors_Size |
mbed_official | 52:a51c77007319 | 26 | |
mbed_official | 52:a51c77007319 | 27 | __Vectors DCD __initial_sp ; Top of Stack |
mbed_official | 52:a51c77007319 | 28 | DCD Reset_Handler ; Reset Handler |
mbed_official | 52:a51c77007319 | 29 | DCD NMI_Handler ; NMI Handler |
mbed_official | 52:a51c77007319 | 30 | DCD HardFault_Handler ; Hard Fault Handler |
mbed_official | 52:a51c77007319 | 31 | DCD MemManage_Handler ; MPU Fault Handler |
mbed_official | 52:a51c77007319 | 32 | DCD BusFault_Handler ; Bus Fault Handler |
mbed_official | 52:a51c77007319 | 33 | DCD UsageFault_Handler ; Usage Fault Handler |
mbed_official | 52:a51c77007319 | 34 | DCD 0 ; Reserved |
mbed_official | 52:a51c77007319 | 35 | DCD 0 ; Reserved |
mbed_official | 52:a51c77007319 | 36 | DCD 0 ; Reserved |
mbed_official | 52:a51c77007319 | 37 | DCD 0 ; Reserved |
mbed_official | 52:a51c77007319 | 38 | DCD SVC_Handler ; SVCall Handler |
mbed_official | 52:a51c77007319 | 39 | DCD DebugMon_Handler ; Debug Monitor Handler |
mbed_official | 52:a51c77007319 | 40 | DCD 0 ; Reserved |
mbed_official | 52:a51c77007319 | 41 | DCD PendSV_Handler ; PendSV Handler |
mbed_official | 52:a51c77007319 | 42 | DCD SysTick_Handler ; SysTick Handler |
mbed_official | 52:a51c77007319 | 43 | |
mbed_official | 52:a51c77007319 | 44 | ; External Interrupts |
mbed_official | 52:a51c77007319 | 45 | DCD WWDG_IRQHandler ; Window Watchdog |
mbed_official | 52:a51c77007319 | 46 | DCD PVD_IRQHandler ; PVD through EXTI Line detect |
mbed_official | 52:a51c77007319 | 47 | DCD TAMPER_IRQHandler ; Tamper |
mbed_official | 52:a51c77007319 | 48 | DCD RTC_IRQHandler ; RTC |
mbed_official | 52:a51c77007319 | 49 | DCD FLASH_IRQHandler ; Flash |
mbed_official | 52:a51c77007319 | 50 | DCD RCC_IRQHandler ; RCC |
mbed_official | 52:a51c77007319 | 51 | DCD EXTI0_IRQHandler ; EXTI Line 0 |
mbed_official | 52:a51c77007319 | 52 | DCD EXTI1_IRQHandler ; EXTI Line 1 |
mbed_official | 52:a51c77007319 | 53 | DCD EXTI2_IRQHandler ; EXTI Line 2 |
mbed_official | 52:a51c77007319 | 54 | DCD EXTI3_IRQHandler ; EXTI Line 3 |
mbed_official | 52:a51c77007319 | 55 | DCD EXTI4_IRQHandler ; EXTI Line 4 |
mbed_official | 52:a51c77007319 | 56 | DCD DMA1_Channel1_IRQHandler ; DMA1 Channel 1 |
mbed_official | 52:a51c77007319 | 57 | DCD DMA1_Channel2_IRQHandler ; DMA1 Channel 2 |
mbed_official | 52:a51c77007319 | 58 | DCD DMA1_Channel3_IRQHandler ; DMA1 Channel 3 |
mbed_official | 52:a51c77007319 | 59 | DCD DMA1_Channel4_IRQHandler ; DMA1 Channel 4 |
mbed_official | 52:a51c77007319 | 60 | DCD DMA1_Channel5_IRQHandler ; DMA1 Channel 5 |
mbed_official | 52:a51c77007319 | 61 | DCD DMA1_Channel6_IRQHandler ; DMA1 Channel 6 |
mbed_official | 52:a51c77007319 | 62 | DCD DMA1_Channel7_IRQHandler ; DMA1 Channel 7 |
mbed_official | 52:a51c77007319 | 63 | DCD ADC1_2_IRQHandler ; ADC1_2 |
mbed_official | 52:a51c77007319 | 64 | DCD USB_HP_CAN1_TX_IRQHandler ; USB High Priority or CAN1 TX |
mbed_official | 52:a51c77007319 | 65 | DCD USB_LP_CAN1_RX0_IRQHandler ; USB Low Priority or CAN1 RX0 |
mbed_official | 52:a51c77007319 | 66 | DCD CAN1_RX1_IRQHandler ; CAN1 RX1 |
mbed_official | 52:a51c77007319 | 67 | DCD CAN1_SCE_IRQHandler ; CAN1 SCE |
mbed_official | 52:a51c77007319 | 68 | DCD EXTI9_5_IRQHandler ; EXTI Line 9..5 |
mbed_official | 52:a51c77007319 | 69 | DCD TIM1_BRK_IRQHandler ; TIM1 Break |
mbed_official | 52:a51c77007319 | 70 | DCD TIM1_UP_IRQHandler ; TIM1 Update |
mbed_official | 52:a51c77007319 | 71 | DCD TIM1_TRG_COM_IRQHandler ; TIM1 Trigger and Commutation |
mbed_official | 52:a51c77007319 | 72 | DCD TIM1_CC_IRQHandler ; TIM1 Capture Compare |
mbed_official | 52:a51c77007319 | 73 | DCD TIM2_IRQHandler ; TIM2 |
mbed_official | 52:a51c77007319 | 74 | DCD TIM3_IRQHandler ; TIM3 |
mbed_official | 52:a51c77007319 | 75 | DCD TIM4_IRQHandler ; TIM4 |
mbed_official | 52:a51c77007319 | 76 | DCD I2C1_EV_IRQHandler ; I2C1 Event |
mbed_official | 52:a51c77007319 | 77 | DCD I2C1_ER_IRQHandler ; I2C1 Error |
mbed_official | 52:a51c77007319 | 78 | DCD I2C2_EV_IRQHandler ; I2C2 Event |
mbed_official | 52:a51c77007319 | 79 | DCD I2C2_ER_IRQHandler ; I2C2 Error |
mbed_official | 52:a51c77007319 | 80 | DCD SPI1_IRQHandler ; SPI1 |
mbed_official | 52:a51c77007319 | 81 | DCD SPI2_IRQHandler ; SPI2 |
mbed_official | 52:a51c77007319 | 82 | DCD USART1_IRQHandler ; USART1 |
mbed_official | 52:a51c77007319 | 83 | DCD USART2_IRQHandler ; USART2 |
mbed_official | 52:a51c77007319 | 84 | DCD USART3_IRQHandler ; USART3 |
mbed_official | 52:a51c77007319 | 85 | DCD EXTI15_10_IRQHandler ; EXTI Line 15..10 |
mbed_official | 52:a51c77007319 | 86 | DCD RTCAlarm_IRQHandler ; RTC Alarm through EXTI Line |
mbed_official | 52:a51c77007319 | 87 | DCD USBWakeUp_IRQHandler ; USB Wakeup from suspend |
mbed_official | 52:a51c77007319 | 88 | __Vectors_End |
mbed_official | 52:a51c77007319 | 89 | |
mbed_official | 52:a51c77007319 | 90 | __Vectors_Size EQU __Vectors_End - __Vectors |
mbed_official | 52:a51c77007319 | 91 | |
mbed_official | 52:a51c77007319 | 92 | AREA |.text|, CODE, READONLY |
mbed_official | 52:a51c77007319 | 93 | |
mbed_official | 52:a51c77007319 | 94 | ; Reset handler |
mbed_official | 52:a51c77007319 | 95 | Reset_Handler PROC |
mbed_official | 52:a51c77007319 | 96 | EXPORT Reset_Handler [WEAK] |
mbed_official | 52:a51c77007319 | 97 | IMPORT __main |
mbed_official | 52:a51c77007319 | 98 | IMPORT SystemInit |
mbed_official | 52:a51c77007319 | 99 | LDR R0, =SystemInit |
mbed_official | 52:a51c77007319 | 100 | BLX R0 |
mbed_official | 52:a51c77007319 | 101 | LDR R0, =__main |
mbed_official | 52:a51c77007319 | 102 | BX R0 |
mbed_official | 52:a51c77007319 | 103 | ENDP |
mbed_official | 52:a51c77007319 | 104 | |
mbed_official | 52:a51c77007319 | 105 | ; Dummy Exception Handlers (infinite loops which can be modified) |
mbed_official | 52:a51c77007319 | 106 | |
mbed_official | 52:a51c77007319 | 107 | NMI_Handler PROC |
mbed_official | 52:a51c77007319 | 108 | EXPORT NMI_Handler [WEAK] |
mbed_official | 52:a51c77007319 | 109 | B . |
mbed_official | 52:a51c77007319 | 110 | ENDP |
mbed_official | 52:a51c77007319 | 111 | HardFault_Handler\ |
mbed_official | 52:a51c77007319 | 112 | PROC |
mbed_official | 52:a51c77007319 | 113 | EXPORT HardFault_Handler [WEAK] |
mbed_official | 52:a51c77007319 | 114 | B . |
mbed_official | 52:a51c77007319 | 115 | ENDP |
mbed_official | 52:a51c77007319 | 116 | MemManage_Handler\ |
mbed_official | 52:a51c77007319 | 117 | PROC |
mbed_official | 52:a51c77007319 | 118 | EXPORT MemManage_Handler [WEAK] |
mbed_official | 52:a51c77007319 | 119 | B . |
mbed_official | 52:a51c77007319 | 120 | ENDP |
mbed_official | 52:a51c77007319 | 121 | BusFault_Handler\ |
mbed_official | 52:a51c77007319 | 122 | PROC |
mbed_official | 52:a51c77007319 | 123 | EXPORT BusFault_Handler [WEAK] |
mbed_official | 52:a51c77007319 | 124 | B . |
mbed_official | 52:a51c77007319 | 125 | ENDP |
mbed_official | 52:a51c77007319 | 126 | UsageFault_Handler\ |
mbed_official | 52:a51c77007319 | 127 | PROC |
mbed_official | 52:a51c77007319 | 128 | EXPORT UsageFault_Handler [WEAK] |
mbed_official | 52:a51c77007319 | 129 | B . |
mbed_official | 52:a51c77007319 | 130 | ENDP |
mbed_official | 52:a51c77007319 | 131 | SVC_Handler PROC |
mbed_official | 52:a51c77007319 | 132 | EXPORT SVC_Handler [WEAK] |
mbed_official | 52:a51c77007319 | 133 | B . |
mbed_official | 52:a51c77007319 | 134 | ENDP |
mbed_official | 52:a51c77007319 | 135 | DebugMon_Handler\ |
mbed_official | 52:a51c77007319 | 136 | PROC |
mbed_official | 52:a51c77007319 | 137 | EXPORT DebugMon_Handler [WEAK] |
mbed_official | 52:a51c77007319 | 138 | B . |
mbed_official | 52:a51c77007319 | 139 | ENDP |
mbed_official | 52:a51c77007319 | 140 | PendSV_Handler PROC |
mbed_official | 52:a51c77007319 | 141 | EXPORT PendSV_Handler [WEAK] |
mbed_official | 52:a51c77007319 | 142 | B . |
mbed_official | 52:a51c77007319 | 143 | ENDP |
mbed_official | 52:a51c77007319 | 144 | SysTick_Handler PROC |
mbed_official | 52:a51c77007319 | 145 | EXPORT SysTick_Handler [WEAK] |
mbed_official | 52:a51c77007319 | 146 | B . |
mbed_official | 52:a51c77007319 | 147 | ENDP |
mbed_official | 52:a51c77007319 | 148 | |
mbed_official | 52:a51c77007319 | 149 | Default_Handler PROC |
mbed_official | 52:a51c77007319 | 150 | |
mbed_official | 52:a51c77007319 | 151 | EXPORT WWDG_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 152 | EXPORT PVD_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 153 | EXPORT TAMPER_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 154 | EXPORT RTC_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 155 | EXPORT FLASH_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 156 | EXPORT RCC_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 157 | EXPORT EXTI0_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 158 | EXPORT EXTI1_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 159 | EXPORT EXTI2_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 160 | EXPORT EXTI3_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 161 | EXPORT EXTI4_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 162 | EXPORT DMA1_Channel1_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 163 | EXPORT DMA1_Channel2_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 164 | EXPORT DMA1_Channel3_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 165 | EXPORT DMA1_Channel4_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 166 | EXPORT DMA1_Channel5_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 167 | EXPORT DMA1_Channel6_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 168 | EXPORT DMA1_Channel7_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 169 | EXPORT ADC1_2_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 170 | EXPORT USB_HP_CAN1_TX_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 171 | EXPORT USB_LP_CAN1_RX0_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 172 | EXPORT CAN1_RX1_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 173 | EXPORT CAN1_SCE_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 174 | EXPORT EXTI9_5_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 175 | EXPORT TIM1_BRK_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 176 | EXPORT TIM1_UP_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 177 | EXPORT TIM1_TRG_COM_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 178 | EXPORT TIM1_CC_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 179 | EXPORT TIM2_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 180 | EXPORT TIM3_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 181 | EXPORT TIM4_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 182 | EXPORT I2C1_EV_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 183 | EXPORT I2C1_ER_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 184 | EXPORT I2C2_EV_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 185 | EXPORT I2C2_ER_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 186 | EXPORT SPI1_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 187 | EXPORT SPI2_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 188 | EXPORT USART1_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 189 | EXPORT USART2_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 190 | EXPORT USART3_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 191 | EXPORT EXTI15_10_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 192 | EXPORT RTCAlarm_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 193 | EXPORT USBWakeUp_IRQHandler [WEAK] |
mbed_official | 52:a51c77007319 | 194 | |
mbed_official | 52:a51c77007319 | 195 | WWDG_IRQHandler |
mbed_official | 52:a51c77007319 | 196 | PVD_IRQHandler |
mbed_official | 52:a51c77007319 | 197 | TAMPER_IRQHandler |
mbed_official | 52:a51c77007319 | 198 | RTC_IRQHandler |
mbed_official | 52:a51c77007319 | 199 | FLASH_IRQHandler |
mbed_official | 52:a51c77007319 | 200 | RCC_IRQHandler |
mbed_official | 52:a51c77007319 | 201 | EXTI0_IRQHandler |
mbed_official | 52:a51c77007319 | 202 | EXTI1_IRQHandler |
mbed_official | 52:a51c77007319 | 203 | EXTI2_IRQHandler |
mbed_official | 52:a51c77007319 | 204 | EXTI3_IRQHandler |
mbed_official | 52:a51c77007319 | 205 | EXTI4_IRQHandler |
mbed_official | 52:a51c77007319 | 206 | DMA1_Channel1_IRQHandler |
mbed_official | 52:a51c77007319 | 207 | DMA1_Channel2_IRQHandler |
mbed_official | 52:a51c77007319 | 208 | DMA1_Channel3_IRQHandler |
mbed_official | 52:a51c77007319 | 209 | DMA1_Channel4_IRQHandler |
mbed_official | 52:a51c77007319 | 210 | DMA1_Channel5_IRQHandler |
mbed_official | 52:a51c77007319 | 211 | DMA1_Channel6_IRQHandler |
mbed_official | 52:a51c77007319 | 212 | DMA1_Channel7_IRQHandler |
mbed_official | 52:a51c77007319 | 213 | ADC1_2_IRQHandler |
mbed_official | 52:a51c77007319 | 214 | USB_HP_CAN1_TX_IRQHandler |
mbed_official | 52:a51c77007319 | 215 | USB_LP_CAN1_RX0_IRQHandler |
mbed_official | 52:a51c77007319 | 216 | CAN1_RX1_IRQHandler |
mbed_official | 52:a51c77007319 | 217 | CAN1_SCE_IRQHandler |
mbed_official | 52:a51c77007319 | 218 | EXTI9_5_IRQHandler |
mbed_official | 52:a51c77007319 | 219 | TIM1_BRK_IRQHandler |
mbed_official | 52:a51c77007319 | 220 | TIM1_UP_IRQHandler |
mbed_official | 52:a51c77007319 | 221 | TIM1_TRG_COM_IRQHandler |
mbed_official | 52:a51c77007319 | 222 | TIM1_CC_IRQHandler |
mbed_official | 52:a51c77007319 | 223 | TIM2_IRQHandler |
mbed_official | 52:a51c77007319 | 224 | TIM3_IRQHandler |
mbed_official | 52:a51c77007319 | 225 | TIM4_IRQHandler |
mbed_official | 52:a51c77007319 | 226 | I2C1_EV_IRQHandler |
mbed_official | 52:a51c77007319 | 227 | I2C1_ER_IRQHandler |
mbed_official | 52:a51c77007319 | 228 | I2C2_EV_IRQHandler |
mbed_official | 52:a51c77007319 | 229 | I2C2_ER_IRQHandler |
mbed_official | 52:a51c77007319 | 230 | SPI1_IRQHandler |
mbed_official | 52:a51c77007319 | 231 | SPI2_IRQHandler |
mbed_official | 52:a51c77007319 | 232 | USART1_IRQHandler |
mbed_official | 52:a51c77007319 | 233 | USART2_IRQHandler |
mbed_official | 52:a51c77007319 | 234 | USART3_IRQHandler |
mbed_official | 52:a51c77007319 | 235 | EXTI15_10_IRQHandler |
mbed_official | 52:a51c77007319 | 236 | RTCAlarm_IRQHandler |
mbed_official | 52:a51c77007319 | 237 | USBWakeUp_IRQHandler |
mbed_official | 52:a51c77007319 | 238 | |
mbed_official | 52:a51c77007319 | 239 | B . |
mbed_official | 52:a51c77007319 | 240 | |
mbed_official | 52:a51c77007319 | 241 | ENDP |
mbed_official | 52:a51c77007319 | 242 | |
mbed_official | 52:a51c77007319 | 243 | ALIGN |
mbed_official | 56:99eb381a3269 | 244 | END |