1/**************************************************************************//** 2 * @file startup_psoc6_02_cm4.S 3 * @brief CMSIS Core Device Startup File for 4 * ARMCM4 Device Series 5 * @version V5.00 6 * @date 02. March 2016 7 ******************************************************************************/ 8/* 9 * Copyright (c) 2009-2016 ARM Limited. All rights reserved. 10 * 11 * SPDX-License-Identifier: Apache-2.0 12 * 13 * Licensed under the Apache License, Version 2.0 (the License); you may 14 * not use this file except in compliance with the License. 15 * You may obtain a copy of the License at 16 * 17 * www.apache.org/licenses/LICENSE-2.0 18 * 19 * Unless required by applicable law or agreed to in writing, software 20 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 21 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 22 * See the License for the specific language governing permissions and 23 * limitations under the License. 24 */ 25 26 /* Address of the NMI handler */ 27 #define CY_NMI_HANLDER_ADDR 0x0000000D 28 29 /* The CPU VTOR register */ 30 #define CY_CPU_VTOR_ADDR 0xE000ED08 31 32 /* Copy flash vectors and data section to RAM */ 33 #define __STARTUP_COPY_MULTIPLE 34 35 /* Clear single BSS section */ 36 #define __STARTUP_CLEAR_BSS 37 38 .syntax unified 39 .arch armv7-m 40 41 .section .stack 42 .align 3 43#ifdef __STACK_SIZE 44 .equ Stack_Size, __STACK_SIZE 45#else 46 .equ Stack_Size, 0x00001000 47#endif 48 .globl __StackTop 49 .globl __StackLimit 50__StackLimit: 51 .space Stack_Size 52 .size __StackLimit, . - __StackLimit 53__StackTop: 54 .size __StackTop, . - __StackTop 55 56 .section .heap 57 .align 3 58#ifdef __HEAP_SIZE 59 .equ Heap_Size, __HEAP_SIZE 60#else 61 .equ Heap_Size, 0x00000400 62#endif 63 .globl __HeapBase 64 .globl __HeapLimit 65__HeapBase: 66 .if Heap_Size 67 .space Heap_Size 68 .endif 69 .size __HeapBase, . - __HeapBase 70__HeapLimit: 71 .size __HeapLimit, . - __HeapLimit 72 73 .section .vectors 74 .align 2 75 .globl __Vectors 76__Vectors: 77 .long __StackTop /* Top of Stack */ 78 .long Reset_Handler /* Reset Handler */ 79 .long CY_NMI_HANLDER_ADDR /* NMI Handler */ 80 .long HardFault_Handler /* Hard Fault Handler */ 81 .long MemManage_Handler /* MPU Fault Handler */ 82 .long BusFault_Handler /* Bus Fault Handler */ 83 .long UsageFault_Handler /* Usage Fault Handler */ 84 .long 0 /* Reserved */ 85 .long 0 /* Reserved */ 86 .long 0 /* Reserved */ 87 .long 0 /* Reserved */ 88 .long SVC_Handler /* SVCall Handler */ 89 .long DebugMon_Handler /* Debug Monitor Handler */ 90 .long 0 /* Reserved */ 91 .long PendSV_Handler /* PendSV Handler */ 92 .long SysTick_Handler /* SysTick Handler */ 93 94 /* External interrupts Description */ 95 .long ioss_interrupts_gpio_0_IRQHandler /* GPIO Port Interrupt #0 */ 96 .long ioss_interrupts_gpio_1_IRQHandler /* GPIO Port Interrupt #1 */ 97 .long ioss_interrupts_gpio_2_IRQHandler /* GPIO Port Interrupt #2 */ 98 .long ioss_interrupts_gpio_3_IRQHandler /* GPIO Port Interrupt #3 */ 99 .long ioss_interrupts_gpio_4_IRQHandler /* GPIO Port Interrupt #4 */ 100 .long ioss_interrupts_gpio_5_IRQHandler /* GPIO Port Interrupt #5 */ 101 .long ioss_interrupts_gpio_6_IRQHandler /* GPIO Port Interrupt #6 */ 102 .long ioss_interrupts_gpio_7_IRQHandler /* GPIO Port Interrupt #7 */ 103 .long ioss_interrupts_gpio_8_IRQHandler /* GPIO Port Interrupt #8 */ 104 .long ioss_interrupts_gpio_9_IRQHandler /* GPIO Port Interrupt #9 */ 105 .long ioss_interrupts_gpio_10_IRQHandler /* GPIO Port Interrupt #10 */ 106 .long ioss_interrupts_gpio_11_IRQHandler /* GPIO Port Interrupt #11 */ 107 .long ioss_interrupts_gpio_12_IRQHandler /* GPIO Port Interrupt #12 */ 108 .long ioss_interrupts_gpio_13_IRQHandler /* GPIO Port Interrupt #13 */ 109 .long ioss_interrupts_gpio_14_IRQHandler /* GPIO Port Interrupt #14 */ 110 .long ioss_interrupt_gpio_IRQHandler /* GPIO All Ports */ 111 .long ioss_interrupt_vdd_IRQHandler /* GPIO Supply Detect Interrupt */ 112 .long lpcomp_interrupt_IRQHandler /* Low Power Comparator Interrupt */ 113 .long scb_8_interrupt_IRQHandler /* Serial Communication Block #8 (DeepSleep capable) */ 114 .long srss_interrupt_mcwdt_0_IRQHandler /* Multi Counter Watchdog Timer interrupt */ 115 .long srss_interrupt_mcwdt_1_IRQHandler /* Multi Counter Watchdog Timer interrupt */ 116 .long srss_interrupt_backup_IRQHandler /* Backup domain interrupt */ 117 .long srss_interrupt_IRQHandler /* Other combined Interrupts for SRSS (LVD, WDT, CLKCAL) */ 118 .long cpuss_interrupts_ipc_0_IRQHandler /* CPUSS Inter Process Communication Interrupt #0 */ 119 .long cpuss_interrupts_ipc_1_IRQHandler /* CPUSS Inter Process Communication Interrupt #1 */ 120 .long cpuss_interrupts_ipc_2_IRQHandler /* CPUSS Inter Process Communication Interrupt #2 */ 121 .long cpuss_interrupts_ipc_3_IRQHandler /* CPUSS Inter Process Communication Interrupt #3 */ 122 .long cpuss_interrupts_ipc_4_IRQHandler /* CPUSS Inter Process Communication Interrupt #4 */ 123 .long cpuss_interrupts_ipc_5_IRQHandler /* CPUSS Inter Process Communication Interrupt #5 */ 124 .long cpuss_interrupts_ipc_6_IRQHandler /* CPUSS Inter Process Communication Interrupt #6 */ 125 .long cpuss_interrupts_ipc_7_IRQHandler /* CPUSS Inter Process Communication Interrupt #7 */ 126 .long cpuss_interrupts_ipc_8_IRQHandler /* CPUSS Inter Process Communication Interrupt #8 */ 127 .long cpuss_interrupts_ipc_9_IRQHandler /* CPUSS Inter Process Communication Interrupt #9 */ 128 .long cpuss_interrupts_ipc_10_IRQHandler /* CPUSS Inter Process Communication Interrupt #10 */ 129 .long cpuss_interrupts_ipc_11_IRQHandler /* CPUSS Inter Process Communication Interrupt #11 */ 130 .long cpuss_interrupts_ipc_12_IRQHandler /* CPUSS Inter Process Communication Interrupt #12 */ 131 .long cpuss_interrupts_ipc_13_IRQHandler /* CPUSS Inter Process Communication Interrupt #13 */ 132 .long cpuss_interrupts_ipc_14_IRQHandler /* CPUSS Inter Process Communication Interrupt #14 */ 133 .long cpuss_interrupts_ipc_15_IRQHandler /* CPUSS Inter Process Communication Interrupt #15 */ 134 .long scb_0_interrupt_IRQHandler /* Serial Communication Block #0 */ 135 .long scb_1_interrupt_IRQHandler /* Serial Communication Block #1 */ 136 .long scb_2_interrupt_IRQHandler /* Serial Communication Block #2 */ 137 .long scb_3_interrupt_IRQHandler /* Serial Communication Block #3 */ 138 .long scb_4_interrupt_IRQHandler /* Serial Communication Block #4 */ 139 .long scb_5_interrupt_IRQHandler /* Serial Communication Block #5 */ 140 .long scb_6_interrupt_IRQHandler /* Serial Communication Block #6 */ 141 .long scb_7_interrupt_IRQHandler /* Serial Communication Block #7 */ 142 .long scb_9_interrupt_IRQHandler /* Serial Communication Block #9 */ 143 .long scb_10_interrupt_IRQHandler /* Serial Communication Block #10 */ 144 .long scb_11_interrupt_IRQHandler /* Serial Communication Block #11 */ 145 .long scb_12_interrupt_IRQHandler /* Serial Communication Block #12 */ 146 .long csd_interrupt_IRQHandler /* CSD (Capsense) interrupt */ 147 .long cpuss_interrupts_dmac_0_IRQHandler /* CPUSS DMAC, Channel #0 */ 148 .long cpuss_interrupts_dmac_1_IRQHandler /* CPUSS DMAC, Channel #1 */ 149 .long cpuss_interrupts_dmac_2_IRQHandler /* CPUSS DMAC, Channel #2 */ 150 .long cpuss_interrupts_dmac_3_IRQHandler /* CPUSS DMAC, Channel #3 */ 151 .long cpuss_interrupts_dw0_0_IRQHandler /* CPUSS DataWire #0, Channel #0 */ 152 .long cpuss_interrupts_dw0_1_IRQHandler /* CPUSS DataWire #0, Channel #1 */ 153 .long cpuss_interrupts_dw0_2_IRQHandler /* CPUSS DataWire #0, Channel #2 */ 154 .long cpuss_interrupts_dw0_3_IRQHandler /* CPUSS DataWire #0, Channel #3 */ 155 .long cpuss_interrupts_dw0_4_IRQHandler /* CPUSS DataWire #0, Channel #4 */ 156 .long cpuss_interrupts_dw0_5_IRQHandler /* CPUSS DataWire #0, Channel #5 */ 157 .long cpuss_interrupts_dw0_6_IRQHandler /* CPUSS DataWire #0, Channel #6 */ 158 .long cpuss_interrupts_dw0_7_IRQHandler /* CPUSS DataWire #0, Channel #7 */ 159 .long cpuss_interrupts_dw0_8_IRQHandler /* CPUSS DataWire #0, Channel #8 */ 160 .long cpuss_interrupts_dw0_9_IRQHandler /* CPUSS DataWire #0, Channel #9 */ 161 .long cpuss_interrupts_dw0_10_IRQHandler /* CPUSS DataWire #0, Channel #10 */ 162 .long cpuss_interrupts_dw0_11_IRQHandler /* CPUSS DataWire #0, Channel #11 */ 163 .long cpuss_interrupts_dw0_12_IRQHandler /* CPUSS DataWire #0, Channel #12 */ 164 .long cpuss_interrupts_dw0_13_IRQHandler /* CPUSS DataWire #0, Channel #13 */ 165 .long cpuss_interrupts_dw0_14_IRQHandler /* CPUSS DataWire #0, Channel #14 */ 166 .long cpuss_interrupts_dw0_15_IRQHandler /* CPUSS DataWire #0, Channel #15 */ 167 .long cpuss_interrupts_dw0_16_IRQHandler /* CPUSS DataWire #0, Channel #16 */ 168 .long cpuss_interrupts_dw0_17_IRQHandler /* CPUSS DataWire #0, Channel #17 */ 169 .long cpuss_interrupts_dw0_18_IRQHandler /* CPUSS DataWire #0, Channel #18 */ 170 .long cpuss_interrupts_dw0_19_IRQHandler /* CPUSS DataWire #0, Channel #19 */ 171 .long cpuss_interrupts_dw0_20_IRQHandler /* CPUSS DataWire #0, Channel #20 */ 172 .long cpuss_interrupts_dw0_21_IRQHandler /* CPUSS DataWire #0, Channel #21 */ 173 .long cpuss_interrupts_dw0_22_IRQHandler /* CPUSS DataWire #0, Channel #22 */ 174 .long cpuss_interrupts_dw0_23_IRQHandler /* CPUSS DataWire #0, Channel #23 */ 175 .long cpuss_interrupts_dw0_24_IRQHandler /* CPUSS DataWire #0, Channel #24 */ 176 .long cpuss_interrupts_dw0_25_IRQHandler /* CPUSS DataWire #0, Channel #25 */ 177 .long cpuss_interrupts_dw0_26_IRQHandler /* CPUSS DataWire #0, Channel #26 */ 178 .long cpuss_interrupts_dw0_27_IRQHandler /* CPUSS DataWire #0, Channel #27 */ 179 .long cpuss_interrupts_dw0_28_IRQHandler /* CPUSS DataWire #0, Channel #28 */ 180 .long cpuss_interrupts_dw1_0_IRQHandler /* CPUSS DataWire #1, Channel #0 */ 181 .long cpuss_interrupts_dw1_1_IRQHandler /* CPUSS DataWire #1, Channel #1 */ 182 .long cpuss_interrupts_dw1_2_IRQHandler /* CPUSS DataWire #1, Channel #2 */ 183 .long cpuss_interrupts_dw1_3_IRQHandler /* CPUSS DataWire #1, Channel #3 */ 184 .long cpuss_interrupts_dw1_4_IRQHandler /* CPUSS DataWire #1, Channel #4 */ 185 .long cpuss_interrupts_dw1_5_IRQHandler /* CPUSS DataWire #1, Channel #5 */ 186 .long cpuss_interrupts_dw1_6_IRQHandler /* CPUSS DataWire #1, Channel #6 */ 187 .long cpuss_interrupts_dw1_7_IRQHandler /* CPUSS DataWire #1, Channel #7 */ 188 .long cpuss_interrupts_dw1_8_IRQHandler /* CPUSS DataWire #1, Channel #8 */ 189 .long cpuss_interrupts_dw1_9_IRQHandler /* CPUSS DataWire #1, Channel #9 */ 190 .long cpuss_interrupts_dw1_10_IRQHandler /* CPUSS DataWire #1, Channel #10 */ 191 .long cpuss_interrupts_dw1_11_IRQHandler /* CPUSS DataWire #1, Channel #11 */ 192 .long cpuss_interrupts_dw1_12_IRQHandler /* CPUSS DataWire #1, Channel #12 */ 193 .long cpuss_interrupts_dw1_13_IRQHandler /* CPUSS DataWire #1, Channel #13 */ 194 .long cpuss_interrupts_dw1_14_IRQHandler /* CPUSS DataWire #1, Channel #14 */ 195 .long cpuss_interrupts_dw1_15_IRQHandler /* CPUSS DataWire #1, Channel #15 */ 196 .long cpuss_interrupts_dw1_16_IRQHandler /* CPUSS DataWire #1, Channel #16 */ 197 .long cpuss_interrupts_dw1_17_IRQHandler /* CPUSS DataWire #1, Channel #17 */ 198 .long cpuss_interrupts_dw1_18_IRQHandler /* CPUSS DataWire #1, Channel #18 */ 199 .long cpuss_interrupts_dw1_19_IRQHandler /* CPUSS DataWire #1, Channel #19 */ 200 .long cpuss_interrupts_dw1_20_IRQHandler /* CPUSS DataWire #1, Channel #20 */ 201 .long cpuss_interrupts_dw1_21_IRQHandler /* CPUSS DataWire #1, Channel #21 */ 202 .long cpuss_interrupts_dw1_22_IRQHandler /* CPUSS DataWire #1, Channel #22 */ 203 .long cpuss_interrupts_dw1_23_IRQHandler /* CPUSS DataWire #1, Channel #23 */ 204 .long cpuss_interrupts_dw1_24_IRQHandler /* CPUSS DataWire #1, Channel #24 */ 205 .long cpuss_interrupts_dw1_25_IRQHandler /* CPUSS DataWire #1, Channel #25 */ 206 .long cpuss_interrupts_dw1_26_IRQHandler /* CPUSS DataWire #1, Channel #26 */ 207 .long cpuss_interrupts_dw1_27_IRQHandler /* CPUSS DataWire #1, Channel #27 */ 208 .long cpuss_interrupts_dw1_28_IRQHandler /* CPUSS DataWire #1, Channel #28 */ 209 .long cpuss_interrupts_fault_0_IRQHandler /* CPUSS Fault Structure Interrupt #0 */ 210 .long cpuss_interrupts_fault_1_IRQHandler /* CPUSS Fault Structure Interrupt #1 */ 211 .long cpuss_interrupt_crypto_IRQHandler /* CRYPTO Accelerator Interrupt */ 212 .long cpuss_interrupt_fm_IRQHandler /* FLASH Macro Interrupt */ 213 .long cpuss_interrupts_cm4_fp_IRQHandler /* Floating Point operation fault */ 214 .long cpuss_interrupts_cm0_cti_0_IRQHandler /* CM0+ CTI #0 */ 215 .long cpuss_interrupts_cm0_cti_1_IRQHandler /* CM0+ CTI #1 */ 216 .long cpuss_interrupts_cm4_cti_0_IRQHandler /* CM4 CTI #0 */ 217 .long cpuss_interrupts_cm4_cti_1_IRQHandler /* CM4 CTI #1 */ 218 .long tcpwm_0_interrupts_0_IRQHandler /* TCPWM #0, Counter #0 */ 219 .long tcpwm_0_interrupts_1_IRQHandler /* TCPWM #0, Counter #1 */ 220 .long tcpwm_0_interrupts_2_IRQHandler /* TCPWM #0, Counter #2 */ 221 .long tcpwm_0_interrupts_3_IRQHandler /* TCPWM #0, Counter #3 */ 222 .long tcpwm_0_interrupts_4_IRQHandler /* TCPWM #0, Counter #4 */ 223 .long tcpwm_0_interrupts_5_IRQHandler /* TCPWM #0, Counter #5 */ 224 .long tcpwm_0_interrupts_6_IRQHandler /* TCPWM #0, Counter #6 */ 225 .long tcpwm_0_interrupts_7_IRQHandler /* TCPWM #0, Counter #7 */ 226 .long tcpwm_1_interrupts_0_IRQHandler /* TCPWM #1, Counter #0 */ 227 .long tcpwm_1_interrupts_1_IRQHandler /* TCPWM #1, Counter #1 */ 228 .long tcpwm_1_interrupts_2_IRQHandler /* TCPWM #1, Counter #2 */ 229 .long tcpwm_1_interrupts_3_IRQHandler /* TCPWM #1, Counter #3 */ 230 .long tcpwm_1_interrupts_4_IRQHandler /* TCPWM #1, Counter #4 */ 231 .long tcpwm_1_interrupts_5_IRQHandler /* TCPWM #1, Counter #5 */ 232 .long tcpwm_1_interrupts_6_IRQHandler /* TCPWM #1, Counter #6 */ 233 .long tcpwm_1_interrupts_7_IRQHandler /* TCPWM #1, Counter #7 */ 234 .long tcpwm_1_interrupts_8_IRQHandler /* TCPWM #1, Counter #8 */ 235 .long tcpwm_1_interrupts_9_IRQHandler /* TCPWM #1, Counter #9 */ 236 .long tcpwm_1_interrupts_10_IRQHandler /* TCPWM #1, Counter #10 */ 237 .long tcpwm_1_interrupts_11_IRQHandler /* TCPWM #1, Counter #11 */ 238 .long tcpwm_1_interrupts_12_IRQHandler /* TCPWM #1, Counter #12 */ 239 .long tcpwm_1_interrupts_13_IRQHandler /* TCPWM #1, Counter #13 */ 240 .long tcpwm_1_interrupts_14_IRQHandler /* TCPWM #1, Counter #14 */ 241 .long tcpwm_1_interrupts_15_IRQHandler /* TCPWM #1, Counter #15 */ 242 .long tcpwm_1_interrupts_16_IRQHandler /* TCPWM #1, Counter #16 */ 243 .long tcpwm_1_interrupts_17_IRQHandler /* TCPWM #1, Counter #17 */ 244 .long tcpwm_1_interrupts_18_IRQHandler /* TCPWM #1, Counter #18 */ 245 .long tcpwm_1_interrupts_19_IRQHandler /* TCPWM #1, Counter #19 */ 246 .long tcpwm_1_interrupts_20_IRQHandler /* TCPWM #1, Counter #20 */ 247 .long tcpwm_1_interrupts_21_IRQHandler /* TCPWM #1, Counter #21 */ 248 .long tcpwm_1_interrupts_22_IRQHandler /* TCPWM #1, Counter #22 */ 249 .long tcpwm_1_interrupts_23_IRQHandler /* TCPWM #1, Counter #23 */ 250 .long pass_interrupt_sar_IRQHandler /* SAR ADC interrupt */ 251 .long audioss_0_interrupt_i2s_IRQHandler /* I2S0 Audio interrupt */ 252 .long audioss_0_interrupt_pdm_IRQHandler /* PDM0/PCM0 Audio interrupt */ 253 .long audioss_1_interrupt_i2s_IRQHandler /* I2S1 Audio interrupt */ 254 .long profile_interrupt_IRQHandler /* Energy Profiler interrupt */ 255 .long smif_interrupt_IRQHandler /* Serial Memory Interface interrupt */ 256 .long usb_interrupt_hi_IRQHandler /* USB Interrupt */ 257 .long usb_interrupt_med_IRQHandler /* USB Interrupt */ 258 .long usb_interrupt_lo_IRQHandler /* USB Interrupt */ 259 .long sdhc_0_interrupt_wakeup_IRQHandler /* SDIO wakeup interrupt for mxsdhc */ 260 .long sdhc_0_interrupt_general_IRQHandler /* Consolidated interrupt for mxsdhc for everything else */ 261 .long sdhc_1_interrupt_wakeup_IRQHandler /* EEMC wakeup interrupt for mxsdhc, not used */ 262 .long sdhc_1_interrupt_general_IRQHandler /* Consolidated interrupt for mxsdhc for everything else */ 263 264 265 .size __Vectors, . - __Vectors 266 .equ __VectorsSize, . - __Vectors 267 268 .section .ram_vectors 269 .align 2 270 .globl __ramVectors 271__ramVectors: 272 .space __VectorsSize 273 .size __ramVectors, . - __ramVectors 274 275 276 .text 277 .thumb 278 .thumb_func 279 .align 2 280 281 /* 282 * Device startup customization 283 * 284 * Note. The global resources are not yet initialized (for example global variables, peripherals, clocks) 285 * because this function is executed as the first instruction in the ResetHandler. 286 * The PDL is also not initialized to use the proper register offsets. 287 * The user of this function is responsible for initializing the PDL and resources before using them. 288 */ 289 .weak Cy_OnResetUser 290 .func Cy_OnResetUser, Cy_OnResetUser 291 .type Cy_OnResetUser, %function 292 293Cy_OnResetUser: 294 bx lr 295 .size Cy_OnResetUser, . - Cy_OnResetUser 296 .endfunc 297 298 /* OS-specific low-level initialization */ 299 .weak cy_toolchain_init 300 .func cy_toolchain_init, cy_toolchain_init 301 .type cy_toolchain_init, %function 302 303cy_toolchain_init: 304 bx lr 305 .size cy_toolchain_init, . - cy_toolchain_init 306 .endfunc 307 308 /* Reset handler */ 309 .weak Reset_Handler 310 .type Reset_Handler, %function 311 312Reset_Handler: 313 bl Cy_OnResetUser 314 cpsid i 315 316/* Firstly it copies data from read only memory to RAM. There are two schemes 317 * to copy. One can copy more than one sections. Another can only copy 318 * one section. The former scheme needs more instructions and read-only 319 * data to implement than the latter. 320 * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes. */ 321 322#ifdef __STARTUP_COPY_MULTIPLE 323/* Multiple sections scheme. 324 * 325 * Between symbol address __copy_table_start__ and __copy_table_end__, 326 * there are array of triplets, each of which specify: 327 * offset 0: LMA of start of a section to copy from 328 * offset 4: VMA of start of a section to copy to 329 * offset 8: size of the section to copy. Must be multiply of 4 330 * 331 * All addresses must be aligned to 4 bytes boundary. 332 */ 333 ldr r4, =__copy_table_start__ 334 ldr r5, =__copy_table_end__ 335 336.L_loop0: 337 cmp r4, r5 338 bge .L_loop0_done 339 ldr r1, [r4] 340 ldr r2, [r4, #4] 341 ldr r3, [r4, #8] 342 343.L_loop0_0: 344 subs r3, #4 345 ittt ge 346 ldrge r0, [r1, r3] 347 strge r0, [r2, r3] 348 bge .L_loop0_0 349 350 adds r4, #12 351 b .L_loop0 352 353.L_loop0_done: 354#else 355/* Single section scheme. 356 * 357 * The ranges of copy from/to are specified by following symbols 358 * __etext: LMA of start of the section to copy from. Usually end of text 359 * __data_start__: VMA of start of the section to copy to 360 * __data_end__: VMA of end of the section to copy to 361 * 362 * All addresses must be aligned to 4 bytes boundary. 363 */ 364 ldr r1, =__etext 365 ldr r2, =__data_start__ 366 ldr r3, =__data_end__ 367 368.L_loop1: 369 cmp r2, r3 370 ittt lt 371 ldrlt r0, [r1], #4 372 strlt r0, [r2], #4 373 blt .L_loop1 374#endif /*__STARTUP_COPY_MULTIPLE */ 375 376/* This part of work usually is done in C library startup code. Otherwise, 377 * define this macro to enable it in this startup. 378 * 379 * There are two schemes too. One can clear multiple BSS sections. Another 380 * can only clear one section. The former is more size expensive than the 381 * latter. 382 * 383 * Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former. 384 * Otherwise define macro __STARTUP_CLEAR_BSS to choose the later. 385 */ 386#ifdef __STARTUP_CLEAR_BSS_MULTIPLE 387/* Multiple sections scheme. 388 * 389 * Between symbol address __copy_table_start__ and __copy_table_end__, 390 * there are array of tuples specifying: 391 * offset 0: Start of a BSS section 392 * offset 4: Size of this BSS section. Must be multiply of 4 393 */ 394 ldr r3, =__zero_table_start__ 395 ldr r4, =__zero_table_end__ 396 397.L_loop2: 398 cmp r3, r4 399 bge .L_loop2_done 400 ldr r1, [r3] 401 ldr r2, [r3, #4] 402 movs r0, 0 403 404.L_loop2_0: 405 subs r2, #4 406 itt ge 407 strge r0, [r1, r2] 408 bge .L_loop2_0 409 410 adds r3, #8 411 b .L_loop2 412.L_loop2_done: 413#elif defined (__STARTUP_CLEAR_BSS) 414/* Single BSS section scheme. 415 * 416 * The BSS section is specified by following symbols 417 * __bss_start__: start of the BSS section. 418 * __bss_end__: end of the BSS section. 419 * 420 * Both addresses must be aligned to 4 bytes boundary. 421 */ 422 ldr r1, =__bss_start__ 423 ldr r2, =__bss_end__ 424 425 movs r0, 0 426.L_loop3: 427 cmp r1, r2 428 itt lt 429 strlt r0, [r1], #4 430 blt .L_loop3 431#endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */ 432 433 /* Update Vector Table Offset Register. */ 434 ldr r0, =__ramVectors 435 ldr r1, =CY_CPU_VTOR_ADDR 436 str r0, [r1] 437 dsb 0xF 438 439 /* Enable the FPU if used */ 440 bl Cy_SystemInitFpuEnable 441 442#ifndef __NO_SYSTEM_INIT 443 bl SystemInit 444#endif 445 446 /* OS-specific low-level initialization */ 447 bl cy_toolchain_init 448 449 /* Call C/C++ static constructors */ 450 bl __libc_init_array 451 452 /* Execute main application */ 453 bl main 454 455 /* Call C/C++ static destructors */ 456 bl __libc_fini_array 457 458 /* Should never get here */ 459 b . 460 461 .pool 462 .size Reset_Handler, . - Reset_Handler 463 464 .align 1 465 .thumb_func 466 .weak Default_Handler 467 .type Default_Handler, %function 468 469Default_Handler: 470 b . 471 .size Default_Handler, . - Default_Handler 472 473 474 .weak Cy_SysLib_FaultHandler 475 .type Cy_SysLib_FaultHandler, %function 476 477Cy_SysLib_FaultHandler: 478 b . 479 .size Cy_SysLib_FaultHandler, . - Cy_SysLib_FaultHandler 480 .type Fault_Handler, %function 481 482Fault_Handler: 483 /* Storing LR content for Creator call stack trace */ 484 push {LR} 485 movs r0, #4 486 mov r1, LR 487 tst r0, r1 488 beq .L_MSP 489 mrs r0, PSP 490 b .L_API_call 491.L_MSP: 492 mrs r0, MSP 493 /* Compensation of stack pointer address due to pushing 4 bytes of LR */ 494 adds r0, r0, #4 495.L_API_call: 496 bl Cy_SysLib_FaultHandler 497 b . 498 .size Fault_Handler, . - Fault_Handler 499 500.macro def_fault_Handler fault_handler_name 501 .weak \fault_handler_name 502 .set \fault_handler_name, Fault_Handler 503 .endm 504 505/* Macro to define default handlers. Default handler 506 * will be weak symbol and just dead loops. They can be 507 * overwritten by other handlers */ 508 .macro def_irq_handler handler_name 509 .weak \handler_name 510 .set \handler_name, Default_Handler 511 .endm 512 513 def_irq_handler NMI_Handler 514 515 def_fault_Handler HardFault_Handler 516 def_fault_Handler MemManage_Handler 517 def_fault_Handler BusFault_Handler 518 def_fault_Handler UsageFault_Handler 519 520 def_irq_handler SVC_Handler 521 def_irq_handler DebugMon_Handler 522 def_irq_handler PendSV_Handler 523 def_irq_handler SysTick_Handler 524 525 def_irq_handler ioss_interrupts_gpio_0_IRQHandler /* GPIO Port Interrupt #0 */ 526 def_irq_handler ioss_interrupts_gpio_1_IRQHandler /* GPIO Port Interrupt #1 */ 527 def_irq_handler ioss_interrupts_gpio_2_IRQHandler /* GPIO Port Interrupt #2 */ 528 def_irq_handler ioss_interrupts_gpio_3_IRQHandler /* GPIO Port Interrupt #3 */ 529 def_irq_handler ioss_interrupts_gpio_4_IRQHandler /* GPIO Port Interrupt #4 */ 530 def_irq_handler ioss_interrupts_gpio_5_IRQHandler /* GPIO Port Interrupt #5 */ 531 def_irq_handler ioss_interrupts_gpio_6_IRQHandler /* GPIO Port Interrupt #6 */ 532 def_irq_handler ioss_interrupts_gpio_7_IRQHandler /* GPIO Port Interrupt #7 */ 533 def_irq_handler ioss_interrupts_gpio_8_IRQHandler /* GPIO Port Interrupt #8 */ 534 def_irq_handler ioss_interrupts_gpio_9_IRQHandler /* GPIO Port Interrupt #9 */ 535 def_irq_handler ioss_interrupts_gpio_10_IRQHandler /* GPIO Port Interrupt #10 */ 536 def_irq_handler ioss_interrupts_gpio_11_IRQHandler /* GPIO Port Interrupt #11 */ 537 def_irq_handler ioss_interrupts_gpio_12_IRQHandler /* GPIO Port Interrupt #12 */ 538 def_irq_handler ioss_interrupts_gpio_13_IRQHandler /* GPIO Port Interrupt #13 */ 539 def_irq_handler ioss_interrupts_gpio_14_IRQHandler /* GPIO Port Interrupt #14 */ 540 def_irq_handler ioss_interrupt_gpio_IRQHandler /* GPIO All Ports */ 541 def_irq_handler ioss_interrupt_vdd_IRQHandler /* GPIO Supply Detect Interrupt */ 542 def_irq_handler lpcomp_interrupt_IRQHandler /* Low Power Comparator Interrupt */ 543 def_irq_handler scb_8_interrupt_IRQHandler /* Serial Communication Block #8 (DeepSleep capable) */ 544 def_irq_handler srss_interrupt_mcwdt_0_IRQHandler /* Multi Counter Watchdog Timer interrupt */ 545 def_irq_handler srss_interrupt_mcwdt_1_IRQHandler /* Multi Counter Watchdog Timer interrupt */ 546 def_irq_handler srss_interrupt_backup_IRQHandler /* Backup domain interrupt */ 547 def_irq_handler srss_interrupt_IRQHandler /* Other combined Interrupts for SRSS (LVD, WDT, CLKCAL) */ 548 def_irq_handler cpuss_interrupts_ipc_0_IRQHandler /* CPUSS Inter Process Communication Interrupt #0 */ 549 def_irq_handler cpuss_interrupts_ipc_1_IRQHandler /* CPUSS Inter Process Communication Interrupt #1 */ 550 def_irq_handler cpuss_interrupts_ipc_2_IRQHandler /* CPUSS Inter Process Communication Interrupt #2 */ 551 def_irq_handler cpuss_interrupts_ipc_3_IRQHandler /* CPUSS Inter Process Communication Interrupt #3 */ 552 def_irq_handler cpuss_interrupts_ipc_4_IRQHandler /* CPUSS Inter Process Communication Interrupt #4 */ 553 def_irq_handler cpuss_interrupts_ipc_5_IRQHandler /* CPUSS Inter Process Communication Interrupt #5 */ 554 def_irq_handler cpuss_interrupts_ipc_6_IRQHandler /* CPUSS Inter Process Communication Interrupt #6 */ 555 def_irq_handler cpuss_interrupts_ipc_7_IRQHandler /* CPUSS Inter Process Communication Interrupt #7 */ 556 def_irq_handler cpuss_interrupts_ipc_8_IRQHandler /* CPUSS Inter Process Communication Interrupt #8 */ 557 def_irq_handler cpuss_interrupts_ipc_9_IRQHandler /* CPUSS Inter Process Communication Interrupt #9 */ 558 def_irq_handler cpuss_interrupts_ipc_10_IRQHandler /* CPUSS Inter Process Communication Interrupt #10 */ 559 def_irq_handler cpuss_interrupts_ipc_11_IRQHandler /* CPUSS Inter Process Communication Interrupt #11 */ 560 def_irq_handler cpuss_interrupts_ipc_12_IRQHandler /* CPUSS Inter Process Communication Interrupt #12 */ 561 def_irq_handler cpuss_interrupts_ipc_13_IRQHandler /* CPUSS Inter Process Communication Interrupt #13 */ 562 def_irq_handler cpuss_interrupts_ipc_14_IRQHandler /* CPUSS Inter Process Communication Interrupt #14 */ 563 def_irq_handler cpuss_interrupts_ipc_15_IRQHandler /* CPUSS Inter Process Communication Interrupt #15 */ 564 def_irq_handler scb_0_interrupt_IRQHandler /* Serial Communication Block #0 */ 565 def_irq_handler scb_1_interrupt_IRQHandler /* Serial Communication Block #1 */ 566 def_irq_handler scb_2_interrupt_IRQHandler /* Serial Communication Block #2 */ 567 def_irq_handler scb_3_interrupt_IRQHandler /* Serial Communication Block #3 */ 568 def_irq_handler scb_4_interrupt_IRQHandler /* Serial Communication Block #4 */ 569 def_irq_handler scb_5_interrupt_IRQHandler /* Serial Communication Block #5 */ 570 def_irq_handler scb_6_interrupt_IRQHandler /* Serial Communication Block #6 */ 571 def_irq_handler scb_7_interrupt_IRQHandler /* Serial Communication Block #7 */ 572 def_irq_handler scb_9_interrupt_IRQHandler /* Serial Communication Block #9 */ 573 def_irq_handler scb_10_interrupt_IRQHandler /* Serial Communication Block #10 */ 574 def_irq_handler scb_11_interrupt_IRQHandler /* Serial Communication Block #11 */ 575 def_irq_handler scb_12_interrupt_IRQHandler /* Serial Communication Block #12 */ 576 def_irq_handler csd_interrupt_IRQHandler /* CSD (Capsense) interrupt */ 577 def_irq_handler cpuss_interrupts_dmac_0_IRQHandler /* CPUSS DMAC, Channel #0 */ 578 def_irq_handler cpuss_interrupts_dmac_1_IRQHandler /* CPUSS DMAC, Channel #1 */ 579 def_irq_handler cpuss_interrupts_dmac_2_IRQHandler /* CPUSS DMAC, Channel #2 */ 580 def_irq_handler cpuss_interrupts_dmac_3_IRQHandler /* CPUSS DMAC, Channel #3 */ 581 def_irq_handler cpuss_interrupts_dw0_0_IRQHandler /* CPUSS DataWire #0, Channel #0 */ 582 def_irq_handler cpuss_interrupts_dw0_1_IRQHandler /* CPUSS DataWire #0, Channel #1 */ 583 def_irq_handler cpuss_interrupts_dw0_2_IRQHandler /* CPUSS DataWire #0, Channel #2 */ 584 def_irq_handler cpuss_interrupts_dw0_3_IRQHandler /* CPUSS DataWire #0, Channel #3 */ 585 def_irq_handler cpuss_interrupts_dw0_4_IRQHandler /* CPUSS DataWire #0, Channel #4 */ 586 def_irq_handler cpuss_interrupts_dw0_5_IRQHandler /* CPUSS DataWire #0, Channel #5 */ 587 def_irq_handler cpuss_interrupts_dw0_6_IRQHandler /* CPUSS DataWire #0, Channel #6 */ 588 def_irq_handler cpuss_interrupts_dw0_7_IRQHandler /* CPUSS DataWire #0, Channel #7 */ 589 def_irq_handler cpuss_interrupts_dw0_8_IRQHandler /* CPUSS DataWire #0, Channel #8 */ 590 def_irq_handler cpuss_interrupts_dw0_9_IRQHandler /* CPUSS DataWire #0, Channel #9 */ 591 def_irq_handler cpuss_interrupts_dw0_10_IRQHandler /* CPUSS DataWire #0, Channel #10 */ 592 def_irq_handler cpuss_interrupts_dw0_11_IRQHandler /* CPUSS DataWire #0, Channel #11 */ 593 def_irq_handler cpuss_interrupts_dw0_12_IRQHandler /* CPUSS DataWire #0, Channel #12 */ 594 def_irq_handler cpuss_interrupts_dw0_13_IRQHandler /* CPUSS DataWire #0, Channel #13 */ 595 def_irq_handler cpuss_interrupts_dw0_14_IRQHandler /* CPUSS DataWire #0, Channel #14 */ 596 def_irq_handler cpuss_interrupts_dw0_15_IRQHandler /* CPUSS DataWire #0, Channel #15 */ 597 def_irq_handler cpuss_interrupts_dw0_16_IRQHandler /* CPUSS DataWire #0, Channel #16 */ 598 def_irq_handler cpuss_interrupts_dw0_17_IRQHandler /* CPUSS DataWire #0, Channel #17 */ 599 def_irq_handler cpuss_interrupts_dw0_18_IRQHandler /* CPUSS DataWire #0, Channel #18 */ 600 def_irq_handler cpuss_interrupts_dw0_19_IRQHandler /* CPUSS DataWire #0, Channel #19 */ 601 def_irq_handler cpuss_interrupts_dw0_20_IRQHandler /* CPUSS DataWire #0, Channel #20 */ 602 def_irq_handler cpuss_interrupts_dw0_21_IRQHandler /* CPUSS DataWire #0, Channel #21 */ 603 def_irq_handler cpuss_interrupts_dw0_22_IRQHandler /* CPUSS DataWire #0, Channel #22 */ 604 def_irq_handler cpuss_interrupts_dw0_23_IRQHandler /* CPUSS DataWire #0, Channel #23 */ 605 def_irq_handler cpuss_interrupts_dw0_24_IRQHandler /* CPUSS DataWire #0, Channel #24 */ 606 def_irq_handler cpuss_interrupts_dw0_25_IRQHandler /* CPUSS DataWire #0, Channel #25 */ 607 def_irq_handler cpuss_interrupts_dw0_26_IRQHandler /* CPUSS DataWire #0, Channel #26 */ 608 def_irq_handler cpuss_interrupts_dw0_27_IRQHandler /* CPUSS DataWire #0, Channel #27 */ 609 def_irq_handler cpuss_interrupts_dw0_28_IRQHandler /* CPUSS DataWire #0, Channel #28 */ 610 def_irq_handler cpuss_interrupts_dw1_0_IRQHandler /* CPUSS DataWire #1, Channel #0 */ 611 def_irq_handler cpuss_interrupts_dw1_1_IRQHandler /* CPUSS DataWire #1, Channel #1 */ 612 def_irq_handler cpuss_interrupts_dw1_2_IRQHandler /* CPUSS DataWire #1, Channel #2 */ 613 def_irq_handler cpuss_interrupts_dw1_3_IRQHandler /* CPUSS DataWire #1, Channel #3 */ 614 def_irq_handler cpuss_interrupts_dw1_4_IRQHandler /* CPUSS DataWire #1, Channel #4 */ 615 def_irq_handler cpuss_interrupts_dw1_5_IRQHandler /* CPUSS DataWire #1, Channel #5 */ 616 def_irq_handler cpuss_interrupts_dw1_6_IRQHandler /* CPUSS DataWire #1, Channel #6 */ 617 def_irq_handler cpuss_interrupts_dw1_7_IRQHandler /* CPUSS DataWire #1, Channel #7 */ 618 def_irq_handler cpuss_interrupts_dw1_8_IRQHandler /* CPUSS DataWire #1, Channel #8 */ 619 def_irq_handler cpuss_interrupts_dw1_9_IRQHandler /* CPUSS DataWire #1, Channel #9 */ 620 def_irq_handler cpuss_interrupts_dw1_10_IRQHandler /* CPUSS DataWire #1, Channel #10 */ 621 def_irq_handler cpuss_interrupts_dw1_11_IRQHandler /* CPUSS DataWire #1, Channel #11 */ 622 def_irq_handler cpuss_interrupts_dw1_12_IRQHandler /* CPUSS DataWire #1, Channel #12 */ 623 def_irq_handler cpuss_interrupts_dw1_13_IRQHandler /* CPUSS DataWire #1, Channel #13 */ 624 def_irq_handler cpuss_interrupts_dw1_14_IRQHandler /* CPUSS DataWire #1, Channel #14 */ 625 def_irq_handler cpuss_interrupts_dw1_15_IRQHandler /* CPUSS DataWire #1, Channel #15 */ 626 def_irq_handler cpuss_interrupts_dw1_16_IRQHandler /* CPUSS DataWire #1, Channel #16 */ 627 def_irq_handler cpuss_interrupts_dw1_17_IRQHandler /* CPUSS DataWire #1, Channel #17 */ 628 def_irq_handler cpuss_interrupts_dw1_18_IRQHandler /* CPUSS DataWire #1, Channel #18 */ 629 def_irq_handler cpuss_interrupts_dw1_19_IRQHandler /* CPUSS DataWire #1, Channel #19 */ 630 def_irq_handler cpuss_interrupts_dw1_20_IRQHandler /* CPUSS DataWire #1, Channel #20 */ 631 def_irq_handler cpuss_interrupts_dw1_21_IRQHandler /* CPUSS DataWire #1, Channel #21 */ 632 def_irq_handler cpuss_interrupts_dw1_22_IRQHandler /* CPUSS DataWire #1, Channel #22 */ 633 def_irq_handler cpuss_interrupts_dw1_23_IRQHandler /* CPUSS DataWire #1, Channel #23 */ 634 def_irq_handler cpuss_interrupts_dw1_24_IRQHandler /* CPUSS DataWire #1, Channel #24 */ 635 def_irq_handler cpuss_interrupts_dw1_25_IRQHandler /* CPUSS DataWire #1, Channel #25 */ 636 def_irq_handler cpuss_interrupts_dw1_26_IRQHandler /* CPUSS DataWire #1, Channel #26 */ 637 def_irq_handler cpuss_interrupts_dw1_27_IRQHandler /* CPUSS DataWire #1, Channel #27 */ 638 def_irq_handler cpuss_interrupts_dw1_28_IRQHandler /* CPUSS DataWire #1, Channel #28 */ 639 def_irq_handler cpuss_interrupts_fault_0_IRQHandler /* CPUSS Fault Structure Interrupt #0 */ 640 def_irq_handler cpuss_interrupts_fault_1_IRQHandler /* CPUSS Fault Structure Interrupt #1 */ 641 def_irq_handler cpuss_interrupt_crypto_IRQHandler /* CRYPTO Accelerator Interrupt */ 642 def_irq_handler cpuss_interrupt_fm_IRQHandler /* FLASH Macro Interrupt */ 643 def_irq_handler cpuss_interrupts_cm4_fp_IRQHandler /* Floating Point operation fault */ 644 def_irq_handler cpuss_interrupts_cm0_cti_0_IRQHandler /* CM0+ CTI #0 */ 645 def_irq_handler cpuss_interrupts_cm0_cti_1_IRQHandler /* CM0+ CTI #1 */ 646 def_irq_handler cpuss_interrupts_cm4_cti_0_IRQHandler /* CM4 CTI #0 */ 647 def_irq_handler cpuss_interrupts_cm4_cti_1_IRQHandler /* CM4 CTI #1 */ 648 def_irq_handler tcpwm_0_interrupts_0_IRQHandler /* TCPWM #0, Counter #0 */ 649 def_irq_handler tcpwm_0_interrupts_1_IRQHandler /* TCPWM #0, Counter #1 */ 650 def_irq_handler tcpwm_0_interrupts_2_IRQHandler /* TCPWM #0, Counter #2 */ 651 def_irq_handler tcpwm_0_interrupts_3_IRQHandler /* TCPWM #0, Counter #3 */ 652 def_irq_handler tcpwm_0_interrupts_4_IRQHandler /* TCPWM #0, Counter #4 */ 653 def_irq_handler tcpwm_0_interrupts_5_IRQHandler /* TCPWM #0, Counter #5 */ 654 def_irq_handler tcpwm_0_interrupts_6_IRQHandler /* TCPWM #0, Counter #6 */ 655 def_irq_handler tcpwm_0_interrupts_7_IRQHandler /* TCPWM #0, Counter #7 */ 656 def_irq_handler tcpwm_1_interrupts_0_IRQHandler /* TCPWM #1, Counter #0 */ 657 def_irq_handler tcpwm_1_interrupts_1_IRQHandler /* TCPWM #1, Counter #1 */ 658 def_irq_handler tcpwm_1_interrupts_2_IRQHandler /* TCPWM #1, Counter #2 */ 659 def_irq_handler tcpwm_1_interrupts_3_IRQHandler /* TCPWM #1, Counter #3 */ 660 def_irq_handler tcpwm_1_interrupts_4_IRQHandler /* TCPWM #1, Counter #4 */ 661 def_irq_handler tcpwm_1_interrupts_5_IRQHandler /* TCPWM #1, Counter #5 */ 662 def_irq_handler tcpwm_1_interrupts_6_IRQHandler /* TCPWM #1, Counter #6 */ 663 def_irq_handler tcpwm_1_interrupts_7_IRQHandler /* TCPWM #1, Counter #7 */ 664 def_irq_handler tcpwm_1_interrupts_8_IRQHandler /* TCPWM #1, Counter #8 */ 665 def_irq_handler tcpwm_1_interrupts_9_IRQHandler /* TCPWM #1, Counter #9 */ 666 def_irq_handler tcpwm_1_interrupts_10_IRQHandler /* TCPWM #1, Counter #10 */ 667 def_irq_handler tcpwm_1_interrupts_11_IRQHandler /* TCPWM #1, Counter #11 */ 668 def_irq_handler tcpwm_1_interrupts_12_IRQHandler /* TCPWM #1, Counter #12 */ 669 def_irq_handler tcpwm_1_interrupts_13_IRQHandler /* TCPWM #1, Counter #13 */ 670 def_irq_handler tcpwm_1_interrupts_14_IRQHandler /* TCPWM #1, Counter #14 */ 671 def_irq_handler tcpwm_1_interrupts_15_IRQHandler /* TCPWM #1, Counter #15 */ 672 def_irq_handler tcpwm_1_interrupts_16_IRQHandler /* TCPWM #1, Counter #16 */ 673 def_irq_handler tcpwm_1_interrupts_17_IRQHandler /* TCPWM #1, Counter #17 */ 674 def_irq_handler tcpwm_1_interrupts_18_IRQHandler /* TCPWM #1, Counter #18 */ 675 def_irq_handler tcpwm_1_interrupts_19_IRQHandler /* TCPWM #1, Counter #19 */ 676 def_irq_handler tcpwm_1_interrupts_20_IRQHandler /* TCPWM #1, Counter #20 */ 677 def_irq_handler tcpwm_1_interrupts_21_IRQHandler /* TCPWM #1, Counter #21 */ 678 def_irq_handler tcpwm_1_interrupts_22_IRQHandler /* TCPWM #1, Counter #22 */ 679 def_irq_handler tcpwm_1_interrupts_23_IRQHandler /* TCPWM #1, Counter #23 */ 680 def_irq_handler pass_interrupt_sar_IRQHandler /* SAR ADC interrupt */ 681 def_irq_handler audioss_0_interrupt_i2s_IRQHandler /* I2S0 Audio interrupt */ 682 def_irq_handler audioss_0_interrupt_pdm_IRQHandler /* PDM0/PCM0 Audio interrupt */ 683 def_irq_handler audioss_1_interrupt_i2s_IRQHandler /* I2S1 Audio interrupt */ 684 def_irq_handler profile_interrupt_IRQHandler /* Energy Profiler interrupt */ 685 def_irq_handler smif_interrupt_IRQHandler /* Serial Memory Interface interrupt */ 686 def_irq_handler usb_interrupt_hi_IRQHandler /* USB Interrupt */ 687 def_irq_handler usb_interrupt_med_IRQHandler /* USB Interrupt */ 688 def_irq_handler usb_interrupt_lo_IRQHandler /* USB Interrupt */ 689 def_irq_handler sdhc_0_interrupt_wakeup_IRQHandler /* SDIO wakeup interrupt for mxsdhc */ 690 def_irq_handler sdhc_0_interrupt_general_IRQHandler /* Consolidated interrupt for mxsdhc for everything else */ 691 def_irq_handler sdhc_1_interrupt_wakeup_IRQHandler /* EEMC wakeup interrupt for mxsdhc, not used */ 692 def_irq_handler sdhc_1_interrupt_general_IRQHandler /* Consolidated interrupt for mxsdhc for everything else */ 693 694 .end 695 696 697/* [] END OF FILE */ 698