Mouse code for the MacroRat

Dependencies:   ITG3200 QEI

Committer:
sahilmgandhi
Date:
Sat Jun 03 00:22:44 2017 +0000
Revision:
46:b156ef445742
Parent:
18:6a4db94011d3
Final code for internal battlebot competition.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sahilmgandhi 18:6a4db94011d3 1 ;/*****************************************************************************
sahilmgandhi 18:6a4db94011d3 2 ; * @file: startup_LPC17xx.s
sahilmgandhi 18:6a4db94011d3 3 ; * @purpose: CMSIS Cortex-M3 Core Device Startup File
sahilmgandhi 18:6a4db94011d3 4 ; * for the NXP LPC17xx Device Series
sahilmgandhi 18:6a4db94011d3 5 ; * @version: V1.03
sahilmgandhi 18:6a4db94011d3 6 ; * @date: 09. February 2010
sahilmgandhi 18:6a4db94011d3 7 ; *----------------------------------------------------------------------------
sahilmgandhi 18:6a4db94011d3 8 ; *
sahilmgandhi 18:6a4db94011d3 9 ; * Copyright (C) 2010 ARM Limited. All rights reserved.
sahilmgandhi 18:6a4db94011d3 10 ; *
sahilmgandhi 18:6a4db94011d3 11 ; * ARM Limited (ARM) is supplying this software for use with Cortex-Mx
sahilmgandhi 18:6a4db94011d3 12 ; * processor based microcontrollers. This file can be freely distributed
sahilmgandhi 18:6a4db94011d3 13 ; * within development tools that are supporting such ARM based processors.
sahilmgandhi 18:6a4db94011d3 14 ; *
sahilmgandhi 18:6a4db94011d3 15 ; * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
sahilmgandhi 18:6a4db94011d3 16 ; * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
sahilmgandhi 18:6a4db94011d3 17 ; * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
sahilmgandhi 18:6a4db94011d3 18 ; * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
sahilmgandhi 18:6a4db94011d3 19 ; * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
sahilmgandhi 18:6a4db94011d3 20 ; *
sahilmgandhi 18:6a4db94011d3 21 ; ******************************************************************************/
sahilmgandhi 18:6a4db94011d3 22
sahilmgandhi 18:6a4db94011d3 23
sahilmgandhi 18:6a4db94011d3 24 ;
sahilmgandhi 18:6a4db94011d3 25 ; The modules in this file are included in the libraries, and may be replaced
sahilmgandhi 18:6a4db94011d3 26 ; by any user-defined modules that define the PUBLIC symbol _program_start or
sahilmgandhi 18:6a4db94011d3 27 ; a user defined start symbol.
sahilmgandhi 18:6a4db94011d3 28 ; To override the cstartup defined in the library, simply add your modified
sahilmgandhi 18:6a4db94011d3 29 ; version to the workbench project.
sahilmgandhi 18:6a4db94011d3 30 ;
sahilmgandhi 18:6a4db94011d3 31 ; The vector table is normally located at address 0.
sahilmgandhi 18:6a4db94011d3 32 ; When debugging in RAM, it can be located in RAM, aligned to at least 2^6.
sahilmgandhi 18:6a4db94011d3 33 ; The name "__vector_table" has special meaning for C-SPY:
sahilmgandhi 18:6a4db94011d3 34 ; it is where the SP start value is found, and the NVIC vector
sahilmgandhi 18:6a4db94011d3 35 ; table register (VTOR) is initialized to this address if != 0.
sahilmgandhi 18:6a4db94011d3 36 ;
sahilmgandhi 18:6a4db94011d3 37 ; Cortex-M version
sahilmgandhi 18:6a4db94011d3 38 ;
sahilmgandhi 18:6a4db94011d3 39
sahilmgandhi 18:6a4db94011d3 40 MODULE ?cstartup
sahilmgandhi 18:6a4db94011d3 41
sahilmgandhi 18:6a4db94011d3 42 ;; Forward declaration of sections.
sahilmgandhi 18:6a4db94011d3 43 SECTION CSTACK:DATA:NOROOT(3)
sahilmgandhi 18:6a4db94011d3 44
sahilmgandhi 18:6a4db94011d3 45 SECTION .intvec:CODE:NOROOT(2)
sahilmgandhi 18:6a4db94011d3 46
sahilmgandhi 18:6a4db94011d3 47 EXTERN __iar_program_start
sahilmgandhi 18:6a4db94011d3 48 EXTERN SystemInit
sahilmgandhi 18:6a4db94011d3 49 PUBLIC __vector_table
sahilmgandhi 18:6a4db94011d3 50 PUBLIC __vector_table_0x1c
sahilmgandhi 18:6a4db94011d3 51 PUBLIC __Vectors
sahilmgandhi 18:6a4db94011d3 52 PUBLIC __Vectors_End
sahilmgandhi 18:6a4db94011d3 53 PUBLIC __Vectors_Size
sahilmgandhi 18:6a4db94011d3 54
sahilmgandhi 18:6a4db94011d3 55 DATA
sahilmgandhi 18:6a4db94011d3 56
sahilmgandhi 18:6a4db94011d3 57 __vector_table
sahilmgandhi 18:6a4db94011d3 58 DCD sfe(CSTACK)
sahilmgandhi 18:6a4db94011d3 59 DCD Reset_Handler
sahilmgandhi 18:6a4db94011d3 60
sahilmgandhi 18:6a4db94011d3 61 DCD NMI_Handler
sahilmgandhi 18:6a4db94011d3 62 DCD HardFault_Handler
sahilmgandhi 18:6a4db94011d3 63 DCD MemManage_Handler
sahilmgandhi 18:6a4db94011d3 64 DCD BusFault_Handler
sahilmgandhi 18:6a4db94011d3 65 DCD UsageFault_Handler
sahilmgandhi 18:6a4db94011d3 66 __vector_table_0x1c
sahilmgandhi 18:6a4db94011d3 67 DCD 0
sahilmgandhi 18:6a4db94011d3 68 DCD 0
sahilmgandhi 18:6a4db94011d3 69 DCD 0
sahilmgandhi 18:6a4db94011d3 70 DCD 0
sahilmgandhi 18:6a4db94011d3 71 DCD SVC_Handler
sahilmgandhi 18:6a4db94011d3 72 DCD DebugMon_Handler
sahilmgandhi 18:6a4db94011d3 73 DCD 0
sahilmgandhi 18:6a4db94011d3 74 DCD PendSV_Handler
sahilmgandhi 18:6a4db94011d3 75 DCD SysTick_Handler
sahilmgandhi 18:6a4db94011d3 76
sahilmgandhi 18:6a4db94011d3 77 ; External Interrupts
sahilmgandhi 18:6a4db94011d3 78 DCD WDT_IRQHandler ; 16: Watchdog Timer
sahilmgandhi 18:6a4db94011d3 79 DCD TIMER0_IRQHandler ; 17: Timer0
sahilmgandhi 18:6a4db94011d3 80 DCD TIMER1_IRQHandler ; 18: Timer1
sahilmgandhi 18:6a4db94011d3 81 DCD TIMER2_IRQHandler ; 19: Timer2
sahilmgandhi 18:6a4db94011d3 82 DCD TIMER3_IRQHandler ; 20: Timer3
sahilmgandhi 18:6a4db94011d3 83 DCD UART0_IRQHandler ; 21: UART0
sahilmgandhi 18:6a4db94011d3 84 DCD UART1_IRQHandler ; 22: UART1
sahilmgandhi 18:6a4db94011d3 85 DCD UART2_IRQHandler ; 23: UART2
sahilmgandhi 18:6a4db94011d3 86 DCD UART3_IRQHandler ; 24: UART3
sahilmgandhi 18:6a4db94011d3 87 DCD PWM1_IRQHandler ; 25: PWM1
sahilmgandhi 18:6a4db94011d3 88 DCD I2C0_IRQHandler ; 26: I2C0
sahilmgandhi 18:6a4db94011d3 89 DCD I2C1_IRQHandler ; 27: I2C1
sahilmgandhi 18:6a4db94011d3 90 DCD I2C2_IRQHandler ; 28: I2C2
sahilmgandhi 18:6a4db94011d3 91 DCD SPI_IRQHandler ; 29: SPI
sahilmgandhi 18:6a4db94011d3 92 DCD SSP0_IRQHandler ; 30: SSP0
sahilmgandhi 18:6a4db94011d3 93 DCD SSP1_IRQHandler ; 31: SSP1
sahilmgandhi 18:6a4db94011d3 94 DCD PLL0_IRQHandler ; 32: PLL0 Lock (Main PLL)
sahilmgandhi 18:6a4db94011d3 95 DCD RTC_IRQHandler ; 33: Real Time Clock
sahilmgandhi 18:6a4db94011d3 96 DCD EINT0_IRQHandler ; 34: External Interrupt 0
sahilmgandhi 18:6a4db94011d3 97 DCD EINT1_IRQHandler ; 35: External Interrupt 1
sahilmgandhi 18:6a4db94011d3 98 DCD EINT2_IRQHandler ; 36: External Interrupt 2
sahilmgandhi 18:6a4db94011d3 99 DCD EINT3_IRQHandler ; 37: External Interrupt 3
sahilmgandhi 18:6a4db94011d3 100 DCD ADC_IRQHandler ; 38: A/D Converter
sahilmgandhi 18:6a4db94011d3 101 DCD BOD_IRQHandler ; 39: Brown-Out Detect
sahilmgandhi 18:6a4db94011d3 102 DCD USB_IRQHandler ; 40: USB
sahilmgandhi 18:6a4db94011d3 103 DCD CAN_IRQHandler ; 41: CAN
sahilmgandhi 18:6a4db94011d3 104 DCD DMA_IRQHandler ; 42: General Purpose DMA
sahilmgandhi 18:6a4db94011d3 105 DCD I2S_IRQHandler ; 43: I2S
sahilmgandhi 18:6a4db94011d3 106 DCD ENET_IRQHandler ; 44: Ethernet
sahilmgandhi 18:6a4db94011d3 107 DCD RIT_IRQHandler ; 45: Repetitive Interrupt Timer
sahilmgandhi 18:6a4db94011d3 108 DCD MCPWM_IRQHandler ; 46: Motor Control PWM
sahilmgandhi 18:6a4db94011d3 109 DCD QEI_IRQHandler ; 47: Quadrature Encoder Interface
sahilmgandhi 18:6a4db94011d3 110 DCD PLL1_IRQHandler ; 48: PLL1 Lock (USB PLL)
sahilmgandhi 18:6a4db94011d3 111 DCD USBActivity_IRQHandler ; 49: USB Activity Interrupt
sahilmgandhi 18:6a4db94011d3 112 DCD CANActivity_IRQHandler ; 50: CAN Activity Interrupt
sahilmgandhi 18:6a4db94011d3 113 __Vectors_End
sahilmgandhi 18:6a4db94011d3 114
sahilmgandhi 18:6a4db94011d3 115 __Vectors EQU __vector_table
sahilmgandhi 18:6a4db94011d3 116 __Vectors_Size EQU __Vectors_End - __Vectors
sahilmgandhi 18:6a4db94011d3 117
sahilmgandhi 18:6a4db94011d3 118
sahilmgandhi 18:6a4db94011d3 119 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
sahilmgandhi 18:6a4db94011d3 120 ;;
sahilmgandhi 18:6a4db94011d3 121 ;; Default interrupt handlers.
sahilmgandhi 18:6a4db94011d3 122 ;;
sahilmgandhi 18:6a4db94011d3 123 THUMB
sahilmgandhi 18:6a4db94011d3 124
sahilmgandhi 18:6a4db94011d3 125 PUBWEAK Reset_Handler
sahilmgandhi 18:6a4db94011d3 126 SECTION .text:CODE:REORDER(2)
sahilmgandhi 18:6a4db94011d3 127 Reset_Handler
sahilmgandhi 18:6a4db94011d3 128 LDR R0, =SystemInit
sahilmgandhi 18:6a4db94011d3 129 BLX R0
sahilmgandhi 18:6a4db94011d3 130 LDR R0, =__iar_program_start
sahilmgandhi 18:6a4db94011d3 131 BX R0
sahilmgandhi 18:6a4db94011d3 132
sahilmgandhi 18:6a4db94011d3 133 PUBWEAK NMI_Handler
sahilmgandhi 18:6a4db94011d3 134 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 135 NMI_Handler
sahilmgandhi 18:6a4db94011d3 136 B NMI_Handler
sahilmgandhi 18:6a4db94011d3 137
sahilmgandhi 18:6a4db94011d3 138 PUBWEAK HardFault_Handler
sahilmgandhi 18:6a4db94011d3 139 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 140 HardFault_Handler
sahilmgandhi 18:6a4db94011d3 141 B HardFault_Handler
sahilmgandhi 18:6a4db94011d3 142
sahilmgandhi 18:6a4db94011d3 143 PUBWEAK MemManage_Handler
sahilmgandhi 18:6a4db94011d3 144 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 145 MemManage_Handler
sahilmgandhi 18:6a4db94011d3 146 B MemManage_Handler
sahilmgandhi 18:6a4db94011d3 147
sahilmgandhi 18:6a4db94011d3 148 PUBWEAK BusFault_Handler
sahilmgandhi 18:6a4db94011d3 149 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 150 BusFault_Handler
sahilmgandhi 18:6a4db94011d3 151 B BusFault_Handler
sahilmgandhi 18:6a4db94011d3 152
sahilmgandhi 18:6a4db94011d3 153 PUBWEAK UsageFault_Handler
sahilmgandhi 18:6a4db94011d3 154 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 155 UsageFault_Handler
sahilmgandhi 18:6a4db94011d3 156 B UsageFault_Handler
sahilmgandhi 18:6a4db94011d3 157
sahilmgandhi 18:6a4db94011d3 158 PUBWEAK SVC_Handler
sahilmgandhi 18:6a4db94011d3 159 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 160 SVC_Handler
sahilmgandhi 18:6a4db94011d3 161 B SVC_Handler
sahilmgandhi 18:6a4db94011d3 162
sahilmgandhi 18:6a4db94011d3 163 PUBWEAK DebugMon_Handler
sahilmgandhi 18:6a4db94011d3 164 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 165 DebugMon_Handler
sahilmgandhi 18:6a4db94011d3 166 B DebugMon_Handler
sahilmgandhi 18:6a4db94011d3 167
sahilmgandhi 18:6a4db94011d3 168 PUBWEAK PendSV_Handler
sahilmgandhi 18:6a4db94011d3 169 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 170 PendSV_Handler
sahilmgandhi 18:6a4db94011d3 171 B PendSV_Handler
sahilmgandhi 18:6a4db94011d3 172
sahilmgandhi 18:6a4db94011d3 173 PUBWEAK SysTick_Handler
sahilmgandhi 18:6a4db94011d3 174 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 175 SysTick_Handler
sahilmgandhi 18:6a4db94011d3 176 B SysTick_Handler
sahilmgandhi 18:6a4db94011d3 177
sahilmgandhi 18:6a4db94011d3 178 PUBWEAK WDT_IRQHandler
sahilmgandhi 18:6a4db94011d3 179 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 180 WDT_IRQHandler
sahilmgandhi 18:6a4db94011d3 181 B WDT_IRQHandler
sahilmgandhi 18:6a4db94011d3 182
sahilmgandhi 18:6a4db94011d3 183 PUBWEAK TIMER0_IRQHandler
sahilmgandhi 18:6a4db94011d3 184 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 185 TIMER0_IRQHandler
sahilmgandhi 18:6a4db94011d3 186 B TIMER0_IRQHandler
sahilmgandhi 18:6a4db94011d3 187
sahilmgandhi 18:6a4db94011d3 188 PUBWEAK TIMER1_IRQHandler
sahilmgandhi 18:6a4db94011d3 189 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 190 TIMER1_IRQHandler
sahilmgandhi 18:6a4db94011d3 191 B TIMER1_IRQHandler
sahilmgandhi 18:6a4db94011d3 192
sahilmgandhi 18:6a4db94011d3 193 PUBWEAK TIMER2_IRQHandler
sahilmgandhi 18:6a4db94011d3 194 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 195 TIMER2_IRQHandler
sahilmgandhi 18:6a4db94011d3 196 B TIMER2_IRQHandler
sahilmgandhi 18:6a4db94011d3 197
sahilmgandhi 18:6a4db94011d3 198 PUBWEAK TIMER3_IRQHandler
sahilmgandhi 18:6a4db94011d3 199 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 200 TIMER3_IRQHandler
sahilmgandhi 18:6a4db94011d3 201 B TIMER3_IRQHandler
sahilmgandhi 18:6a4db94011d3 202
sahilmgandhi 18:6a4db94011d3 203 PUBWEAK UART0_IRQHandler
sahilmgandhi 18:6a4db94011d3 204 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 205 UART0_IRQHandler
sahilmgandhi 18:6a4db94011d3 206 B UART0_IRQHandler
sahilmgandhi 18:6a4db94011d3 207
sahilmgandhi 18:6a4db94011d3 208 PUBWEAK UART1_IRQHandler
sahilmgandhi 18:6a4db94011d3 209 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 210 UART1_IRQHandler
sahilmgandhi 18:6a4db94011d3 211 B UART1_IRQHandler
sahilmgandhi 18:6a4db94011d3 212
sahilmgandhi 18:6a4db94011d3 213 PUBWEAK UART2_IRQHandler
sahilmgandhi 18:6a4db94011d3 214 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 215 UART2_IRQHandler
sahilmgandhi 18:6a4db94011d3 216 B UART2_IRQHandler
sahilmgandhi 18:6a4db94011d3 217
sahilmgandhi 18:6a4db94011d3 218 PUBWEAK UART3_IRQHandler
sahilmgandhi 18:6a4db94011d3 219 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 220 UART3_IRQHandler
sahilmgandhi 18:6a4db94011d3 221 B UART3_IRQHandler
sahilmgandhi 18:6a4db94011d3 222
sahilmgandhi 18:6a4db94011d3 223 PUBWEAK PWM1_IRQHandler
sahilmgandhi 18:6a4db94011d3 224 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 225 PWM1_IRQHandler
sahilmgandhi 18:6a4db94011d3 226 B PWM1_IRQHandler
sahilmgandhi 18:6a4db94011d3 227
sahilmgandhi 18:6a4db94011d3 228 PUBWEAK I2C0_IRQHandler
sahilmgandhi 18:6a4db94011d3 229 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 230 I2C0_IRQHandler
sahilmgandhi 18:6a4db94011d3 231 B I2C0_IRQHandler
sahilmgandhi 18:6a4db94011d3 232
sahilmgandhi 18:6a4db94011d3 233 PUBWEAK I2C1_IRQHandler
sahilmgandhi 18:6a4db94011d3 234 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 235 I2C1_IRQHandler
sahilmgandhi 18:6a4db94011d3 236 B I2C1_IRQHandler
sahilmgandhi 18:6a4db94011d3 237
sahilmgandhi 18:6a4db94011d3 238 PUBWEAK I2C2_IRQHandler
sahilmgandhi 18:6a4db94011d3 239 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 240 I2C2_IRQHandler
sahilmgandhi 18:6a4db94011d3 241 B I2C2_IRQHandler
sahilmgandhi 18:6a4db94011d3 242
sahilmgandhi 18:6a4db94011d3 243 PUBWEAK SPI_IRQHandler
sahilmgandhi 18:6a4db94011d3 244 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 245 SPI_IRQHandler
sahilmgandhi 18:6a4db94011d3 246 B SPI_IRQHandler
sahilmgandhi 18:6a4db94011d3 247
sahilmgandhi 18:6a4db94011d3 248 PUBWEAK SSP0_IRQHandler
sahilmgandhi 18:6a4db94011d3 249 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 250 SSP0_IRQHandler
sahilmgandhi 18:6a4db94011d3 251 B SSP0_IRQHandler
sahilmgandhi 18:6a4db94011d3 252
sahilmgandhi 18:6a4db94011d3 253 PUBWEAK SSP1_IRQHandler
sahilmgandhi 18:6a4db94011d3 254 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 255 SSP1_IRQHandler
sahilmgandhi 18:6a4db94011d3 256 B SSP1_IRQHandler
sahilmgandhi 18:6a4db94011d3 257
sahilmgandhi 18:6a4db94011d3 258 PUBWEAK PLL0_IRQHandler
sahilmgandhi 18:6a4db94011d3 259 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 260 PLL0_IRQHandler
sahilmgandhi 18:6a4db94011d3 261 B PLL0_IRQHandler
sahilmgandhi 18:6a4db94011d3 262
sahilmgandhi 18:6a4db94011d3 263 PUBWEAK RTC_IRQHandler
sahilmgandhi 18:6a4db94011d3 264 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 265 RTC_IRQHandler
sahilmgandhi 18:6a4db94011d3 266 B RTC_IRQHandler
sahilmgandhi 18:6a4db94011d3 267
sahilmgandhi 18:6a4db94011d3 268 PUBWEAK EINT0_IRQHandler
sahilmgandhi 18:6a4db94011d3 269 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 270 EINT0_IRQHandler
sahilmgandhi 18:6a4db94011d3 271 B EINT0_IRQHandler
sahilmgandhi 18:6a4db94011d3 272
sahilmgandhi 18:6a4db94011d3 273 PUBWEAK EINT1_IRQHandler
sahilmgandhi 18:6a4db94011d3 274 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 275 EINT1_IRQHandler
sahilmgandhi 18:6a4db94011d3 276 B EINT1_IRQHandler
sahilmgandhi 18:6a4db94011d3 277
sahilmgandhi 18:6a4db94011d3 278 PUBWEAK EINT2_IRQHandler
sahilmgandhi 18:6a4db94011d3 279 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 280 EINT2_IRQHandler
sahilmgandhi 18:6a4db94011d3 281 B EINT2_IRQHandler
sahilmgandhi 18:6a4db94011d3 282
sahilmgandhi 18:6a4db94011d3 283 PUBWEAK EINT3_IRQHandler
sahilmgandhi 18:6a4db94011d3 284 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 285 EINT3_IRQHandler
sahilmgandhi 18:6a4db94011d3 286 B EINT3_IRQHandler
sahilmgandhi 18:6a4db94011d3 287
sahilmgandhi 18:6a4db94011d3 288 PUBWEAK ADC_IRQHandler
sahilmgandhi 18:6a4db94011d3 289 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 290 ADC_IRQHandler
sahilmgandhi 18:6a4db94011d3 291 B ADC_IRQHandler
sahilmgandhi 18:6a4db94011d3 292
sahilmgandhi 18:6a4db94011d3 293 PUBWEAK BOD_IRQHandler
sahilmgandhi 18:6a4db94011d3 294 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 295 BOD_IRQHandler
sahilmgandhi 18:6a4db94011d3 296 B BOD_IRQHandler
sahilmgandhi 18:6a4db94011d3 297
sahilmgandhi 18:6a4db94011d3 298 PUBWEAK USB_IRQHandler
sahilmgandhi 18:6a4db94011d3 299 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 300 USB_IRQHandler
sahilmgandhi 18:6a4db94011d3 301 B USB_IRQHandler
sahilmgandhi 18:6a4db94011d3 302
sahilmgandhi 18:6a4db94011d3 303 PUBWEAK CAN_IRQHandler
sahilmgandhi 18:6a4db94011d3 304 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 305 CAN_IRQHandler
sahilmgandhi 18:6a4db94011d3 306 B CAN_IRQHandler
sahilmgandhi 18:6a4db94011d3 307
sahilmgandhi 18:6a4db94011d3 308 PUBWEAK DMA_IRQHandler
sahilmgandhi 18:6a4db94011d3 309 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 310 DMA_IRQHandler
sahilmgandhi 18:6a4db94011d3 311 B DMA_IRQHandler
sahilmgandhi 18:6a4db94011d3 312
sahilmgandhi 18:6a4db94011d3 313 PUBWEAK I2S_IRQHandler
sahilmgandhi 18:6a4db94011d3 314 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 315 I2S_IRQHandler
sahilmgandhi 18:6a4db94011d3 316 B I2S_IRQHandler
sahilmgandhi 18:6a4db94011d3 317
sahilmgandhi 18:6a4db94011d3 318 PUBWEAK ENET_IRQHandler
sahilmgandhi 18:6a4db94011d3 319 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 320 ENET_IRQHandler
sahilmgandhi 18:6a4db94011d3 321 B ENET_IRQHandler
sahilmgandhi 18:6a4db94011d3 322
sahilmgandhi 18:6a4db94011d3 323 PUBWEAK RIT_IRQHandler
sahilmgandhi 18:6a4db94011d3 324 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 325 RIT_IRQHandler
sahilmgandhi 18:6a4db94011d3 326 B RIT_IRQHandler
sahilmgandhi 18:6a4db94011d3 327
sahilmgandhi 18:6a4db94011d3 328 PUBWEAK MCPWM_IRQHandler
sahilmgandhi 18:6a4db94011d3 329 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 330 MCPWM_IRQHandler
sahilmgandhi 18:6a4db94011d3 331 B MCPWM_IRQHandler
sahilmgandhi 18:6a4db94011d3 332
sahilmgandhi 18:6a4db94011d3 333 PUBWEAK QEI_IRQHandler
sahilmgandhi 18:6a4db94011d3 334 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 335 QEI_IRQHandler
sahilmgandhi 18:6a4db94011d3 336 B QEI_IRQHandler
sahilmgandhi 18:6a4db94011d3 337
sahilmgandhi 18:6a4db94011d3 338 PUBWEAK PLL1_IRQHandler
sahilmgandhi 18:6a4db94011d3 339 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 340 PLL1_IRQHandler
sahilmgandhi 18:6a4db94011d3 341 B PLL1_IRQHandler
sahilmgandhi 18:6a4db94011d3 342
sahilmgandhi 18:6a4db94011d3 343 PUBWEAK USBActivity_IRQHandler
sahilmgandhi 18:6a4db94011d3 344 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 345 USBActivity_IRQHandler
sahilmgandhi 18:6a4db94011d3 346 B USBActivity_IRQHandler
sahilmgandhi 18:6a4db94011d3 347
sahilmgandhi 18:6a4db94011d3 348 PUBWEAK CANActivity_IRQHandler
sahilmgandhi 18:6a4db94011d3 349 SECTION .text:CODE:REORDER(1)
sahilmgandhi 18:6a4db94011d3 350 CANActivity_IRQHandler
sahilmgandhi 18:6a4db94011d3 351 B CANActivity_IRQHandler
sahilmgandhi 18:6a4db94011d3 352
sahilmgandhi 18:6a4db94011d3 353 #ifndef SRAM
sahilmgandhi 18:6a4db94011d3 354 SECTION .crp:CODE:ROOT(2)
sahilmgandhi 18:6a4db94011d3 355 DATA
sahilmgandhi 18:6a4db94011d3 356 /* Code Read Protection
sahilmgandhi 18:6a4db94011d3 357 CRP1 0x12345678 - Write to RAM command can not access RAM below 0x10000200.
sahilmgandhi 18:6a4db94011d3 358 - Read Memory command: disabled.
sahilmgandhi 18:6a4db94011d3 359 - Copy RAM to Flash command: cannot write to Sector 0.
sahilmgandhi 18:6a4db94011d3 360 - "Go" command: disabled.
sahilmgandhi 18:6a4db94011d3 361 - Erase sector(s) command: can erase any individual sector except
sahilmgandhi 18:6a4db94011d3 362 sector 0 only, or can erase all sectors at once.
sahilmgandhi 18:6a4db94011d3 363 - Compare command: disabled
sahilmgandhi 18:6a4db94011d3 364 CRP2 0x87654321 - Write to RAM command: disabled.
sahilmgandhi 18:6a4db94011d3 365 - Copy RAM to Flash: disabled.
sahilmgandhi 18:6a4db94011d3 366 - Erase command: only allows erase of all sectors.
sahilmgandhi 18:6a4db94011d3 367 CRP3 0x43218765 - Access to chip via the SWD pins is disabled. ISP entry
sahilmgandhi 18:6a4db94011d3 368 by pulling PIO0_1 LOW is disabled if a valid user code is
sahilmgandhi 18:6a4db94011d3 369 present in flash sector 0.
sahilmgandhi 18:6a4db94011d3 370 Caution: If CRP3 is selected, no future factory testing can be
sahilmgandhi 18:6a4db94011d3 371 performed on the device.
sahilmgandhi 18:6a4db94011d3 372 */
sahilmgandhi 18:6a4db94011d3 373 DCD 0xFFFFFFFF
sahilmgandhi 18:6a4db94011d3 374 #endif
sahilmgandhi 18:6a4db94011d3 375 END