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_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_IAR/startup_MK20D5.s@445:3312ed629f01
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 2010 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 MemManage_Handler ; MPU Fault Handler
mbed_official 377:95186f86029b 43 DCD BusFault_Handler ; Bus Fault Handler
mbed_official 377:95186f86029b 44 DCD UsageFault_Handler ; Usage Fault Handler
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 DebugMon_Handler ; Debug Monitor Handler
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
mbed_official 377:95186f86029b 56 DCD DMA1_IRQHandler ; 1: DMA Channel 1 transfer complete
mbed_official 377:95186f86029b 57 DCD DMA2_IRQHandler ; 2: DMA Channel 2 transfer complete
mbed_official 377:95186f86029b 58 DCD DMA3_IRQHandler ; 3: DMA Channel 3 transfer complete
mbed_official 377:95186f86029b 59 DCD DMA_ERR_IRQHandler ; 4: DMA Error Interrupt Channels 0-15
mbed_official 377:95186f86029b 60 DCD 0 ; 5: Reserved
mbed_official 377:95186f86029b 61 DCD FLASH_CC_IRQHandler ; 6: Flash memory command complete
mbed_official 377:95186f86029b 62 DCD FLASH_RC_IRQHandler ; 7: Flash memory read collision
mbed_official 377:95186f86029b 63 DCD VLD_IRQHandler ; 8: Low Voltage Detect, Low Voltage Warning
mbed_official 377:95186f86029b 64 DCD LLWU_IRQHandler ; 9: Low Leakage Wakeup
mbed_official 377:95186f86029b 65 DCD WDOG_IRQHandler ;10: WDOG interrupt
mbed_official 377:95186f86029b 66 DCD I2C0_IRQHandler ;11: I2C0 interrupt
mbed_official 377:95186f86029b 67 DCD SPI0_IRQHandler ;12: SPI 0 interrupt
mbed_official 377:95186f86029b 68 DCD I2S0_IRQHandler ;13: I2S 0 interrupt
mbed_official 377:95186f86029b 69 DCD I2S1_IRQHandler ;14: I2S 1 interrupt
mbed_official 377:95186f86029b 70 DCD UART0_LON_IRQHandler ;15: UART 0 LON intertrupt
mbed_official 377:95186f86029b 71 DCD UART0_IRQHandler ;16: UART 0 intertrupt
mbed_official 377:95186f86029b 72 DCD UART0_ERR_IRQHandler ;17: UART 0 error intertrupt
mbed_official 377:95186f86029b 73 DCD UART1_IRQHandler ;18: UART 1 intertrupt
mbed_official 377:95186f86029b 74 DCD UART1_ERR_IRQHandler ;19: UART 1 error intertrupt
mbed_official 377:95186f86029b 75 DCD UART2_IRQHandler ;20: UART 2 intertrupt
mbed_official 377:95186f86029b 76 DCD UART2_ERR_IRQHandler ;21: UART 2 error intertrupt
mbed_official 377:95186f86029b 77 DCD ADC0_IRQHandler ;22: ADC 0 interrupt
mbed_official 377:95186f86029b 78 DCD CMP0_IRQHandler ;23: CMP 0 High-speed comparator interrupt
mbed_official 377:95186f86029b 79 DCD CMP1_IRQHandler ;24: CMP 1 interrupt
mbed_official 377:95186f86029b 80 DCD FTM0_IRQHandler ;25: FTM 0 interrupt
mbed_official 377:95186f86029b 81 DCD FTM1_IRQHandler ;26: FTM 1 interrupt
mbed_official 377:95186f86029b 82 DCD CMT_IRQHandler ;27: CMT intrrupt
mbed_official 377:95186f86029b 83 DCD RTC_ALRM_IRQHandler ;28: RTC Alarm interrupt
mbed_official 377:95186f86029b 84 DCD RTC_SEC_IRQHandler ;29: RTC Sec interrupt
mbed_official 377:95186f86029b 85 DCD PIT0_IRQHandler ;30: PIT 0 interrupt
mbed_official 377:95186f86029b 86 DCD PIT1_IRQHandler ;31: PIT 1 interrupt
mbed_official 377:95186f86029b 87 DCD PIT2_IRQHandler ;32: PIT 2 interrupt
mbed_official 377:95186f86029b 88 DCD PIT3_IRQHandler ;33: PIT 3 interrupt
mbed_official 377:95186f86029b 89 DCD PDB_IRQHandler ;34: PDB interrupt
mbed_official 377:95186f86029b 90 DCD USB_OTG_IRQHandler ;35: USB OTG interrupt
mbed_official 377:95186f86029b 91 DCD USB_CD_IRQHandler ;36: USB Charger Detect interrupt
mbed_official 377:95186f86029b 92 DCD TSI_IRQHandler ;37: TSI interrupt
mbed_official 377:95186f86029b 93 DCD MCG_IRQHandler ;38: MCG interrupt
mbed_official 377:95186f86029b 94 DCD LPT_IRQHandler ;39: LPT interrupt
mbed_official 377:95186f86029b 95 DCD PORTA_IRQHandler ;40: PORT A interrupt
mbed_official 377:95186f86029b 96 DCD PORTB_IRQHandler ;41: PORT B interrupt
mbed_official 377:95186f86029b 97 DCD PORTC_IRQHandler ;42: PORT C interrupt
mbed_official 377:95186f86029b 98 DCD PORTD_IRQHandler ;43: PORT D interrupt
mbed_official 377:95186f86029b 99 DCD PORTE_IRQHandler ;44: PORT E interrupt
mbed_official 377:95186f86029b 100 DCD SW_IRQHandler ;45: Software initiated interrupt
mbed_official 377:95186f86029b 101 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mbed_official 377:95186f86029b 102 ;;Flash Configuration
mbed_official 377:95186f86029b 103 ;;16-byte flash configuration field that stores default protection settings (loaded on reset)
mbed_official 377:95186f86029b 104 ;;and security information that allows the MCU to restrict acces to the FTFL module.
mbed_official 377:95186f86029b 105
mbed_official 377:95186f86029b 106 BackDoorK0 EQU 0xFF
mbed_official 377:95186f86029b 107 BackDoorK1 EQU 0xFF
mbed_official 377:95186f86029b 108 BackDoorK2 EQU 0xFF
mbed_official 377:95186f86029b 109 BackDoorK3 EQU 0xFF
mbed_official 377:95186f86029b 110 BackDoorK4 EQU 0xFF
mbed_official 377:95186f86029b 111 BackDoorK5 EQU 0xFF
mbed_official 377:95186f86029b 112 BackDoorK6 EQU 0xFF
mbed_official 377:95186f86029b 113 BackDoorK7 EQU 0xFF
mbed_official 377:95186f86029b 114
mbed_official 377:95186f86029b 115 nFPROT0 EQU 0x00
mbed_official 377:95186f86029b 116 FPROT0 EQU nFPROT0^0xFF
mbed_official 377:95186f86029b 117
mbed_official 377:95186f86029b 118 nFPROT1 EQU 0x00
mbed_official 377:95186f86029b 119 FPROT1 EQU nFPROT1^0xFF
mbed_official 377:95186f86029b 120
mbed_official 377:95186f86029b 121 nFPROT2 EQU 0x00
mbed_official 377:95186f86029b 122 FPROT2 EQU nFPROT2^0xFF
mbed_official 377:95186f86029b 123
mbed_official 377:95186f86029b 124 nFPROT3 EQU 0x00
mbed_official 377:95186f86029b 125 FPROT3 EQU nFPROT3^0xFF
mbed_official 377:95186f86029b 126
mbed_official 377:95186f86029b 127 nFEPROT EQU 0x00
mbed_official 377:95186f86029b 128 FEPROT EQU nFEPROT^0xFF
mbed_official 377:95186f86029b 129
mbed_official 377:95186f86029b 130 nFDPROT EQU 0x00
mbed_official 377:95186f86029b 131 FDPROT EQU nFDPROT^0xFF
mbed_official 377:95186f86029b 132
mbed_official 377:95186f86029b 133 FOPT EQU 0xFF
mbed_official 377:95186f86029b 134
mbed_official 377:95186f86029b 135 FSEC EQU 0xFE
mbed_official 377:95186f86029b 136 SECTION FlashConfig:CONST:REORDER:ROOT(2)
mbed_official 377:95186f86029b 137 Config:
mbed_official 377:95186f86029b 138 DATA
mbed_official 377:95186f86029b 139 DCB BackDoorK0, BackDoorK1, BackDoorK2, BackDoorK3
mbed_official 377:95186f86029b 140 DCB BackDoorK4, BackDoorK5, BackDoorK6, BackDoorK7
mbed_official 377:95186f86029b 141 DCB FPROT0, FPROT1, FPROT2, FPROT3
mbed_official 377:95186f86029b 142 DCB FSEC, FOPT, FEPROT, FDPROT
mbed_official 377:95186f86029b 143 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mbed_official 377:95186f86029b 144 ;;
mbed_official 377:95186f86029b 145 ;; Default interrupt handlers.
mbed_official 377:95186f86029b 146 ;;
mbed_official 377:95186f86029b 147 THUMB
mbed_official 377:95186f86029b 148 PUBWEAK Reset_Handler
mbed_official 377:95186f86029b 149 SECTION .text:CODE:NOROOT:REORDER(2)
mbed_official 377:95186f86029b 150 Reset_Handler
mbed_official 377:95186f86029b 151
mbed_official 377:95186f86029b 152 LDR R0, =SystemInit
mbed_official 377:95186f86029b 153 BLX R0
mbed_official 377:95186f86029b 154 LDR R0, =__iar_program_start
mbed_official 377:95186f86029b 155 BX R0
mbed_official 377:95186f86029b 156
mbed_official 377:95186f86029b 157 PUBWEAK NMI_Handler
mbed_official 377:95186f86029b 158 PUBWEAK HardFault_Handler
mbed_official 377:95186f86029b 159 PUBWEAK MemManage_Handler
mbed_official 377:95186f86029b 160 PUBWEAK BusFault_Handler
mbed_official 377:95186f86029b 161 PUBWEAK UsageFault_Handler
mbed_official 377:95186f86029b 162 PUBWEAK SVC_Handler
mbed_official 377:95186f86029b 163 PUBWEAK DebugMon_Handler
mbed_official 377:95186f86029b 164 PUBWEAK PendSV_Handler
mbed_official 377:95186f86029b 165 PUBWEAK SysTick_Handler
mbed_official 377:95186f86029b 166 PUBWEAK DMA0_IRQHandler
mbed_official 377:95186f86029b 167 PUBWEAK DMA1_IRQHandler
mbed_official 377:95186f86029b 168 PUBWEAK DMA2_IRQHandler
mbed_official 377:95186f86029b 169 PUBWEAK DMA3_IRQHandler
mbed_official 377:95186f86029b 170 PUBWEAK DMA_ERR_IRQHandler
mbed_official 377:95186f86029b 171 PUBWEAK FLASH_CC_IRQHandler
mbed_official 377:95186f86029b 172 PUBWEAK FLASH_RC_IRQHandler
mbed_official 377:95186f86029b 173 PUBWEAK VLD_IRQHandler
mbed_official 377:95186f86029b 174 PUBWEAK LLWU_IRQHandler
mbed_official 377:95186f86029b 175 PUBWEAK WDOG_IRQHandler
mbed_official 377:95186f86029b 176 PUBWEAK I2C0_IRQHandler
mbed_official 377:95186f86029b 177 PUBWEAK SPI0_IRQHandler
mbed_official 377:95186f86029b 178 PUBWEAK I2S0_IRQHandler
mbed_official 377:95186f86029b 179 PUBWEAK I2S1_IRQHandler
mbed_official 377:95186f86029b 180 PUBWEAK UART0_LON_IRQHandler
mbed_official 377:95186f86029b 181 PUBWEAK UART0_IRQHandler
mbed_official 377:95186f86029b 182 PUBWEAK UART0_ERR_IRQHandler
mbed_official 377:95186f86029b 183 PUBWEAK UART1_IRQHandler
mbed_official 377:95186f86029b 184 PUBWEAK UART1_ERR_IRQHandler
mbed_official 377:95186f86029b 185 PUBWEAK UART2_IRQHandler
mbed_official 377:95186f86029b 186 PUBWEAK UART2_ERR_IRQHandler
mbed_official 377:95186f86029b 187 PUBWEAK ADC0_IRQHandler
mbed_official 377:95186f86029b 188 PUBWEAK CMP0_IRQHandler
mbed_official 377:95186f86029b 189 PUBWEAK CMP1_IRQHandler
mbed_official 377:95186f86029b 190 PUBWEAK FTM0_IRQHandler
mbed_official 377:95186f86029b 191 PUBWEAK FTM1_IRQHandler
mbed_official 377:95186f86029b 192 PUBWEAK CMT_IRQHandler
mbed_official 377:95186f86029b 193 PUBWEAK RTC_ALRM_IRQHandler
mbed_official 377:95186f86029b 194 PUBWEAK RTC_SEC_IRQHandler
mbed_official 377:95186f86029b 195 PUBWEAK PIT0_IRQHandler
mbed_official 377:95186f86029b 196 PUBWEAK PIT1_IRQHandler
mbed_official 377:95186f86029b 197 PUBWEAK PIT2_IRQHandler
mbed_official 377:95186f86029b 198 PUBWEAK PIT3_IRQHandler
mbed_official 377:95186f86029b 199 PUBWEAK PDB_IRQHandler
mbed_official 377:95186f86029b 200 PUBWEAK USB_OTG_IRQHandler
mbed_official 377:95186f86029b 201 PUBWEAK USB_CD_IRQHandler
mbed_official 377:95186f86029b 202 PUBWEAK TSI_IRQHandler
mbed_official 377:95186f86029b 203 PUBWEAK MCG_IRQHandler
mbed_official 377:95186f86029b 204 PUBWEAK LPT_IRQHandler
mbed_official 377:95186f86029b 205 PUBWEAK PORTA_IRQHandler
mbed_official 377:95186f86029b 206 PUBWEAK PORTB_IRQHandler
mbed_official 377:95186f86029b 207 PUBWEAK PORTC_IRQHandler
mbed_official 377:95186f86029b 208 PUBWEAK PORTD_IRQHandler
mbed_official 377:95186f86029b 209 PUBWEAK PORTE_IRQHandler
mbed_official 377:95186f86029b 210 PUBWEAK SW_IRQHandler
mbed_official 377:95186f86029b 211
mbed_official 377:95186f86029b 212 SECTION .text:CODE:REORDER:NOROOT(1)
mbed_official 377:95186f86029b 213 THUMB
mbed_official 377:95186f86029b 214 NMI_Handler
mbed_official 377:95186f86029b 215 HardFault_Handler
mbed_official 377:95186f86029b 216 MemManage_Handler
mbed_official 377:95186f86029b 217 BusFault_Handler
mbed_official 377:95186f86029b 218 UsageFault_Handler
mbed_official 377:95186f86029b 219 SVC_Handler
mbed_official 377:95186f86029b 220 DebugMon_Handler
mbed_official 377:95186f86029b 221 PendSV_Handler
mbed_official 377:95186f86029b 222 SysTick_Handler
mbed_official 377:95186f86029b 223 DMA0_IRQHandler
mbed_official 377:95186f86029b 224 DMA1_IRQHandler
mbed_official 377:95186f86029b 225 DMA2_IRQHandler
mbed_official 377:95186f86029b 226 DMA3_IRQHandler
mbed_official 377:95186f86029b 227 DMA_ERR_IRQHandler
mbed_official 377:95186f86029b 228 FLASH_CC_IRQHandler
mbed_official 377:95186f86029b 229 FLASH_RC_IRQHandler
mbed_official 377:95186f86029b 230 VLD_IRQHandler
mbed_official 377:95186f86029b 231 LLWU_IRQHandler
mbed_official 377:95186f86029b 232 WDOG_IRQHandler
mbed_official 377:95186f86029b 233 I2C0_IRQHandler
mbed_official 377:95186f86029b 234 SPI0_IRQHandler
mbed_official 377:95186f86029b 235 I2S0_IRQHandler
mbed_official 377:95186f86029b 236 I2S1_IRQHandler
mbed_official 377:95186f86029b 237 UART0_LON_IRQHandler
mbed_official 377:95186f86029b 238 UART0_IRQHandler
mbed_official 377:95186f86029b 239 UART0_ERR_IRQHandler
mbed_official 377:95186f86029b 240 UART1_IRQHandler
mbed_official 377:95186f86029b 241 UART1_ERR_IRQHandler
mbed_official 377:95186f86029b 242 UART2_IRQHandler
mbed_official 377:95186f86029b 243 UART2_ERR_IRQHandler
mbed_official 377:95186f86029b 244 ADC0_IRQHandler
mbed_official 377:95186f86029b 245 CMP0_IRQHandler
mbed_official 377:95186f86029b 246 CMP1_IRQHandler
mbed_official 377:95186f86029b 247 FTM0_IRQHandler
mbed_official 377:95186f86029b 248 FTM1_IRQHandler
mbed_official 377:95186f86029b 249 CMT_IRQHandler
mbed_official 377:95186f86029b 250 RTC_ALRM_IRQHandler
mbed_official 377:95186f86029b 251 RTC_SEC_IRQHandler
mbed_official 377:95186f86029b 252 PIT0_IRQHandler
mbed_official 377:95186f86029b 253 PIT1_IRQHandler
mbed_official 377:95186f86029b 254 PIT2_IRQHandler
mbed_official 377:95186f86029b 255 PIT3_IRQHandler
mbed_official 377:95186f86029b 256 PDB_IRQHandler
mbed_official 377:95186f86029b 257 USB_OTG_IRQHandler
mbed_official 377:95186f86029b 258 USB_CD_IRQHandler
mbed_official 377:95186f86029b 259 TSI_IRQHandler
mbed_official 377:95186f86029b 260 MCG_IRQHandler
mbed_official 377:95186f86029b 261 LPT_IRQHandler
mbed_official 377:95186f86029b 262 PORTA_IRQHandler
mbed_official 377:95186f86029b 263 PORTB_IRQHandler
mbed_official 377:95186f86029b 264 PORTC_IRQHandler
mbed_official 377:95186f86029b 265 PORTD_IRQHandler
mbed_official 377:95186f86029b 266 PORTE_IRQHandler
mbed_official 377:95186f86029b 267 SW_IRQHandler
mbed_official 377:95186f86029b 268 Default_Handler
mbed_official 377:95186f86029b 269
mbed_official 377:95186f86029b 270 B Default_Handler
mbed_official 377:95186f86029b 271 END