mbed library sources

Dependents:   Freedman_v2 Nucleo_i2c_OLED_BME280_copy

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Wed Jul 01 08:15:11 2015 +0100
Revision:
577:15494b56c2f3
Parent:
targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_IAR/startup_MKL25Z4.s@377:95186f86029b
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 377:95186f86029b 1 /**************************************************
mbed_official 377:95186f86029b 2 *
mbed_official 377:95186f86029b 3 * Copyright 2012 IAR Systems. All rights reserved.
mbed_official 377:95186f86029b 4 *
mbed_official 377:95186f86029b 5 * $Revision: 16 $
mbed_official 377:95186f86029b 6 *
mbed_official 377:95186f86029b 7 **************************************************/
mbed_official 377:95186f86029b 8
mbed_official 377:95186f86029b 9 ;
mbed_official 377:95186f86029b 10 ; The modules in this file are included in the libraries, and may be replaced
mbed_official 377:95186f86029b 11 ; by any user-defined modules that define the PUBLIC symbol _program_start or
mbed_official 377:95186f86029b 12 ; a user defined start symbol.
mbed_official 377:95186f86029b 13 ; To override the cstartup defined in the library, simply add your modified
mbed_official 377:95186f86029b 14 ; version to the workbench project.
mbed_official 377:95186f86029b 15 ;
mbed_official 377:95186f86029b 16 ; The vector table is normally located at address 0.
mbed_official 377:95186f86029b 17 ; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
mbed_official 377:95186f86029b 18 ; The name "__vector_table" has special meaning for C-SPY:
mbed_official 377:95186f86029b 19 ; it is where the SP start value is found, and the NVIC vector
mbed_official 377:95186f86029b 20 ; table register (VTOR) is initialized to this address if != 0.
mbed_official 377:95186f86029b 21 ;
mbed_official 377:95186f86029b 22 ; Cortex-M version
mbed_official 377:95186f86029b 23 ;
mbed_official 377:95186f86029b 24
mbed_official 377:95186f86029b 25 MODULE ?cstartup
mbed_official 377:95186f86029b 26
mbed_official 377:95186f86029b 27 ;; Forward declaration of sections.
mbed_official 377:95186f86029b 28 SECTION CSTACK:DATA:NOROOT(3)
mbed_official 377:95186f86029b 29
mbed_official 377:95186f86029b 30 SECTION .intvec:CODE:ROOT(2)
mbed_official 377:95186f86029b 31
mbed_official 377:95186f86029b 32 EXTERN __iar_program_start
mbed_official 377:95186f86029b 33 EXTERN SystemInit
mbed_official 377:95186f86029b 34 PUBLIC __vector_table
mbed_official 377:95186f86029b 35
mbed_official 377:95186f86029b 36 DATA
mbed_official 377:95186f86029b 37 __vector_table
mbed_official 377:95186f86029b 38 DCD sfe(CSTACK) ; Top of Stack
mbed_official 377:95186f86029b 39 DCD Reset_Handler ; Reset Handler
mbed_official 377:95186f86029b 40 DCD NMI_Handler ; NMI Handler
mbed_official 377:95186f86029b 41 DCD HardFault_Handler ; Hard Fault Handler
mbed_official 377:95186f86029b 42 DCD 0 ; Reserved
mbed_official 377:95186f86029b 43 DCD 0 ; Reserved
mbed_official 377:95186f86029b 44 DCD 0 ; Reserved
mbed_official 377:95186f86029b 45 DCD 0 ; Reserved
mbed_official 377:95186f86029b 46 DCD 0 ; Reserved
mbed_official 377:95186f86029b 47 DCD 0 ; Reserved
mbed_official 377:95186f86029b 48 DCD 0 ; Reserved
mbed_official 377:95186f86029b 49 DCD SVC_Handler ; SVCall Handler
mbed_official 377:95186f86029b 50 DCD 0 ; Reserved
mbed_official 377:95186f86029b 51 DCD 0 ; Reserved
mbed_official 377:95186f86029b 52 DCD PendSV_Handler ; PendSV Handler
mbed_official 377:95186f86029b 53 DCD SysTick_Handler ; SysTick Handler
mbed_official 377:95186f86029b 54 ; External Interrupts
mbed_official 377:95186f86029b 55 DCD DMA0_IRQHandler ; 0: DMA Channel 0 transfer complete intertrupt
mbed_official 377:95186f86029b 56 DCD DMA1_IRQHandler ; 1: DMA Channel 1 transfer complete intertrupt
mbed_official 377:95186f86029b 57 DCD DMA2_IRQHandler ; 2: DMA Channel 2 transfer complete intertrupt
mbed_official 377:95186f86029b 58 DCD DMA3_IRQHandler ; 3: DMA Channel 3 transfer complete intertrupt
mbed_official 377:95186f86029b 59 DCD 0 ; 4: Reserved DMA Channel 5 transfer complete intertrupt
mbed_official 377:95186f86029b 60 DCD FTFA_IRQHandler ; 5: FTFA
mbed_official 377:95186f86029b 61 DCD LVD_LVW_IRQHandler ; 6: Low-voltage detect, low-voltage warning
mbed_official 377:95186f86029b 62 DCD LLW_IRQHandler ; 7: Low Leakage Wakeup
mbed_official 377:95186f86029b 63 DCD I2C0_IRQHandler ; 8: IIC 0 interrupt
mbed_official 377:95186f86029b 64 DCD I2C1_IRQHandler ; 9: IIC 1 intertrupt
mbed_official 377:95186f86029b 65 DCD SPI0_IRQHandler ;10: SPI0 intertrupt
mbed_official 377:95186f86029b 66 DCD SPI1_IRQHandler ;11: SPI1 intertrupt
mbed_official 377:95186f86029b 67 DCD UART0_IRQHandler ;12: UART 0 status and error intertrupt
mbed_official 377:95186f86029b 68 DCD UART1_IRQHandler ;13: UART 1 status and error intertrupt
mbed_official 377:95186f86029b 69 DCD UART2_IRQHandler ;14: UART 2 status and error intertrupt
mbed_official 377:95186f86029b 70 DCD ADC0_IRQHandler ;15: ADC 0 interrupt
mbed_official 377:95186f86029b 71 DCD CMP0_IRQHandler ;16: CMP 0 interrupt
mbed_official 377:95186f86029b 72 DCD TPM0_IRQHandler ;17: TPM 0 interrupt
mbed_official 377:95186f86029b 73 DCD TPM1_IRQHandler ;18: TPM 1 interrupt
mbed_official 377:95186f86029b 74 DCD TPM2_IRQHandler ;19: TPM 2 interrupt
mbed_official 377:95186f86029b 75 DCD RTC_IRQHandler ;20: RTC Alarm interrupt
mbed_official 377:95186f86029b 76 DCD RTC_Seconds_IRQHandler ;21: RTC Seconds interrupt
mbed_official 377:95186f86029b 77 DCD PIT_IRQHandler ;22: PIT Single interrupt vector for all channels
mbed_official 377:95186f86029b 78 DCD 0 ;23: Reserved
mbed_official 377:95186f86029b 79 DCD USB0_IRQHandler ;24: USB OTG intertrupt
mbed_official 377:95186f86029b 80 DCD DAC0_IRQHandler ;25: UART 0 status intertrupt
mbed_official 377:95186f86029b 81 DCD TSI0_IRQHandler ;26: TSI 0 interrupt
mbed_official 377:95186f86029b 82 DCD MCG_IRQHandler ;27: MCG intertrupt
mbed_official 377:95186f86029b 83 DCD LPTimer_IRQHandler ;28: LPTMR0 intertrupt
mbed_official 377:95186f86029b 84 DCD 0 ;29: Reserved
mbed_official 377:95186f86029b 85 DCD PORTA_IRQHandler ;30: PORT A interrupt
mbed_official 377:95186f86029b 86 DCD PORTD_IRQHandler ;31: PORT D interrupt
mbed_official 377:95186f86029b 87 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mbed_official 377:95186f86029b 88 ;;Flash Configuration
mbed_official 377:95186f86029b 89 ;;16-byte flash configuration field that stores default protection settings (loaded on reset)
mbed_official 377:95186f86029b 90 ;;and security information that allows the MCU to restrict acces to the FTFL module.
mbed_official 377:95186f86029b 91
mbed_official 377:95186f86029b 92 BackDoorK0 EQU 0xFF
mbed_official 377:95186f86029b 93 BackDoorK1 EQU 0xFF
mbed_official 377:95186f86029b 94 BackDoorK2 EQU 0xFF
mbed_official 377:95186f86029b 95 BackDoorK3 EQU 0xFF
mbed_official 377:95186f86029b 96 BackDoorK4 EQU 0xFF
mbed_official 377:95186f86029b 97 BackDoorK5 EQU 0xFF
mbed_official 377:95186f86029b 98 BackDoorK6 EQU 0xFF
mbed_official 377:95186f86029b 99 BackDoorK7 EQU 0xFF
mbed_official 377:95186f86029b 100
mbed_official 377:95186f86029b 101 nFPROT0 EQU 0x00
mbed_official 377:95186f86029b 102 FPROT0 EQU nFPROT0^0xFF
mbed_official 377:95186f86029b 103
mbed_official 377:95186f86029b 104 nFPROT1 EQU 0x00
mbed_official 377:95186f86029b 105 FPROT1 EQU nFPROT1^0xFF
mbed_official 377:95186f86029b 106
mbed_official 377:95186f86029b 107 nFPROT2 EQU 0x00
mbed_official 377:95186f86029b 108 FPROT2 EQU nFPROT2^0xFF
mbed_official 377:95186f86029b 109
mbed_official 377:95186f86029b 110 nFPROT3 EQU 0x00
mbed_official 377:95186f86029b 111 FPROT3 EQU nFPROT3^0xFF
mbed_official 377:95186f86029b 112
mbed_official 377:95186f86029b 113 FOPT EQU 0xFF
mbed_official 377:95186f86029b 114
mbed_official 377:95186f86029b 115 FSEC EQU 0xFE
mbed_official 377:95186f86029b 116 SECTION FlashConfig:CONST:REORDER:ROOT(2)
mbed_official 377:95186f86029b 117 Config:
mbed_official 377:95186f86029b 118 DATA
mbed_official 377:95186f86029b 119 DCB BackDoorK0, BackDoorK1, BackDoorK2, BackDoorK3
mbed_official 377:95186f86029b 120 DCB BackDoorK4, BackDoorK5, BackDoorK6, BackDoorK7
mbed_official 377:95186f86029b 121 DCB FPROT0, FPROT1, FPROT2, FPROT3
mbed_official 377:95186f86029b 122 DCB FSEC, FOPT, 0xFF, 0xFF
mbed_official 377:95186f86029b 123
mbed_official 377:95186f86029b 124
mbed_official 377:95186f86029b 125 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mbed_official 377:95186f86029b 126 ;;
mbed_official 377:95186f86029b 127 ;; Default interrupt handlers.
mbed_official 377:95186f86029b 128 ;;
mbed_official 377:95186f86029b 129 THUMB
mbed_official 377:95186f86029b 130 PUBWEAK Reset_Handler
mbed_official 377:95186f86029b 131 SECTION .text:CODE:NOROOT:REORDER(2)
mbed_official 377:95186f86029b 132 Reset_Handler
mbed_official 377:95186f86029b 133
mbed_official 377:95186f86029b 134 LDR R0, =SystemInit
mbed_official 377:95186f86029b 135 BLX R0
mbed_official 377:95186f86029b 136 LDR R0, =__iar_program_start
mbed_official 377:95186f86029b 137 BX R0
mbed_official 377:95186f86029b 138
mbed_official 377:95186f86029b 139 PUBWEAK NMI_Handler
mbed_official 377:95186f86029b 140 PUBWEAK HardFault_Handler
mbed_official 377:95186f86029b 141 PUBWEAK SVC_Handler
mbed_official 377:95186f86029b 142 PUBWEAK PendSV_Handler
mbed_official 377:95186f86029b 143 PUBWEAK SysTick_Handler
mbed_official 377:95186f86029b 144 PUBWEAK DMA0_IRQHandler
mbed_official 377:95186f86029b 145 PUBWEAK DMA1_IRQHandler
mbed_official 377:95186f86029b 146 PUBWEAK DMA2_IRQHandler
mbed_official 377:95186f86029b 147 PUBWEAK DMA3_IRQHandler
mbed_official 377:95186f86029b 148 PUBWEAK FTFA_IRQHandler
mbed_official 377:95186f86029b 149 PUBWEAK LVD_LVW_IRQHandler
mbed_official 377:95186f86029b 150 PUBWEAK LLW_IRQHandler
mbed_official 377:95186f86029b 151 PUBWEAK I2C0_IRQHandler
mbed_official 377:95186f86029b 152 PUBWEAK I2C1_IRQHandler
mbed_official 377:95186f86029b 153 PUBWEAK SPI0_IRQHandler
mbed_official 377:95186f86029b 154 PUBWEAK SPI1_IRQHandler
mbed_official 377:95186f86029b 155 PUBWEAK UART0_IRQHandler
mbed_official 377:95186f86029b 156 PUBWEAK UART1_IRQHandler
mbed_official 377:95186f86029b 157 PUBWEAK UART2_IRQHandler
mbed_official 377:95186f86029b 158 PUBWEAK ADC0_IRQHandler
mbed_official 377:95186f86029b 159 PUBWEAK CMP0_IRQHandler
mbed_official 377:95186f86029b 160 PUBWEAK TPM0_IRQHandler
mbed_official 377:95186f86029b 161 PUBWEAK TPM1_IRQHandler
mbed_official 377:95186f86029b 162 PUBWEAK TPM2_IRQHandler
mbed_official 377:95186f86029b 163 PUBWEAK RTC_IRQHandler
mbed_official 377:95186f86029b 164 PUBWEAK RTC_Seconds_IRQHandler
mbed_official 377:95186f86029b 165 PUBWEAK PIT_IRQHandler
mbed_official 377:95186f86029b 166 PUBWEAK USB0_IRQHandler
mbed_official 377:95186f86029b 167 PUBWEAK DAC0_IRQHandler
mbed_official 377:95186f86029b 168 PUBWEAK TSI0_IRQHandler
mbed_official 377:95186f86029b 169 PUBWEAK MCG_IRQHandler
mbed_official 377:95186f86029b 170 PUBWEAK LPTimer_IRQHandler
mbed_official 377:95186f86029b 171 PUBWEAK PORTA_IRQHandler
mbed_official 377:95186f86029b 172 PUBWEAK PORTD_IRQHandler
mbed_official 377:95186f86029b 173
mbed_official 377:95186f86029b 174 SECTION .text:CODE:REORDER:NOROOT(1)
mbed_official 377:95186f86029b 175 THUMB
mbed_official 377:95186f86029b 176 NMI_Handler
mbed_official 377:95186f86029b 177 HardFault_Handler
mbed_official 377:95186f86029b 178 SVC_Handler
mbed_official 377:95186f86029b 179 PendSV_Handler
mbed_official 377:95186f86029b 180 SysTick_Handler
mbed_official 377:95186f86029b 181 DMA0_IRQHandler
mbed_official 377:95186f86029b 182 DMA1_IRQHandler
mbed_official 377:95186f86029b 183 DMA2_IRQHandler
mbed_official 377:95186f86029b 184 DMA3_IRQHandler
mbed_official 377:95186f86029b 185 FTFA_IRQHandler
mbed_official 377:95186f86029b 186 LVD_LVW_IRQHandler
mbed_official 377:95186f86029b 187 LLW_IRQHandler
mbed_official 377:95186f86029b 188 I2C0_IRQHandler
mbed_official 377:95186f86029b 189 I2C1_IRQHandler
mbed_official 377:95186f86029b 190 SPI0_IRQHandler
mbed_official 377:95186f86029b 191 SPI1_IRQHandler
mbed_official 377:95186f86029b 192 UART0_IRQHandler
mbed_official 377:95186f86029b 193 UART1_IRQHandler
mbed_official 377:95186f86029b 194 UART2_IRQHandler
mbed_official 377:95186f86029b 195 ADC0_IRQHandler
mbed_official 377:95186f86029b 196 CMP0_IRQHandler
mbed_official 377:95186f86029b 197 TPM0_IRQHandler
mbed_official 377:95186f86029b 198 TPM1_IRQHandler
mbed_official 377:95186f86029b 199 TPM2_IRQHandler
mbed_official 377:95186f86029b 200 RTC_IRQHandler
mbed_official 377:95186f86029b 201 RTC_Seconds_IRQHandler
mbed_official 377:95186f86029b 202 PIT_IRQHandler
mbed_official 377:95186f86029b 203 USB0_IRQHandler
mbed_official 377:95186f86029b 204 DAC0_IRQHandler
mbed_official 377:95186f86029b 205 TSI0_IRQHandler
mbed_official 377:95186f86029b 206 MCG_IRQHandler
mbed_official 377:95186f86029b 207 LPTimer_IRQHandler
mbed_official 377:95186f86029b 208 PORTA_IRQHandler
mbed_official 377:95186f86029b 209 PORTD_IRQHandler
mbed_official 377:95186f86029b 210 Default_Handler
mbed_official 377:95186f86029b 211
mbed_official 377:95186f86029b 212 B Default_Handler
mbed_official 377:95186f86029b 213 END