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:
Mon Jul 20 09:00:09 2015 +0100
Revision:
593:78ee8643776a
Parent:
577:15494b56c2f3
Synchronized with git revision a68b724d07788e6389ea4d52c622aad767953758

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

[Silicon Labs] Bring EFM32 HAL up to date

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 525:c320967f86b9 1 ;/**************************************************************************//**
mbed_official 525:c320967f86b9 2 ; * @file startup_efm32zg.s
mbed_official 525:c320967f86b9 3 ; * @brief CMSIS Core Device Startup File for
mbed_official 525:c320967f86b9 4 ; * Silicon Labs EFM32ZG Device Series
mbed_official 525:c320967f86b9 5 ; * @version 3.20.6
mbed_official 525:c320967f86b9 6 ; * @date 03. February 2012
mbed_official 525:c320967f86b9 7 ; *
mbed_official 525:c320967f86b9 8 ; * @note
mbed_official 525:c320967f86b9 9 ; * Copyright (C) 2012 ARM Limited. All rights reserved.
mbed_official 525:c320967f86b9 10 ; *
mbed_official 525:c320967f86b9 11 ; * @par
mbed_official 525:c320967f86b9 12 ; * ARM Limited (ARM) is supplying this software for use with Cortex-M
mbed_official 525:c320967f86b9 13 ; * processor based microcontrollers. This file can be freely distributed
mbed_official 525:c320967f86b9 14 ; * within development tools that are supporting such ARM based processors.
mbed_official 525:c320967f86b9 15 ; *
mbed_official 525:c320967f86b9 16 ; * @par
mbed_official 525:c320967f86b9 17 ; * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
mbed_official 525:c320967f86b9 18 ; * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
mbed_official 525:c320967f86b9 19 ; * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
mbed_official 525:c320967f86b9 20 ; * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
mbed_official 525:c320967f86b9 21 ; * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
mbed_official 525:c320967f86b9 22 ; *
mbed_official 525:c320967f86b9 23 ; ******************************************************************************/
mbed_official 525:c320967f86b9 24 ;/*
mbed_official 525:c320967f86b9 25 ;//-------- <<< Use Configuration Wizard in Context Menu >>> ------------------
mbed_official 525:c320967f86b9 26 ;*/
mbed_official 525:c320967f86b9 27
mbed_official 525:c320967f86b9 28 ; <h> Stack Configuration
mbed_official 525:c320967f86b9 29 ; <o> Stack Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 525:c320967f86b9 30 ; </h>
mbed_official 525:c320967f86b9 31
mbed_official 535:35ad5cbb2f6a 32 Stack_Size EQU 0x00000200
mbed_official 525:c320967f86b9 33
mbed_official 525:c320967f86b9 34 AREA STACK, NOINIT, READWRITE, ALIGN=3
mbed_official 525:c320967f86b9 35 Stack_Mem SPACE Stack_Size
mbed_official 593:78ee8643776a 36 __initial_sp EQU 0x20001000
mbed_official 525:c320967f86b9 37
mbed_official 525:c320967f86b9 38
mbed_official 525:c320967f86b9 39 ; <h> Heap Configuration
mbed_official 525:c320967f86b9 40 ; <o> Heap Size (in Bytes) <0x0-0xFFFFFFFF:8>
mbed_official 525:c320967f86b9 41 ; </h>
mbed_official 525:c320967f86b9 42
mbed_official 525:c320967f86b9 43 Heap_Size EQU 0x0
mbed_official 525:c320967f86b9 44
mbed_official 525:c320967f86b9 45 AREA HEAP, NOINIT, READWRITE, ALIGN=3
mbed_official 525:c320967f86b9 46 __heap_base
mbed_official 525:c320967f86b9 47 Heap_Mem SPACE Heap_Size
mbed_official 525:c320967f86b9 48 __heap_limit
mbed_official 525:c320967f86b9 49
mbed_official 525:c320967f86b9 50
mbed_official 525:c320967f86b9 51 PRESERVE8
mbed_official 525:c320967f86b9 52 THUMB
mbed_official 525:c320967f86b9 53
mbed_official 525:c320967f86b9 54
mbed_official 525:c320967f86b9 55 ; Vector Table Mapped to Address 0 at Reset
mbed_official 525:c320967f86b9 56
mbed_official 525:c320967f86b9 57 AREA RESET, DATA, READONLY, ALIGN=8
mbed_official 525:c320967f86b9 58 EXPORT __Vectors
mbed_official 525:c320967f86b9 59 EXPORT __Vectors_End
mbed_official 525:c320967f86b9 60 EXPORT __Vectors_Size
mbed_official 525:c320967f86b9 61
mbed_official 525:c320967f86b9 62 __Vectors DCD __initial_sp ; Top of Stack
mbed_official 525:c320967f86b9 63 DCD Reset_Handler ; Reset Handler
mbed_official 525:c320967f86b9 64 DCD NMI_Handler ; NMI Handler
mbed_official 525:c320967f86b9 65 DCD HardFault_Handler ; Hard Fault Handler
mbed_official 525:c320967f86b9 66 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 67 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 68 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 69 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 70 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 71 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 72 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 73 DCD SVC_Handler ; SVCall Handler
mbed_official 525:c320967f86b9 74 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 75 DCD 0 ; Reserved
mbed_official 525:c320967f86b9 76 DCD PendSV_Handler ; PendSV Handler
mbed_official 525:c320967f86b9 77 DCD SysTick_Handler ; SysTick Handler
mbed_official 525:c320967f86b9 78
mbed_official 525:c320967f86b9 79 ; External Interrupts
mbed_official 525:c320967f86b9 80
mbed_official 525:c320967f86b9 81 DCD DMA_IRQHandler ; 0: DMA Interrupt
mbed_official 525:c320967f86b9 82 DCD GPIO_EVEN_IRQHandler ; 1: GPIO_EVEN Interrupt
mbed_official 525:c320967f86b9 83 DCD TIMER0_IRQHandler ; 2: TIMER0 Interrupt
mbed_official 525:c320967f86b9 84 DCD ACMP0_IRQHandler ; 3: ACMP0 Interrupt
mbed_official 525:c320967f86b9 85 DCD ADC0_IRQHandler ; 4: ADC0 Interrupt
mbed_official 525:c320967f86b9 86 DCD I2C0_IRQHandler ; 5: I2C0 Interrupt
mbed_official 525:c320967f86b9 87 DCD GPIO_ODD_IRQHandler ; 6: GPIO_ODD Interrupt
mbed_official 525:c320967f86b9 88 DCD TIMER1_IRQHandler ; 7: TIMER1 Interrupt
mbed_official 525:c320967f86b9 89 DCD USART1_RX_IRQHandler ; 8: USART1_RX Interrupt
mbed_official 525:c320967f86b9 90 DCD USART1_TX_IRQHandler ; 9: USART1_TX Interrupt
mbed_official 525:c320967f86b9 91 DCD LEUART0_IRQHandler ; 10: LEUART0 Interrupt
mbed_official 525:c320967f86b9 92 DCD PCNT0_IRQHandler ; 11: PCNT0 Interrupt
mbed_official 525:c320967f86b9 93 DCD RTC_IRQHandler ; 12: RTC Interrupt
mbed_official 525:c320967f86b9 94 DCD CMU_IRQHandler ; 13: CMU Interrupt
mbed_official 525:c320967f86b9 95 DCD VCMP_IRQHandler ; 14: VCMP Interrupt
mbed_official 525:c320967f86b9 96 DCD MSC_IRQHandler ; 15: MSC Interrupt
mbed_official 525:c320967f86b9 97 DCD AES_IRQHandler ; 16: AES Interrupt
mbed_official 525:c320967f86b9 98
mbed_official 525:c320967f86b9 99 __Vectors_End
mbed_official 525:c320967f86b9 100 __Vectors_Size EQU __Vectors_End - __Vectors
mbed_official 525:c320967f86b9 101
mbed_official 525:c320967f86b9 102 AREA |.text|, CODE, READONLY
mbed_official 525:c320967f86b9 103
mbed_official 525:c320967f86b9 104
mbed_official 525:c320967f86b9 105 ; Reset Handler
mbed_official 525:c320967f86b9 106
mbed_official 525:c320967f86b9 107 Reset_Handler PROC
mbed_official 525:c320967f86b9 108 EXPORT Reset_Handler [WEAK]
mbed_official 525:c320967f86b9 109 IMPORT SystemInit
mbed_official 525:c320967f86b9 110 IMPORT __main
mbed_official 525:c320967f86b9 111 LDR R0, =SystemInit
mbed_official 525:c320967f86b9 112 BLX R0
mbed_official 525:c320967f86b9 113 LDR R0, =__main
mbed_official 525:c320967f86b9 114 BX R0
mbed_official 525:c320967f86b9 115 ENDP
mbed_official 525:c320967f86b9 116
mbed_official 525:c320967f86b9 117
mbed_official 525:c320967f86b9 118 ; Dummy Exception Handlers (infinite loops which can be modified)
mbed_official 525:c320967f86b9 119
mbed_official 525:c320967f86b9 120 NMI_Handler PROC
mbed_official 525:c320967f86b9 121 EXPORT NMI_Handler [WEAK]
mbed_official 525:c320967f86b9 122 B .
mbed_official 525:c320967f86b9 123 ENDP
mbed_official 525:c320967f86b9 124 HardFault_Handler\
mbed_official 525:c320967f86b9 125 PROC
mbed_official 525:c320967f86b9 126 EXPORT HardFault_Handler [WEAK]
mbed_official 525:c320967f86b9 127 B .
mbed_official 525:c320967f86b9 128 ENDP
mbed_official 525:c320967f86b9 129 SVC_Handler PROC
mbed_official 525:c320967f86b9 130 EXPORT SVC_Handler [WEAK]
mbed_official 525:c320967f86b9 131 B .
mbed_official 525:c320967f86b9 132 ENDP
mbed_official 525:c320967f86b9 133 PendSV_Handler PROC
mbed_official 525:c320967f86b9 134 EXPORT PendSV_Handler [WEAK]
mbed_official 525:c320967f86b9 135 B .
mbed_official 525:c320967f86b9 136 ENDP
mbed_official 525:c320967f86b9 137 SysTick_Handler PROC
mbed_official 525:c320967f86b9 138 EXPORT SysTick_Handler [WEAK]
mbed_official 525:c320967f86b9 139 B .
mbed_official 525:c320967f86b9 140 ENDP
mbed_official 525:c320967f86b9 141
mbed_official 525:c320967f86b9 142 Default_Handler PROC
mbed_official 525:c320967f86b9 143 EXPORT DMA_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 144 EXPORT GPIO_EVEN_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 145 EXPORT TIMER0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 146 EXPORT ACMP0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 147 EXPORT ADC0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 148 EXPORT I2C0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 149 EXPORT GPIO_ODD_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 150 EXPORT TIMER1_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 151 EXPORT USART1_RX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 152 EXPORT USART1_TX_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 153 EXPORT LEUART0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 154 EXPORT PCNT0_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 155 EXPORT RTC_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 156 EXPORT CMU_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 157 EXPORT VCMP_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 158 EXPORT MSC_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 159 EXPORT AES_IRQHandler [WEAK]
mbed_official 525:c320967f86b9 160
mbed_official 525:c320967f86b9 161
mbed_official 525:c320967f86b9 162 DMA_IRQHandler
mbed_official 525:c320967f86b9 163 GPIO_EVEN_IRQHandler
mbed_official 525:c320967f86b9 164 TIMER0_IRQHandler
mbed_official 525:c320967f86b9 165 ACMP0_IRQHandler
mbed_official 525:c320967f86b9 166 ADC0_IRQHandler
mbed_official 525:c320967f86b9 167 I2C0_IRQHandler
mbed_official 525:c320967f86b9 168 GPIO_ODD_IRQHandler
mbed_official 525:c320967f86b9 169 TIMER1_IRQHandler
mbed_official 525:c320967f86b9 170 USART1_RX_IRQHandler
mbed_official 525:c320967f86b9 171 USART1_TX_IRQHandler
mbed_official 525:c320967f86b9 172 LEUART0_IRQHandler
mbed_official 525:c320967f86b9 173 PCNT0_IRQHandler
mbed_official 525:c320967f86b9 174 RTC_IRQHandler
mbed_official 525:c320967f86b9 175 CMU_IRQHandler
mbed_official 525:c320967f86b9 176 VCMP_IRQHandler
mbed_official 525:c320967f86b9 177 MSC_IRQHandler
mbed_official 525:c320967f86b9 178 AES_IRQHandler
mbed_official 525:c320967f86b9 179
mbed_official 525:c320967f86b9 180
mbed_official 525:c320967f86b9 181 B .
mbed_official 525:c320967f86b9 182
mbed_official 525:c320967f86b9 183 ENDP
mbed_official 525:c320967f86b9 184
mbed_official 525:c320967f86b9 185 ALIGN
mbed_official 525:c320967f86b9 186
mbed_official 525:c320967f86b9 187 ; User Initial Stack & Heap
mbed_official 525:c320967f86b9 188
mbed_official 525:c320967f86b9 189 EXPORT __initial_sp
mbed_official 525:c320967f86b9 190 EXPORT __heap_base
mbed_official 525:c320967f86b9 191 EXPORT __heap_limit
mbed_official 525:c320967f86b9 192
mbed_official 525:c320967f86b9 193 END