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_NXP/TARGET_LPC13XX/TOOLCHAIN_IAR/startup_LPC1347.s@398:7a7127adb6e8
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 362:61eea6f544d4 1 /**************************************************
mbed_official 362:61eea6f544d4 2 *
mbed_official 362:61eea6f544d4 3 * Part one of the system initialization code, contains low-level
mbed_official 362:61eea6f544d4 4 * initialization, plain thumb variant.
mbed_official 362:61eea6f544d4 5 *
mbed_official 362:61eea6f544d4 6 * Copyright 2012 IAR Systems. All rights reserved.
mbed_official 362:61eea6f544d4 7 *
mbed_official 362:61eea6f544d4 8 * $Revision: 1106 $
mbed_official 362:61eea6f544d4 9 *
mbed_official 362:61eea6f544d4 10 **************************************************/
mbed_official 362:61eea6f544d4 11
mbed_official 362:61eea6f544d4 12 ;
mbed_official 362:61eea6f544d4 13 ; The modules in this file are included in the libraries, and may be replaced
mbed_official 362:61eea6f544d4 14 ; by any user-defined modules that define the PUBLIC symbol _program_start or
mbed_official 362:61eea6f544d4 15 ; a user defined start symbol.
mbed_official 362:61eea6f544d4 16 ; To override the cstartup defined in the library, simply add your modified
mbed_official 362:61eea6f544d4 17 ; version to the workbench project.
mbed_official 362:61eea6f544d4 18 ;
mbed_official 362:61eea6f544d4 19 ; The vector table is normally located at address 0.
mbed_official 362:61eea6f544d4 20 ; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
mbed_official 362:61eea6f544d4 21 ; The name "__vector_table" has special meaning for C-SPY:
mbed_official 362:61eea6f544d4 22 ; it is where the SP start value is found, and the NVIC vector
mbed_official 362:61eea6f544d4 23 ; table register (VTOR) is initialized to this address if != 0.
mbed_official 362:61eea6f544d4 24 ;
mbed_official 362:61eea6f544d4 25 ; Cortex-M version
mbed_official 362:61eea6f544d4 26 ;
mbed_official 362:61eea6f544d4 27
mbed_official 362:61eea6f544d4 28 MODULE ?cstartup
mbed_official 362:61eea6f544d4 29
mbed_official 362:61eea6f544d4 30 ;; Forward declaration of sections.
mbed_official 362:61eea6f544d4 31 SECTION CSTACK:DATA:NOROOT(3)
mbed_official 362:61eea6f544d4 32
mbed_official 362:61eea6f544d4 33 SECTION .intvec:CODE:NOROOT(2)
mbed_official 362:61eea6f544d4 34
mbed_official 362:61eea6f544d4 35 EXTERN __iar_program_start
mbed_official 398:7a7127adb6e8 36 EXTERN SystemInit
mbed_official 362:61eea6f544d4 37 PUBLIC __vector_table
mbed_official 362:61eea6f544d4 38 PUBLIC __vector_table_0x1c
mbed_official 362:61eea6f544d4 39
mbed_official 362:61eea6f544d4 40 DATA
mbed_official 362:61eea6f544d4 41 __vector_table
mbed_official 362:61eea6f544d4 42 DCD sfe(CSTACK) ; Top of Stack
mbed_official 398:7a7127adb6e8 43 DCD Reset_Handler ; Reset Handler
mbed_official 362:61eea6f544d4 44 DCD NMI_Handler ; NMI Handler
mbed_official 362:61eea6f544d4 45 DCD HardFault_Handler ; Hard Fault Handler
mbed_official 362:61eea6f544d4 46 DCD MemManage_Handler ; MPU Fault Handler
mbed_official 362:61eea6f544d4 47 DCD BusFault_Handler ; Bus Fault Handler
mbed_official 362:61eea6f544d4 48 DCD UsageFault_Handler ; Usage Fault Handler
mbed_official 362:61eea6f544d4 49 __vector_table_0x1c
mbed_official 362:61eea6f544d4 50 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 51 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 52 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 53 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 54 DCD SVC_Handler ; SVCall Handler
mbed_official 362:61eea6f544d4 55 DCD DebugMon_Handler ; Debug Monitor Handler
mbed_official 362:61eea6f544d4 56 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 57 DCD PendSV_Handler ; PendSV Handler
mbed_official 362:61eea6f544d4 58 DCD SysTick_Handler ; SysTick Handler
mbed_official 362:61eea6f544d4 59 DCD FLEX_INT0_IRQHandler ; GPIO pin interrupt 0
mbed_official 362:61eea6f544d4 60 DCD FLEX_INT1_IRQHandler ; GPIO pin interrupt 1
mbed_official 362:61eea6f544d4 61 DCD FLEX_INT2_IRQHandler ; GPIO pin interrupt 2
mbed_official 362:61eea6f544d4 62 DCD FLEX_INT3_IRQHandler ; GPIO pin interrupt 3
mbed_official 362:61eea6f544d4 63 DCD FLEX_INT4_IRQHandler ; GPIO pin interrupt 4
mbed_official 362:61eea6f544d4 64 DCD FLEX_INT5_IRQHandler ; GPIO pin interrupt 5
mbed_official 362:61eea6f544d4 65 DCD FLEX_INT6_IRQHandler ; GPIO pin interrupt 6
mbed_official 362:61eea6f544d4 66 DCD FLEX_INT7_IRQHandler ; GPIO pin interrupt 7
mbed_official 362:61eea6f544d4 67 DCD GINT0_IRQHandler ; GPIO GROUP0 interrupt
mbed_official 362:61eea6f544d4 68 DCD GINT1_IRQHandler ; GPIO GROUP1 interrupt
mbed_official 362:61eea6f544d4 69 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 70 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 71 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 72 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 73 DCD SSP1_IRQHandler ; SSP1 interrupt
mbed_official 362:61eea6f544d4 74 DCD I2C_IRQHandler ; I2C interrupt
mbed_official 362:61eea6f544d4 75 DCD CT16B0_IRQHandler ; CT16B0 Match 0-3, Capture 0
mbed_official 362:61eea6f544d4 76 DCD CT16B1_IRQHandler ; CT16B1 Match 0-3, Capture 0
mbed_official 362:61eea6f544d4 77 DCD CT32B0_IRQHandler ; CT32B0 Match 0-3, Capture 0
mbed_official 362:61eea6f544d4 78 DCD CT32B1_IRQHandler ; CT32B1 Match 0-3, Capture 0
mbed_official 362:61eea6f544d4 79 DCD SSP0_IRQHandler ; SSP0 interrupt
mbed_official 362:61eea6f544d4 80 DCD USART_IRQHandler ; USART interrupt
mbed_official 362:61eea6f544d4 81 DCD USB_IRQHandler ; USB_IRQ interrupt
mbed_official 362:61eea6f544d4 82 DCD USB_FIQHandler ; USB_FIQ interrupt
mbed_official 362:61eea6f544d4 83 DCD ADC_IRQHandler ; ADC interrupt
mbed_official 362:61eea6f544d4 84 DCD WWDT_IRQHandler ; WWDT interrupt
mbed_official 362:61eea6f544d4 85 DCD BOD_IRQHandler ; BOD interrupt
mbed_official 362:61eea6f544d4 86 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 87 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 88 DCD 0 ; Reserved
mbed_official 362:61eea6f544d4 89 DCD USBWakeup_IRQHandler ; USB_WAKEUP interrupt
mbed_official 362:61eea6f544d4 90
mbed_official 362:61eea6f544d4 91 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mbed_official 362:61eea6f544d4 92 ;;
mbed_official 362:61eea6f544d4 93 ;; Default interrupt handlers.
mbed_official 362:61eea6f544d4 94 ;;
mbed_official 398:7a7127adb6e8 95 THUMB
mbed_official 398:7a7127adb6e8 96 PUBWEAK Reset_Handler
mbed_official 398:7a7127adb6e8 97 SECTION .text:CODE:NOROOT:REORDER(2)
mbed_official 398:7a7127adb6e8 98 Reset_Handler
mbed_official 362:61eea6f544d4 99
mbed_official 398:7a7127adb6e8 100 LDR R0, =SystemInit
mbed_official 398:7a7127adb6e8 101 BLX R0
mbed_official 398:7a7127adb6e8 102 LDR R0, =__iar_program_start
mbed_official 398:7a7127adb6e8 103 BX R0
mbed_official 398:7a7127adb6e8 104
mbed_official 362:61eea6f544d4 105 PUBWEAK NMI_Handler
mbed_official 362:61eea6f544d4 106 PUBWEAK HardFault_Handler
mbed_official 362:61eea6f544d4 107 PUBWEAK MemManage_Handler
mbed_official 362:61eea6f544d4 108 PUBWEAK BusFault_Handler
mbed_official 362:61eea6f544d4 109 PUBWEAK UsageFault_Handler
mbed_official 362:61eea6f544d4 110 PUBWEAK SVC_Handler
mbed_official 362:61eea6f544d4 111 PUBWEAK DebugMon_Handler
mbed_official 362:61eea6f544d4 112 PUBWEAK PendSV_Handler
mbed_official 362:61eea6f544d4 113 PUBWEAK SysTick_Handler
mbed_official 362:61eea6f544d4 114 PUBWEAK FLEX_INT0_IRQHandler
mbed_official 362:61eea6f544d4 115 PUBWEAK FLEX_INT1_IRQHandler
mbed_official 362:61eea6f544d4 116 PUBWEAK FLEX_INT2_IRQHandler
mbed_official 362:61eea6f544d4 117 PUBWEAK FLEX_INT3_IRQHandler
mbed_official 362:61eea6f544d4 118 PUBWEAK FLEX_INT4_IRQHandler
mbed_official 362:61eea6f544d4 119 PUBWEAK FLEX_INT5_IRQHandler
mbed_official 362:61eea6f544d4 120 PUBWEAK FLEX_INT6_IRQHandler
mbed_official 362:61eea6f544d4 121 PUBWEAK FLEX_INT7_IRQHandler
mbed_official 362:61eea6f544d4 122 PUBWEAK GINT0_IRQHandler
mbed_official 362:61eea6f544d4 123 PUBWEAK GINT1_IRQHandler
mbed_official 362:61eea6f544d4 124 PUBWEAK SSP1_IRQHandler
mbed_official 362:61eea6f544d4 125 PUBWEAK I2C_IRQHandler
mbed_official 362:61eea6f544d4 126 PUBWEAK CT16B0_IRQHandler
mbed_official 362:61eea6f544d4 127 PUBWEAK CT16B1_IRQHandler
mbed_official 362:61eea6f544d4 128 PUBWEAK CT32B0_IRQHandler
mbed_official 362:61eea6f544d4 129 PUBWEAK CT32B1_IRQHandler
mbed_official 362:61eea6f544d4 130 PUBWEAK SSP0_IRQHandler
mbed_official 362:61eea6f544d4 131 PUBWEAK USART_IRQHandler
mbed_official 362:61eea6f544d4 132 PUBWEAK USB_IRQHandler
mbed_official 362:61eea6f544d4 133 PUBWEAK USB_FIQHandler
mbed_official 362:61eea6f544d4 134 PUBWEAK ADC_IRQHandler
mbed_official 362:61eea6f544d4 135 PUBWEAK WWDT_IRQHandler
mbed_official 362:61eea6f544d4 136 PUBWEAK BOD_IRQHandler
mbed_official 362:61eea6f544d4 137 PUBWEAK USBWakeup_IRQHandler
mbed_official 362:61eea6f544d4 138
mbed_official 362:61eea6f544d4 139 SECTION .text:CODE:REORDER:NOROOT(1)
mbed_official 362:61eea6f544d4 140 THUMB
mbed_official 362:61eea6f544d4 141
mbed_official 362:61eea6f544d4 142 NMI_Handler
mbed_official 362:61eea6f544d4 143 HardFault_Handler
mbed_official 362:61eea6f544d4 144 MemManage_Handler
mbed_official 362:61eea6f544d4 145 BusFault_Handler
mbed_official 362:61eea6f544d4 146 UsageFault_Handler
mbed_official 362:61eea6f544d4 147 SVC_Handler
mbed_official 362:61eea6f544d4 148 DebugMon_Handler
mbed_official 362:61eea6f544d4 149 PendSV_Handler
mbed_official 362:61eea6f544d4 150 SysTick_Handler
mbed_official 362:61eea6f544d4 151 FLEX_INT0_IRQHandler
mbed_official 362:61eea6f544d4 152 FLEX_INT1_IRQHandler
mbed_official 362:61eea6f544d4 153 FLEX_INT2_IRQHandler
mbed_official 362:61eea6f544d4 154 FLEX_INT3_IRQHandler
mbed_official 362:61eea6f544d4 155 FLEX_INT4_IRQHandler
mbed_official 362:61eea6f544d4 156 FLEX_INT5_IRQHandler
mbed_official 362:61eea6f544d4 157 FLEX_INT6_IRQHandler
mbed_official 362:61eea6f544d4 158 FLEX_INT7_IRQHandler
mbed_official 362:61eea6f544d4 159 GINT0_IRQHandler
mbed_official 362:61eea6f544d4 160 GINT1_IRQHandler
mbed_official 362:61eea6f544d4 161 SSP1_IRQHandler
mbed_official 362:61eea6f544d4 162 I2C_IRQHandler
mbed_official 362:61eea6f544d4 163 CT16B0_IRQHandler
mbed_official 362:61eea6f544d4 164 CT16B1_IRQHandler
mbed_official 362:61eea6f544d4 165 CT32B0_IRQHandler
mbed_official 362:61eea6f544d4 166 CT32B1_IRQHandler
mbed_official 362:61eea6f544d4 167 SSP0_IRQHandler
mbed_official 362:61eea6f544d4 168 USART_IRQHandler
mbed_official 362:61eea6f544d4 169 USB_IRQHandler
mbed_official 362:61eea6f544d4 170 USB_FIQHandler
mbed_official 362:61eea6f544d4 171 ADC_IRQHandler
mbed_official 362:61eea6f544d4 172 WWDT_IRQHandler
mbed_official 362:61eea6f544d4 173 BOD_IRQHandler
mbed_official 362:61eea6f544d4 174 USBWakeup_IRQHandler
mbed_official 362:61eea6f544d4 175 Default_Handler
mbed_official 362:61eea6f544d4 176 B Default_Handler
mbed_official 362:61eea6f544d4 177
mbed_official 362:61eea6f544d4 178 END