Mouse code for the MacroRat
mbed-dev/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/device/TOOLCHAIN_ARM_MICRO/startup_SAMR21.s@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | ;/***************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 2 | ; * @file startup_SAMR21.s |
sahilmgandhi | 18:6a4db94011d3 | 3 | ; * @brief CMSIS Cortex-M0+ Core Device Startup File for |
sahilmgandhi | 18:6a4db94011d3 | 4 | ; * Atmel SAMR21 Device Series |
sahilmgandhi | 18:6a4db94011d3 | 5 | ; * @version V1.00 |
sahilmgandhi | 18:6a4db94011d3 | 6 | ; * @date 24. February 2014 |
sahilmgandhi | 18:6a4db94011d3 | 7 | ; * |
sahilmgandhi | 18:6a4db94011d3 | 8 | ; * @note |
sahilmgandhi | 18:6a4db94011d3 | 9 | ; * Copyright (C) 2014 ARM Limited. All rights reserved. |
sahilmgandhi | 18:6a4db94011d3 | 10 | ; * |
sahilmgandhi | 18:6a4db94011d3 | 11 | ; * @par |
sahilmgandhi | 18:6a4db94011d3 | 12 | ; * ARM Limited (ARM) is supplying this software for use with Cortex-M |
sahilmgandhi | 18:6a4db94011d3 | 13 | ; * processor based microcontrollers. This file can be freely distributed |
sahilmgandhi | 18:6a4db94011d3 | 14 | ; * within development tools that are supporting such ARM based processors. |
sahilmgandhi | 18:6a4db94011d3 | 15 | ; * |
sahilmgandhi | 18:6a4db94011d3 | 16 | ; * @par |
sahilmgandhi | 18:6a4db94011d3 | 17 | ; * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
sahilmgandhi | 18:6a4db94011d3 | 18 | ; * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
sahilmgandhi | 18:6a4db94011d3 | 19 | ; * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
sahilmgandhi | 18:6a4db94011d3 | 20 | ; * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR |
sahilmgandhi | 18:6a4db94011d3 | 21 | ; * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
sahilmgandhi | 18:6a4db94011d3 | 22 | ; * |
sahilmgandhi | 18:6a4db94011d3 | 23 | ; ******************************************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 24 | __initial_sp EQU 0x20008000 ; Top of RAM |
sahilmgandhi | 18:6a4db94011d3 | 25 | |
sahilmgandhi | 18:6a4db94011d3 | 26 | PRESERVE8 |
sahilmgandhi | 18:6a4db94011d3 | 27 | THUMB |
sahilmgandhi | 18:6a4db94011d3 | 28 | |
sahilmgandhi | 18:6a4db94011d3 | 29 | |
sahilmgandhi | 18:6a4db94011d3 | 30 | ; Vector Table Mapped to Address 0 at Reset |
sahilmgandhi | 18:6a4db94011d3 | 31 | |
sahilmgandhi | 18:6a4db94011d3 | 32 | AREA RESET, DATA, READONLY |
sahilmgandhi | 18:6a4db94011d3 | 33 | EXPORT __Vectors |
sahilmgandhi | 18:6a4db94011d3 | 34 | EXPORT __Vectors_End |
sahilmgandhi | 18:6a4db94011d3 | 35 | EXPORT __Vectors_Size |
sahilmgandhi | 18:6a4db94011d3 | 36 | |
sahilmgandhi | 18:6a4db94011d3 | 37 | __Vectors DCD __initial_sp ; Top of Stack |
sahilmgandhi | 18:6a4db94011d3 | 38 | DCD Reset_Handler ; Reset Handler |
sahilmgandhi | 18:6a4db94011d3 | 39 | DCD NMI_Handler ; NMI Handler |
sahilmgandhi | 18:6a4db94011d3 | 40 | DCD HardFault_Handler ; Hard Fault Handler |
sahilmgandhi | 18:6a4db94011d3 | 41 | DCD 0 ; Reserved |
sahilmgandhi | 18:6a4db94011d3 | 42 | DCD 0 ; Reserved |
sahilmgandhi | 18:6a4db94011d3 | 43 | DCD 0 ; Reserved |
sahilmgandhi | 18:6a4db94011d3 | 44 | DCD 0 ; Reserved |
sahilmgandhi | 18:6a4db94011d3 | 45 | DCD 0 ; Reserved |
sahilmgandhi | 18:6a4db94011d3 | 46 | DCD 0 ; Reserved |
sahilmgandhi | 18:6a4db94011d3 | 47 | DCD 0 ; Reserved |
sahilmgandhi | 18:6a4db94011d3 | 48 | DCD SVC_Handler ; SVCall Handler |
sahilmgandhi | 18:6a4db94011d3 | 49 | DCD 0 ; Reserved |
sahilmgandhi | 18:6a4db94011d3 | 50 | DCD 0 ; Reserved |
sahilmgandhi | 18:6a4db94011d3 | 51 | DCD PendSV_Handler ; PendSV Handler |
sahilmgandhi | 18:6a4db94011d3 | 52 | DCD SysTick_Handler ; SysTick Handler |
sahilmgandhi | 18:6a4db94011d3 | 53 | |
sahilmgandhi | 18:6a4db94011d3 | 54 | ; External Interrupts |
sahilmgandhi | 18:6a4db94011d3 | 55 | DCD PM_Handler ; 0 Power Manager |
sahilmgandhi | 18:6a4db94011d3 | 56 | DCD SYSCTRL_Handler ; 1 System Control |
sahilmgandhi | 18:6a4db94011d3 | 57 | DCD WDT_Handler ; 2 Watchdog Timer |
sahilmgandhi | 18:6a4db94011d3 | 58 | DCD RTC_Handler ; 3 Real-Time Counter |
sahilmgandhi | 18:6a4db94011d3 | 59 | DCD EIC_Handler ; 4 External Interrupt Controller |
sahilmgandhi | 18:6a4db94011d3 | 60 | DCD NVMCTRL_Handler ; 5 Non-Volatile Memory Controller |
sahilmgandhi | 18:6a4db94011d3 | 61 | DCD DMAC_Handler ; 6 Direct Memory Access Controller |
sahilmgandhi | 18:6a4db94011d3 | 62 | DCD USB_Handler ; 7 Universal Serial Bus |
sahilmgandhi | 18:6a4db94011d3 | 63 | DCD EVSYS_Handler ; 8 Event System Interface |
sahilmgandhi | 18:6a4db94011d3 | 64 | DCD SERCOM0_Handler ; 9 Serial Communication Interface 0 |
sahilmgandhi | 18:6a4db94011d3 | 65 | DCD SERCOM1_Handler ; 10 Serial Communication Interface 1 |
sahilmgandhi | 18:6a4db94011d3 | 66 | DCD SERCOM2_Handler ; 11 Serial Communication Interface 2 |
sahilmgandhi | 18:6a4db94011d3 | 67 | DCD SERCOM3_Handler ; 12 Serial Communication Interface 3 |
sahilmgandhi | 18:6a4db94011d3 | 68 | DCD SERCOM4_Handler ; 13 Serial Communication Interface 4 |
sahilmgandhi | 18:6a4db94011d3 | 69 | DCD SERCOM5_Handler ; 14 Serial Communication Interface 5 |
sahilmgandhi | 18:6a4db94011d3 | 70 | DCD TCC0_Handler ; 15 Timer Counter Control 0 |
sahilmgandhi | 18:6a4db94011d3 | 71 | DCD TCC1_Handler ; 16 Timer Counter Control 1 |
sahilmgandhi | 18:6a4db94011d3 | 72 | DCD TCC2_Handler ; 17 Timer Counter Control 2 |
sahilmgandhi | 18:6a4db94011d3 | 73 | DCD TC3_Handler ; 18 Basic Timer Counter 0 |
sahilmgandhi | 18:6a4db94011d3 | 74 | DCD TC4_Handler ; 19 Basic Timer Counter 1 |
sahilmgandhi | 18:6a4db94011d3 | 75 | DCD TC5_Handler ; 20 Basic Timer Counter 2 |
sahilmgandhi | 18:6a4db94011d3 | 76 | DCD TC6_Handler ; 21 Basic Timer Counter 3 |
sahilmgandhi | 18:6a4db94011d3 | 77 | DCD TC7_Handler ; 22 Basic Timer Counter 4 |
sahilmgandhi | 18:6a4db94011d3 | 78 | DCD ADC_Handler ; 23 Analog Digital Converter |
sahilmgandhi | 18:6a4db94011d3 | 79 | DCD AC_Handler ; 24 Analog Comparators |
sahilmgandhi | 18:6a4db94011d3 | 80 | DCD DAC_Handler ; 25 Digital Analog Converter |
sahilmgandhi | 18:6a4db94011d3 | 81 | DCD PTC_Handler ; 26 Peripheral Touch Controller |
sahilmgandhi | 18:6a4db94011d3 | 82 | DCD I2S_Handler ; 27 Inter-IC Sound Interface |
sahilmgandhi | 18:6a4db94011d3 | 83 | __Vectors_End |
sahilmgandhi | 18:6a4db94011d3 | 84 | |
sahilmgandhi | 18:6a4db94011d3 | 85 | __Vectors_Size EQU __Vectors_End - __Vectors |
sahilmgandhi | 18:6a4db94011d3 | 86 | |
sahilmgandhi | 18:6a4db94011d3 | 87 | AREA |.text|, CODE, READONLY |
sahilmgandhi | 18:6a4db94011d3 | 88 | |
sahilmgandhi | 18:6a4db94011d3 | 89 | |
sahilmgandhi | 18:6a4db94011d3 | 90 | ; Reset Handler |
sahilmgandhi | 18:6a4db94011d3 | 91 | |
sahilmgandhi | 18:6a4db94011d3 | 92 | Reset_Handler PROC |
sahilmgandhi | 18:6a4db94011d3 | 93 | EXPORT Reset_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 94 | IMPORT SystemInit |
sahilmgandhi | 18:6a4db94011d3 | 95 | IMPORT __main |
sahilmgandhi | 18:6a4db94011d3 | 96 | LDR R0, =SystemInit |
sahilmgandhi | 18:6a4db94011d3 | 97 | BLX R0 |
sahilmgandhi | 18:6a4db94011d3 | 98 | LDR R0, =__main |
sahilmgandhi | 18:6a4db94011d3 | 99 | BX R0 |
sahilmgandhi | 18:6a4db94011d3 | 100 | ENDP |
sahilmgandhi | 18:6a4db94011d3 | 101 | |
sahilmgandhi | 18:6a4db94011d3 | 102 | ; Dummy Exception Handlers (infinite loops which can be modified) |
sahilmgandhi | 18:6a4db94011d3 | 103 | |
sahilmgandhi | 18:6a4db94011d3 | 104 | NMI_Handler PROC |
sahilmgandhi | 18:6a4db94011d3 | 105 | EXPORT NMI_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 106 | B . |
sahilmgandhi | 18:6a4db94011d3 | 107 | ENDP |
sahilmgandhi | 18:6a4db94011d3 | 108 | HardFault_Handler\ |
sahilmgandhi | 18:6a4db94011d3 | 109 | PROC |
sahilmgandhi | 18:6a4db94011d3 | 110 | EXPORT HardFault_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 111 | B . |
sahilmgandhi | 18:6a4db94011d3 | 112 | ENDP |
sahilmgandhi | 18:6a4db94011d3 | 113 | SVC_Handler PROC |
sahilmgandhi | 18:6a4db94011d3 | 114 | EXPORT SVC_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 115 | B . |
sahilmgandhi | 18:6a4db94011d3 | 116 | ENDP |
sahilmgandhi | 18:6a4db94011d3 | 117 | PendSV_Handler PROC |
sahilmgandhi | 18:6a4db94011d3 | 118 | EXPORT PendSV_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 119 | B . |
sahilmgandhi | 18:6a4db94011d3 | 120 | ENDP |
sahilmgandhi | 18:6a4db94011d3 | 121 | SysTick_Handler PROC |
sahilmgandhi | 18:6a4db94011d3 | 122 | EXPORT SysTick_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 123 | B . |
sahilmgandhi | 18:6a4db94011d3 | 124 | ENDP |
sahilmgandhi | 18:6a4db94011d3 | 125 | |
sahilmgandhi | 18:6a4db94011d3 | 126 | Default_Handler PROC |
sahilmgandhi | 18:6a4db94011d3 | 127 | EXPORT PM_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 128 | EXPORT SYSCTRL_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 129 | EXPORT WDT_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 130 | EXPORT RTC_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 131 | EXPORT EIC_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 132 | EXPORT NVMCTRL_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 133 | EXPORT DMAC_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 134 | EXPORT USB_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 135 | EXPORT EVSYS_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 136 | EXPORT SERCOM0_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 137 | EXPORT SERCOM1_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 138 | EXPORT SERCOM2_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 139 | EXPORT SERCOM3_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 140 | EXPORT SERCOM4_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 141 | EXPORT SERCOM5_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 142 | EXPORT TCC0_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 143 | EXPORT TCC1_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 144 | EXPORT TCC2_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 145 | EXPORT TC3_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 146 | EXPORT TC4_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 147 | EXPORT TC5_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 148 | EXPORT TC6_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 149 | EXPORT TC7_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 150 | EXPORT ADC_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 151 | EXPORT AC_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 152 | EXPORT DAC_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 153 | EXPORT PTC_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 154 | EXPORT I2S_Handler [WEAK] |
sahilmgandhi | 18:6a4db94011d3 | 155 | |
sahilmgandhi | 18:6a4db94011d3 | 156 | PM_Handler |
sahilmgandhi | 18:6a4db94011d3 | 157 | SYSCTRL_Handler |
sahilmgandhi | 18:6a4db94011d3 | 158 | WDT_Handler |
sahilmgandhi | 18:6a4db94011d3 | 159 | RTC_Handler |
sahilmgandhi | 18:6a4db94011d3 | 160 | EIC_Handler |
sahilmgandhi | 18:6a4db94011d3 | 161 | NVMCTRL_Handler |
sahilmgandhi | 18:6a4db94011d3 | 162 | DMAC_Handler |
sahilmgandhi | 18:6a4db94011d3 | 163 | USB_Handler |
sahilmgandhi | 18:6a4db94011d3 | 164 | EVSYS_Handler |
sahilmgandhi | 18:6a4db94011d3 | 165 | SERCOM0_Handler |
sahilmgandhi | 18:6a4db94011d3 | 166 | SERCOM1_Handler |
sahilmgandhi | 18:6a4db94011d3 | 167 | SERCOM2_Handler |
sahilmgandhi | 18:6a4db94011d3 | 168 | SERCOM3_Handler |
sahilmgandhi | 18:6a4db94011d3 | 169 | SERCOM4_Handler |
sahilmgandhi | 18:6a4db94011d3 | 170 | SERCOM5_Handler |
sahilmgandhi | 18:6a4db94011d3 | 171 | TCC0_Handler |
sahilmgandhi | 18:6a4db94011d3 | 172 | TCC1_Handler |
sahilmgandhi | 18:6a4db94011d3 | 173 | TCC2_Handler |
sahilmgandhi | 18:6a4db94011d3 | 174 | TC3_Handler |
sahilmgandhi | 18:6a4db94011d3 | 175 | TC4_Handler |
sahilmgandhi | 18:6a4db94011d3 | 176 | TC5_Handler |
sahilmgandhi | 18:6a4db94011d3 | 177 | TC6_Handler |
sahilmgandhi | 18:6a4db94011d3 | 178 | TC7_Handler |
sahilmgandhi | 18:6a4db94011d3 | 179 | ADC_Handler |
sahilmgandhi | 18:6a4db94011d3 | 180 | AC_Handler |
sahilmgandhi | 18:6a4db94011d3 | 181 | DAC_Handler |
sahilmgandhi | 18:6a4db94011d3 | 182 | PTC_Handler |
sahilmgandhi | 18:6a4db94011d3 | 183 | I2S_Handler |
sahilmgandhi | 18:6a4db94011d3 | 184 | B . |
sahilmgandhi | 18:6a4db94011d3 | 185 | ENDP |
sahilmgandhi | 18:6a4db94011d3 | 186 | |
sahilmgandhi | 18:6a4db94011d3 | 187 | |
sahilmgandhi | 18:6a4db94011d3 | 188 | ALIGN |
sahilmgandhi | 18:6a4db94011d3 | 189 | END |