mbed w/ spi bug fig

Dependents:   display-puck

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Thu May 22 20:00:09 2014 +0100
Revision:
205:c41fc65bcfb4
Synchronized with git revision ea4b6f76efab17a3f7d7777b0cc1ef05fec6d1cb

Full URL: https://github.com/mbedmicro/mbed/commit/ea4b6f76efab17a3f7d7777b0cc1ef05fec6d1cb/

[NUCLEO_F072RB] cmsis files

Who changed what in which revision?

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