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_KLXX/TARGET_KL05Z/TOOLCHAIN_IAR/startup_MKL05Z4.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
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 0 ; 9: Reserved
mbed_official 377:95186f86029b 65 DCD SPI0_IRQHandler ;10: SPI0 intertrupt
mbed_official 377:95186f86029b 66 DCD 0 ;11: Reserved
mbed_official 377:95186f86029b 67 DCD UART0_IRQHandler ;12: UART 0 status and error intertrupt
mbed_official 377:95186f86029b 68 DCD 0 ;13: Reserved
mbed_official 377:95186f86029b 69 DCD 0 ;14: Reserved
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 0 ;19: Reserved
mbed_official 377:95186f86029b 75 DCD RTC_IRQHandler ;20: RTC 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 0 ;24: Reserved
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: LPTimer interrupt
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 PORTB_IRQHandler ;31: PORT B 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 ;; Default interrupt handlers.
mbed_official 377:95186f86029b 126 ;;
mbed_official 377:95186f86029b 127 THUMB
mbed_official 377:95186f86029b 128 PUBWEAK Reset_Handler
mbed_official 377:95186f86029b 129 SECTION .text:CODE:NOROOT:REORDER(2)
mbed_official 377:95186f86029b 130 Reset_Handler
mbed_official 377:95186f86029b 131
mbed_official 377:95186f86029b 132 LDR R0, =SystemInit
mbed_official 377:95186f86029b 133 BLX R0
mbed_official 377:95186f86029b 134 LDR R0, =__iar_program_start
mbed_official 377:95186f86029b 135 BX R0
mbed_official 377:95186f86029b 136
mbed_official 377:95186f86029b 137 PUBWEAK NMI_Handler
mbed_official 377:95186f86029b 138 PUBWEAK HardFault_Handler
mbed_official 377:95186f86029b 139 PUBWEAK SVC_Handler
mbed_official 377:95186f86029b 140 PUBWEAK PendSV_Handler
mbed_official 377:95186f86029b 141 PUBWEAK SysTick_Handler
mbed_official 377:95186f86029b 142 PUBWEAK DMA0_IRQHandler
mbed_official 377:95186f86029b 143 PUBWEAK DMA1_IRQHandler
mbed_official 377:95186f86029b 144 PUBWEAK DMA2_IRQHandler
mbed_official 377:95186f86029b 145 PUBWEAK DMA3_IRQHandler
mbed_official 377:95186f86029b 146 PUBWEAK FTFA_IRQHandler
mbed_official 377:95186f86029b 147 PUBWEAK LVD_LVW_IRQHandler
mbed_official 377:95186f86029b 148 PUBWEAK LLW_IRQHandler
mbed_official 377:95186f86029b 149 PUBWEAK I2C0_IRQHandler
mbed_official 377:95186f86029b 150 PUBWEAK SPI0_IRQHandler
mbed_official 377:95186f86029b 151 PUBWEAK UART0_IRQHandler
mbed_official 377:95186f86029b 152 PUBWEAK ADC0_IRQHandler
mbed_official 377:95186f86029b 153 PUBWEAK CMP0_IRQHandler
mbed_official 377:95186f86029b 154 PUBWEAK TPM0_IRQHandler
mbed_official 377:95186f86029b 155 PUBWEAK TPM1_IRQHandler
mbed_official 377:95186f86029b 156 PUBWEAK RTC_IRQHandler
mbed_official 377:95186f86029b 157 PUBWEAK RTC_Seconds_IRQHandler
mbed_official 377:95186f86029b 158 PUBWEAK PIT_IRQHandler
mbed_official 377:95186f86029b 159 PUBWEAK DAC0_IRQHandler
mbed_official 377:95186f86029b 160 PUBWEAK TSI0_IRQHandler
mbed_official 377:95186f86029b 161 PUBWEAK MCG_IRQHandler
mbed_official 377:95186f86029b 162 PUBWEAK LPTimer_IRQHandler
mbed_official 377:95186f86029b 163 PUBWEAK PORTA_IRQHandler
mbed_official 377:95186f86029b 164 PUBWEAK PORTB_IRQHandler
mbed_official 377:95186f86029b 165
mbed_official 377:95186f86029b 166 SECTION .text:CODE:REORDER:NOROOT(1)
mbed_official 377:95186f86029b 167 THUMB
mbed_official 377:95186f86029b 168 NMI_Handler
mbed_official 377:95186f86029b 169 HardFault_Handler
mbed_official 377:95186f86029b 170 SVC_Handler
mbed_official 377:95186f86029b 171 PendSV_Handler
mbed_official 377:95186f86029b 172 SysTick_Handler
mbed_official 377:95186f86029b 173 DMA0_IRQHandler
mbed_official 377:95186f86029b 174 DMA1_IRQHandler
mbed_official 377:95186f86029b 175 DMA2_IRQHandler
mbed_official 377:95186f86029b 176 DMA3_IRQHandler
mbed_official 377:95186f86029b 177 FTFA_IRQHandler
mbed_official 377:95186f86029b 178 LVD_LVW_IRQHandler
mbed_official 377:95186f86029b 179 LLW_IRQHandler
mbed_official 377:95186f86029b 180 I2C0_IRQHandler
mbed_official 377:95186f86029b 181 SPI0_IRQHandler
mbed_official 377:95186f86029b 182 UART0_IRQHandler
mbed_official 377:95186f86029b 183 ADC0_IRQHandler
mbed_official 377:95186f86029b 184 CMP0_IRQHandler
mbed_official 377:95186f86029b 185 TPM0_IRQHandler
mbed_official 377:95186f86029b 186 TPM1_IRQHandler
mbed_official 377:95186f86029b 187 RTC_IRQHandler
mbed_official 377:95186f86029b 188 RTC_Seconds_IRQHandler
mbed_official 377:95186f86029b 189 PIT_IRQHandler
mbed_official 377:95186f86029b 190 DAC0_IRQHandler
mbed_official 377:95186f86029b 191 TSI0_IRQHandler
mbed_official 377:95186f86029b 192 MCG_IRQHandler
mbed_official 377:95186f86029b 193 LPTimer_IRQHandler
mbed_official 377:95186f86029b 194 PORTA_IRQHandler
mbed_official 377:95186f86029b 195 PORTB_IRQHandler
mbed_official 377:95186f86029b 196 Default_Handler
mbed_official 377:95186f86029b 197
mbed_official 377:95186f86029b 198 B Default_Handler
mbed_official 377:95186f86029b 199 END