Mouse code for the MacroRat
mbed-dev/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F411xE/device/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.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 | ****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 3 | * @file startup_stm32f411xe.s |
sahilmgandhi | 18:6a4db94011d3 | 4 | * @author MCD Application Team |
sahilmgandhi | 18:6a4db94011d3 | 5 | * @version V2.3.0 |
sahilmgandhi | 18:6a4db94011d3 | 6 | * @date 02-March-2015 |
sahilmgandhi | 18:6a4db94011d3 | 7 | * @brief STM32F411xExx Devices vector table for Atollic TrueSTUDIO toolchain. |
sahilmgandhi | 18:6a4db94011d3 | 8 | * This module performs: |
sahilmgandhi | 18:6a4db94011d3 | 9 | * - Set the initial SP |
sahilmgandhi | 18:6a4db94011d3 | 10 | * - Set the initial PC == Reset_Handler, |
sahilmgandhi | 18:6a4db94011d3 | 11 | * - Set the vector table entries with the exceptions ISR address |
sahilmgandhi | 18:6a4db94011d3 | 12 | * - Branches to main in the C library (which eventually |
sahilmgandhi | 18:6a4db94011d3 | 13 | * calls main()). |
sahilmgandhi | 18:6a4db94011d3 | 14 | * After Reset the Cortex-M4 processor is in Thread mode, |
sahilmgandhi | 18:6a4db94011d3 | 15 | * priority is Privileged, and the Stack is set to Main. |
sahilmgandhi | 18:6a4db94011d3 | 16 | ****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 17 | * @attention |
sahilmgandhi | 18:6a4db94011d3 | 18 | * |
sahilmgandhi | 18:6a4db94011d3 | 19 | * <h2><center>© COPYRIGHT 2015 STMicroelectronics</center></h2> |
sahilmgandhi | 18:6a4db94011d3 | 20 | * |
sahilmgandhi | 18:6a4db94011d3 | 21 | * Redistribution and use in source and binary forms, with or without modification, |
sahilmgandhi | 18:6a4db94011d3 | 22 | * are permitted provided that the following conditions are met: |
sahilmgandhi | 18:6a4db94011d3 | 23 | * 1. Redistributions of source code must retain the above copyright notice, |
sahilmgandhi | 18:6a4db94011d3 | 24 | * this list of conditions and the following disclaimer. |
sahilmgandhi | 18:6a4db94011d3 | 25 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
sahilmgandhi | 18:6a4db94011d3 | 26 | * this list of conditions and the following disclaimer in the documentation |
sahilmgandhi | 18:6a4db94011d3 | 27 | * and/or other materials provided with the distribution. |
sahilmgandhi | 18:6a4db94011d3 | 28 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
sahilmgandhi | 18:6a4db94011d3 | 29 | * may be used to endorse or promote products derived from this software |
sahilmgandhi | 18:6a4db94011d3 | 30 | * without specific prior written permission. |
sahilmgandhi | 18:6a4db94011d3 | 31 | * |
sahilmgandhi | 18:6a4db94011d3 | 32 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
sahilmgandhi | 18:6a4db94011d3 | 33 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
sahilmgandhi | 18:6a4db94011d3 | 34 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
sahilmgandhi | 18:6a4db94011d3 | 35 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
sahilmgandhi | 18:6a4db94011d3 | 36 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
sahilmgandhi | 18:6a4db94011d3 | 37 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
sahilmgandhi | 18:6a4db94011d3 | 38 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
sahilmgandhi | 18:6a4db94011d3 | 39 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
sahilmgandhi | 18:6a4db94011d3 | 40 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
sahilmgandhi | 18:6a4db94011d3 | 41 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
sahilmgandhi | 18:6a4db94011d3 | 42 | * |
sahilmgandhi | 18:6a4db94011d3 | 43 | ****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 44 | */ |
sahilmgandhi | 18:6a4db94011d3 | 45 | |
sahilmgandhi | 18:6a4db94011d3 | 46 | .syntax unified |
sahilmgandhi | 18:6a4db94011d3 | 47 | .cpu cortex-m4 |
sahilmgandhi | 18:6a4db94011d3 | 48 | .fpu softvfp |
sahilmgandhi | 18:6a4db94011d3 | 49 | .thumb |
sahilmgandhi | 18:6a4db94011d3 | 50 | |
sahilmgandhi | 18:6a4db94011d3 | 51 | .global g_pfnVectors |
sahilmgandhi | 18:6a4db94011d3 | 52 | .global Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 53 | |
sahilmgandhi | 18:6a4db94011d3 | 54 | /* start address for the initialization values of the .data section. |
sahilmgandhi | 18:6a4db94011d3 | 55 | defined in linker script */ |
sahilmgandhi | 18:6a4db94011d3 | 56 | .word _sidata |
sahilmgandhi | 18:6a4db94011d3 | 57 | /* start address for the .data section. defined in linker script */ |
sahilmgandhi | 18:6a4db94011d3 | 58 | .word _sdata |
sahilmgandhi | 18:6a4db94011d3 | 59 | /* end address for the .data section. defined in linker script */ |
sahilmgandhi | 18:6a4db94011d3 | 60 | .word _edata |
sahilmgandhi | 18:6a4db94011d3 | 61 | /* stack used for SystemInit_ExtMemCtl; always internal RAM used */ |
sahilmgandhi | 18:6a4db94011d3 | 62 | |
sahilmgandhi | 18:6a4db94011d3 | 63 | /** |
sahilmgandhi | 18:6a4db94011d3 | 64 | * @brief This is the code that gets called when the processor first |
sahilmgandhi | 18:6a4db94011d3 | 65 | * starts execution following a reset event. Only the absolutely |
sahilmgandhi | 18:6a4db94011d3 | 66 | * necessary set is performed, after which the application |
sahilmgandhi | 18:6a4db94011d3 | 67 | * supplied main() routine is called. |
sahilmgandhi | 18:6a4db94011d3 | 68 | * @param None |
sahilmgandhi | 18:6a4db94011d3 | 69 | * @retval : None |
sahilmgandhi | 18:6a4db94011d3 | 70 | */ |
sahilmgandhi | 18:6a4db94011d3 | 71 | |
sahilmgandhi | 18:6a4db94011d3 | 72 | .section .text.Reset_Handler |
sahilmgandhi | 18:6a4db94011d3 | 73 | .weak Reset_Handler |
sahilmgandhi | 18:6a4db94011d3 | 74 | .type Reset_Handler, %function |
sahilmgandhi | 18:6a4db94011d3 | 75 | Reset_Handler: |
sahilmgandhi | 18:6a4db94011d3 | 76 | ldr sp, =_estack /* set stack pointer */ |
sahilmgandhi | 18:6a4db94011d3 | 77 | |
sahilmgandhi | 18:6a4db94011d3 | 78 | /* Copy the data segment initializers from flash to SRAM */ |
sahilmgandhi | 18:6a4db94011d3 | 79 | movs r1, #0 |
sahilmgandhi | 18:6a4db94011d3 | 80 | b LoopCopyDataInit |
sahilmgandhi | 18:6a4db94011d3 | 81 | |
sahilmgandhi | 18:6a4db94011d3 | 82 | CopyDataInit: |
sahilmgandhi | 18:6a4db94011d3 | 83 | ldr r3, =_sidata |
sahilmgandhi | 18:6a4db94011d3 | 84 | ldr r3, [r3, r1] |
sahilmgandhi | 18:6a4db94011d3 | 85 | str r3, [r0, r1] |
sahilmgandhi | 18:6a4db94011d3 | 86 | adds r1, r1, #4 |
sahilmgandhi | 18:6a4db94011d3 | 87 | |
sahilmgandhi | 18:6a4db94011d3 | 88 | LoopCopyDataInit: |
sahilmgandhi | 18:6a4db94011d3 | 89 | ldr r0, =_sdata |
sahilmgandhi | 18:6a4db94011d3 | 90 | ldr r3, =_edata |
sahilmgandhi | 18:6a4db94011d3 | 91 | adds r2, r0, r1 |
sahilmgandhi | 18:6a4db94011d3 | 92 | cmp r2, r3 |
sahilmgandhi | 18:6a4db94011d3 | 93 | bcc CopyDataInit |
sahilmgandhi | 18:6a4db94011d3 | 94 | |
sahilmgandhi | 18:6a4db94011d3 | 95 | /* Call the clock system intitialization function.*/ |
sahilmgandhi | 18:6a4db94011d3 | 96 | bl SystemInit |
sahilmgandhi | 18:6a4db94011d3 | 97 | /* Call static constructors */ |
sahilmgandhi | 18:6a4db94011d3 | 98 | //bl __libc_init_array |
sahilmgandhi | 18:6a4db94011d3 | 99 | /* Call the application's entry point.*/ |
sahilmgandhi | 18:6a4db94011d3 | 100 | //bl main |
sahilmgandhi | 18:6a4db94011d3 | 101 | // Calling the crt0 'cold-start' entry point. There __libc_init_array is called |
sahilmgandhi | 18:6a4db94011d3 | 102 | // and when existing hardware_init_hook() and software_init_hook() before |
sahilmgandhi | 18:6a4db94011d3 | 103 | // starting main(). software_init_hook() is available and has to be called due |
sahilmgandhi | 18:6a4db94011d3 | 104 | // to initializsation when using rtos. |
sahilmgandhi | 18:6a4db94011d3 | 105 | bl _start |
sahilmgandhi | 18:6a4db94011d3 | 106 | bx lr |
sahilmgandhi | 18:6a4db94011d3 | 107 | .size Reset_Handler, .-Reset_Handler |
sahilmgandhi | 18:6a4db94011d3 | 108 | |
sahilmgandhi | 18:6a4db94011d3 | 109 | /** |
sahilmgandhi | 18:6a4db94011d3 | 110 | * @brief This is the code that gets called when the processor receives an |
sahilmgandhi | 18:6a4db94011d3 | 111 | * unexpected interrupt. This simply enters an infinite loop, preserving |
sahilmgandhi | 18:6a4db94011d3 | 112 | * the system state for examination by a debugger. |
sahilmgandhi | 18:6a4db94011d3 | 113 | * @param None |
sahilmgandhi | 18:6a4db94011d3 | 114 | * @retval None |
sahilmgandhi | 18:6a4db94011d3 | 115 | */ |
sahilmgandhi | 18:6a4db94011d3 | 116 | .section .text.Default_Handler,"ax",%progbits |
sahilmgandhi | 18:6a4db94011d3 | 117 | Default_Handler: |
sahilmgandhi | 18:6a4db94011d3 | 118 | Infinite_Loop: |
sahilmgandhi | 18:6a4db94011d3 | 119 | b Infinite_Loop |
sahilmgandhi | 18:6a4db94011d3 | 120 | .size Default_Handler, .-Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 121 | /****************************************************************************** |
sahilmgandhi | 18:6a4db94011d3 | 122 | * |
sahilmgandhi | 18:6a4db94011d3 | 123 | * The minimal vector table for a Cortex M3. Note that the proper constructs |
sahilmgandhi | 18:6a4db94011d3 | 124 | * must be placed on this to ensure that it ends up at physical address |
sahilmgandhi | 18:6a4db94011d3 | 125 | * 0x0000.0000. |
sahilmgandhi | 18:6a4db94011d3 | 126 | * |
sahilmgandhi | 18:6a4db94011d3 | 127 | *******************************************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 128 | .section .isr_vector,"a",%progbits |
sahilmgandhi | 18:6a4db94011d3 | 129 | .type g_pfnVectors, %object |
sahilmgandhi | 18:6a4db94011d3 | 130 | .size g_pfnVectors, .-g_pfnVectors |
sahilmgandhi | 18:6a4db94011d3 | 131 | |
sahilmgandhi | 18:6a4db94011d3 | 132 | g_pfnVectors: |
sahilmgandhi | 18:6a4db94011d3 | 133 | .word _estack |
sahilmgandhi | 18:6a4db94011d3 | 134 | .word Reset_Handler |
sahilmgandhi | 18:6a4db94011d3 | 135 | .word NMI_Handler |
sahilmgandhi | 18:6a4db94011d3 | 136 | .word HardFault_Handler |
sahilmgandhi | 18:6a4db94011d3 | 137 | .word MemManage_Handler |
sahilmgandhi | 18:6a4db94011d3 | 138 | .word BusFault_Handler |
sahilmgandhi | 18:6a4db94011d3 | 139 | .word UsageFault_Handler |
sahilmgandhi | 18:6a4db94011d3 | 140 | .word 0 |
sahilmgandhi | 18:6a4db94011d3 | 141 | .word 0 |
sahilmgandhi | 18:6a4db94011d3 | 142 | .word 0 |
sahilmgandhi | 18:6a4db94011d3 | 143 | .word 0 |
sahilmgandhi | 18:6a4db94011d3 | 144 | .word SVC_Handler |
sahilmgandhi | 18:6a4db94011d3 | 145 | .word DebugMon_Handler |
sahilmgandhi | 18:6a4db94011d3 | 146 | .word 0 |
sahilmgandhi | 18:6a4db94011d3 | 147 | .word PendSV_Handler |
sahilmgandhi | 18:6a4db94011d3 | 148 | .word SysTick_Handler |
sahilmgandhi | 18:6a4db94011d3 | 149 | |
sahilmgandhi | 18:6a4db94011d3 | 150 | /* External Interrupts */ |
sahilmgandhi | 18:6a4db94011d3 | 151 | .word WWDG_IRQHandler /* Window WatchDog */ |
sahilmgandhi | 18:6a4db94011d3 | 152 | .word PVD_IRQHandler /* PVD through EXTI Line detection */ |
sahilmgandhi | 18:6a4db94011d3 | 153 | .word TAMP_STAMP_IRQHandler /* Tamper and TimeStamps through the EXTI line */ |
sahilmgandhi | 18:6a4db94011d3 | 154 | .word RTC_WKUP_IRQHandler /* RTC Wakeup through the EXTI line */ |
sahilmgandhi | 18:6a4db94011d3 | 155 | .word FLASH_IRQHandler /* FLASH */ |
sahilmgandhi | 18:6a4db94011d3 | 156 | .word RCC_IRQHandler /* RCC */ |
sahilmgandhi | 18:6a4db94011d3 | 157 | .word EXTI0_IRQHandler /* EXTI Line0 */ |
sahilmgandhi | 18:6a4db94011d3 | 158 | .word EXTI1_IRQHandler /* EXTI Line1 */ |
sahilmgandhi | 18:6a4db94011d3 | 159 | .word EXTI2_IRQHandler /* EXTI Line2 */ |
sahilmgandhi | 18:6a4db94011d3 | 160 | .word EXTI3_IRQHandler /* EXTI Line3 */ |
sahilmgandhi | 18:6a4db94011d3 | 161 | .word EXTI4_IRQHandler /* EXTI Line4 */ |
sahilmgandhi | 18:6a4db94011d3 | 162 | .word DMA1_Stream0_IRQHandler /* DMA1 Stream 0 */ |
sahilmgandhi | 18:6a4db94011d3 | 163 | .word DMA1_Stream1_IRQHandler /* DMA1 Stream 1 */ |
sahilmgandhi | 18:6a4db94011d3 | 164 | .word DMA1_Stream2_IRQHandler /* DMA1 Stream 2 */ |
sahilmgandhi | 18:6a4db94011d3 | 165 | .word DMA1_Stream3_IRQHandler /* DMA1 Stream 3 */ |
sahilmgandhi | 18:6a4db94011d3 | 166 | .word DMA1_Stream4_IRQHandler /* DMA1 Stream 4 */ |
sahilmgandhi | 18:6a4db94011d3 | 167 | .word DMA1_Stream5_IRQHandler /* DMA1 Stream 5 */ |
sahilmgandhi | 18:6a4db94011d3 | 168 | .word DMA1_Stream6_IRQHandler /* DMA1 Stream 6 */ |
sahilmgandhi | 18:6a4db94011d3 | 169 | .word ADC_IRQHandler /* ADC1, ADC2 and ADC3s */ |
sahilmgandhi | 18:6a4db94011d3 | 170 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 171 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 172 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 173 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 174 | .word EXTI9_5_IRQHandler /* External Line[9:5]s */ |
sahilmgandhi | 18:6a4db94011d3 | 175 | .word TIM1_BRK_TIM9_IRQHandler /* TIM1 Break and TIM9 */ |
sahilmgandhi | 18:6a4db94011d3 | 176 | .word TIM1_UP_TIM10_IRQHandler /* TIM1 Update and TIM10 */ |
sahilmgandhi | 18:6a4db94011d3 | 177 | .word TIM1_TRG_COM_TIM11_IRQHandler /* TIM1 Trigger and Commutation and TIM11 */ |
sahilmgandhi | 18:6a4db94011d3 | 178 | .word TIM1_CC_IRQHandler /* TIM1 Capture Compare */ |
sahilmgandhi | 18:6a4db94011d3 | 179 | .word TIM2_IRQHandler /* TIM2 */ |
sahilmgandhi | 18:6a4db94011d3 | 180 | .word TIM3_IRQHandler /* TIM3 */ |
sahilmgandhi | 18:6a4db94011d3 | 181 | .word TIM4_IRQHandler /* TIM4 */ |
sahilmgandhi | 18:6a4db94011d3 | 182 | .word I2C1_EV_IRQHandler /* I2C1 Event */ |
sahilmgandhi | 18:6a4db94011d3 | 183 | .word I2C1_ER_IRQHandler /* I2C1 Error */ |
sahilmgandhi | 18:6a4db94011d3 | 184 | .word I2C2_EV_IRQHandler /* I2C2 Event */ |
sahilmgandhi | 18:6a4db94011d3 | 185 | .word I2C2_ER_IRQHandler /* I2C2 Error */ |
sahilmgandhi | 18:6a4db94011d3 | 186 | .word SPI1_IRQHandler /* SPI1 */ |
sahilmgandhi | 18:6a4db94011d3 | 187 | .word SPI2_IRQHandler /* SPI2 */ |
sahilmgandhi | 18:6a4db94011d3 | 188 | .word USART1_IRQHandler /* USART1 */ |
sahilmgandhi | 18:6a4db94011d3 | 189 | .word USART2_IRQHandler /* USART2 */ |
sahilmgandhi | 18:6a4db94011d3 | 190 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 191 | .word EXTI15_10_IRQHandler /* External Line[15:10]s */ |
sahilmgandhi | 18:6a4db94011d3 | 192 | .word RTC_Alarm_IRQHandler /* RTC Alarm (A and B) through EXTI Line */ |
sahilmgandhi | 18:6a4db94011d3 | 193 | .word OTG_FS_WKUP_IRQHandler /* USB OTG FS Wakeup through EXTI line */ |
sahilmgandhi | 18:6a4db94011d3 | 194 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 195 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 196 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 197 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 198 | .word DMA1_Stream7_IRQHandler /* DMA1 Stream7 */ |
sahilmgandhi | 18:6a4db94011d3 | 199 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 200 | .word SDIO_IRQHandler /* SDIO */ |
sahilmgandhi | 18:6a4db94011d3 | 201 | .word TIM5_IRQHandler /* TIM5 */ |
sahilmgandhi | 18:6a4db94011d3 | 202 | .word SPI3_IRQHandler /* SPI3 */ |
sahilmgandhi | 18:6a4db94011d3 | 203 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 204 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 205 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 206 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 207 | .word DMA2_Stream0_IRQHandler /* DMA2 Stream 0 */ |
sahilmgandhi | 18:6a4db94011d3 | 208 | .word DMA2_Stream1_IRQHandler /* DMA2 Stream 1 */ |
sahilmgandhi | 18:6a4db94011d3 | 209 | .word DMA2_Stream2_IRQHandler /* DMA2 Stream 2 */ |
sahilmgandhi | 18:6a4db94011d3 | 210 | .word DMA2_Stream3_IRQHandler /* DMA2 Stream 3 */ |
sahilmgandhi | 18:6a4db94011d3 | 211 | .word DMA2_Stream4_IRQHandler /* DMA2 Stream 4 */ |
sahilmgandhi | 18:6a4db94011d3 | 212 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 213 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 214 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 215 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 216 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 217 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 218 | .word OTG_FS_IRQHandler /* USB OTG FS */ |
sahilmgandhi | 18:6a4db94011d3 | 219 | .word DMA2_Stream5_IRQHandler /* DMA2 Stream 5 */ |
sahilmgandhi | 18:6a4db94011d3 | 220 | .word DMA2_Stream6_IRQHandler /* DMA2 Stream 6 */ |
sahilmgandhi | 18:6a4db94011d3 | 221 | .word DMA2_Stream7_IRQHandler /* DMA2 Stream 7 */ |
sahilmgandhi | 18:6a4db94011d3 | 222 | .word USART6_IRQHandler /* USART6 */ |
sahilmgandhi | 18:6a4db94011d3 | 223 | .word I2C3_EV_IRQHandler /* I2C3 event */ |
sahilmgandhi | 18:6a4db94011d3 | 224 | .word I2C3_ER_IRQHandler /* I2C3 error */ |
sahilmgandhi | 18:6a4db94011d3 | 225 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 226 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 227 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 228 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 229 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 230 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 231 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 232 | .word FPU_IRQHandler /* FPU */ |
sahilmgandhi | 18:6a4db94011d3 | 233 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 234 | .word 0 /* Reserved */ |
sahilmgandhi | 18:6a4db94011d3 | 235 | .word SPI4_IRQHandler /* SPI4 */ |
sahilmgandhi | 18:6a4db94011d3 | 236 | .word SPI5_IRQHandler /* SPI5 */ |
sahilmgandhi | 18:6a4db94011d3 | 237 | |
sahilmgandhi | 18:6a4db94011d3 | 238 | /******************************************************************************* |
sahilmgandhi | 18:6a4db94011d3 | 239 | * |
sahilmgandhi | 18:6a4db94011d3 | 240 | * Provide weak aliases for each Exception handler to the Default_Handler. |
sahilmgandhi | 18:6a4db94011d3 | 241 | * As they are weak aliases, any function with the same name will override |
sahilmgandhi | 18:6a4db94011d3 | 242 | * this definition. |
sahilmgandhi | 18:6a4db94011d3 | 243 | * |
sahilmgandhi | 18:6a4db94011d3 | 244 | *******************************************************************************/ |
sahilmgandhi | 18:6a4db94011d3 | 245 | .weak NMI_Handler |
sahilmgandhi | 18:6a4db94011d3 | 246 | .thumb_set NMI_Handler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 247 | |
sahilmgandhi | 18:6a4db94011d3 | 248 | .weak HardFault_Handler |
sahilmgandhi | 18:6a4db94011d3 | 249 | .thumb_set HardFault_Handler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 250 | |
sahilmgandhi | 18:6a4db94011d3 | 251 | .weak MemManage_Handler |
sahilmgandhi | 18:6a4db94011d3 | 252 | .thumb_set MemManage_Handler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 253 | |
sahilmgandhi | 18:6a4db94011d3 | 254 | .weak BusFault_Handler |
sahilmgandhi | 18:6a4db94011d3 | 255 | .thumb_set BusFault_Handler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 256 | |
sahilmgandhi | 18:6a4db94011d3 | 257 | .weak UsageFault_Handler |
sahilmgandhi | 18:6a4db94011d3 | 258 | .thumb_set UsageFault_Handler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 259 | |
sahilmgandhi | 18:6a4db94011d3 | 260 | .weak SVC_Handler |
sahilmgandhi | 18:6a4db94011d3 | 261 | .thumb_set SVC_Handler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 262 | |
sahilmgandhi | 18:6a4db94011d3 | 263 | .weak DebugMon_Handler |
sahilmgandhi | 18:6a4db94011d3 | 264 | .thumb_set DebugMon_Handler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 265 | |
sahilmgandhi | 18:6a4db94011d3 | 266 | .weak PendSV_Handler |
sahilmgandhi | 18:6a4db94011d3 | 267 | .thumb_set PendSV_Handler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 268 | |
sahilmgandhi | 18:6a4db94011d3 | 269 | .weak SysTick_Handler |
sahilmgandhi | 18:6a4db94011d3 | 270 | .thumb_set SysTick_Handler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 271 | |
sahilmgandhi | 18:6a4db94011d3 | 272 | .weak WWDG_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 273 | .thumb_set WWDG_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 274 | |
sahilmgandhi | 18:6a4db94011d3 | 275 | .weak PVD_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 276 | .thumb_set PVD_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 277 | |
sahilmgandhi | 18:6a4db94011d3 | 278 | .weak TAMP_STAMP_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 279 | .thumb_set TAMP_STAMP_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 280 | |
sahilmgandhi | 18:6a4db94011d3 | 281 | .weak RTC_WKUP_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 282 | .thumb_set RTC_WKUP_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 283 | |
sahilmgandhi | 18:6a4db94011d3 | 284 | .weak FLASH_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 285 | .thumb_set FLASH_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 286 | |
sahilmgandhi | 18:6a4db94011d3 | 287 | .weak RCC_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 288 | .thumb_set RCC_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 289 | |
sahilmgandhi | 18:6a4db94011d3 | 290 | .weak EXTI0_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 291 | .thumb_set EXTI0_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 292 | |
sahilmgandhi | 18:6a4db94011d3 | 293 | .weak EXTI1_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 294 | .thumb_set EXTI1_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 295 | |
sahilmgandhi | 18:6a4db94011d3 | 296 | .weak EXTI2_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 297 | .thumb_set EXTI2_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 298 | |
sahilmgandhi | 18:6a4db94011d3 | 299 | .weak EXTI3_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 300 | .thumb_set EXTI3_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 301 | |
sahilmgandhi | 18:6a4db94011d3 | 302 | .weak EXTI4_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 303 | .thumb_set EXTI4_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 304 | |
sahilmgandhi | 18:6a4db94011d3 | 305 | .weak DMA1_Stream0_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 306 | .thumb_set DMA1_Stream0_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 307 | |
sahilmgandhi | 18:6a4db94011d3 | 308 | .weak DMA1_Stream1_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 309 | .thumb_set DMA1_Stream1_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 310 | |
sahilmgandhi | 18:6a4db94011d3 | 311 | .weak DMA1_Stream2_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 312 | .thumb_set DMA1_Stream2_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 313 | |
sahilmgandhi | 18:6a4db94011d3 | 314 | .weak DMA1_Stream3_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 315 | .thumb_set DMA1_Stream3_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 316 | |
sahilmgandhi | 18:6a4db94011d3 | 317 | .weak DMA1_Stream4_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 318 | .thumb_set DMA1_Stream4_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 319 | |
sahilmgandhi | 18:6a4db94011d3 | 320 | .weak DMA1_Stream5_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 321 | .thumb_set DMA1_Stream5_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 322 | |
sahilmgandhi | 18:6a4db94011d3 | 323 | .weak DMA1_Stream6_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 324 | .thumb_set DMA1_Stream6_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 325 | |
sahilmgandhi | 18:6a4db94011d3 | 326 | .weak ADC_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 327 | .thumb_set ADC_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 328 | |
sahilmgandhi | 18:6a4db94011d3 | 329 | .weak EXTI9_5_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 330 | .thumb_set EXTI9_5_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 331 | |
sahilmgandhi | 18:6a4db94011d3 | 332 | .weak TIM1_BRK_TIM9_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 333 | .thumb_set TIM1_BRK_TIM9_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 334 | |
sahilmgandhi | 18:6a4db94011d3 | 335 | .weak TIM1_UP_TIM10_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 336 | .thumb_set TIM1_UP_TIM10_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 337 | |
sahilmgandhi | 18:6a4db94011d3 | 338 | .weak TIM1_TRG_COM_TIM11_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 339 | .thumb_set TIM1_TRG_COM_TIM11_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 340 | |
sahilmgandhi | 18:6a4db94011d3 | 341 | .weak TIM1_CC_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 342 | .thumb_set TIM1_CC_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 343 | |
sahilmgandhi | 18:6a4db94011d3 | 344 | .weak TIM2_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 345 | .thumb_set TIM2_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 346 | |
sahilmgandhi | 18:6a4db94011d3 | 347 | .weak TIM3_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 348 | .thumb_set TIM3_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 349 | |
sahilmgandhi | 18:6a4db94011d3 | 350 | .weak TIM4_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 351 | .thumb_set TIM4_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 352 | |
sahilmgandhi | 18:6a4db94011d3 | 353 | .weak I2C1_EV_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 354 | .thumb_set I2C1_EV_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 355 | |
sahilmgandhi | 18:6a4db94011d3 | 356 | .weak I2C1_ER_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 357 | .thumb_set I2C1_ER_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 358 | |
sahilmgandhi | 18:6a4db94011d3 | 359 | .weak I2C2_EV_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 360 | .thumb_set I2C2_EV_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 361 | |
sahilmgandhi | 18:6a4db94011d3 | 362 | .weak I2C2_ER_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 363 | .thumb_set I2C2_ER_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 364 | |
sahilmgandhi | 18:6a4db94011d3 | 365 | .weak SPI1_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 366 | .thumb_set SPI1_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 367 | |
sahilmgandhi | 18:6a4db94011d3 | 368 | .weak SPI2_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 369 | .thumb_set SPI2_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 370 | |
sahilmgandhi | 18:6a4db94011d3 | 371 | .weak USART1_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 372 | .thumb_set USART1_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 373 | |
sahilmgandhi | 18:6a4db94011d3 | 374 | .weak USART2_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 375 | .thumb_set USART2_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 376 | |
sahilmgandhi | 18:6a4db94011d3 | 377 | .weak EXTI15_10_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 378 | .thumb_set EXTI15_10_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 379 | |
sahilmgandhi | 18:6a4db94011d3 | 380 | .weak RTC_Alarm_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 381 | .thumb_set RTC_Alarm_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 382 | |
sahilmgandhi | 18:6a4db94011d3 | 383 | .weak OTG_FS_WKUP_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 384 | .thumb_set OTG_FS_WKUP_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 385 | |
sahilmgandhi | 18:6a4db94011d3 | 386 | .weak DMA1_Stream7_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 387 | .thumb_set DMA1_Stream7_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 388 | |
sahilmgandhi | 18:6a4db94011d3 | 389 | .weak SDIO_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 390 | .thumb_set SDIO_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 391 | |
sahilmgandhi | 18:6a4db94011d3 | 392 | .weak TIM5_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 393 | .thumb_set TIM5_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 394 | |
sahilmgandhi | 18:6a4db94011d3 | 395 | .weak SPI3_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 396 | .thumb_set SPI3_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 397 | |
sahilmgandhi | 18:6a4db94011d3 | 398 | .weak DMA2_Stream0_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 399 | .thumb_set DMA2_Stream0_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 400 | |
sahilmgandhi | 18:6a4db94011d3 | 401 | .weak DMA2_Stream1_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 402 | .thumb_set DMA2_Stream1_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 403 | |
sahilmgandhi | 18:6a4db94011d3 | 404 | .weak DMA2_Stream2_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 405 | .thumb_set DMA2_Stream2_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 406 | |
sahilmgandhi | 18:6a4db94011d3 | 407 | .weak DMA2_Stream3_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 408 | .thumb_set DMA2_Stream3_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 409 | |
sahilmgandhi | 18:6a4db94011d3 | 410 | .weak DMA2_Stream4_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 411 | .thumb_set DMA2_Stream4_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 412 | |
sahilmgandhi | 18:6a4db94011d3 | 413 | .weak OTG_FS_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 414 | .thumb_set OTG_FS_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 415 | |
sahilmgandhi | 18:6a4db94011d3 | 416 | .weak DMA2_Stream5_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 417 | .thumb_set DMA2_Stream5_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 418 | |
sahilmgandhi | 18:6a4db94011d3 | 419 | .weak DMA2_Stream6_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 420 | .thumb_set DMA2_Stream6_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 421 | |
sahilmgandhi | 18:6a4db94011d3 | 422 | .weak DMA2_Stream7_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 423 | .thumb_set DMA2_Stream7_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 424 | |
sahilmgandhi | 18:6a4db94011d3 | 425 | .weak USART6_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 426 | .thumb_set USART6_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 427 | |
sahilmgandhi | 18:6a4db94011d3 | 428 | .weak I2C3_EV_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 429 | .thumb_set I2C3_EV_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 430 | |
sahilmgandhi | 18:6a4db94011d3 | 431 | .weak I2C3_ER_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 432 | .thumb_set I2C3_ER_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 433 | |
sahilmgandhi | 18:6a4db94011d3 | 434 | .weak FPU_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 435 | .thumb_set FPU_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 436 | |
sahilmgandhi | 18:6a4db94011d3 | 437 | .weak SPI4_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 438 | .thumb_set SPI4_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 439 | |
sahilmgandhi | 18:6a4db94011d3 | 440 | .weak SPI5_IRQHandler |
sahilmgandhi | 18:6a4db94011d3 | 441 | .thumb_set SPI5_IRQHandler,Default_Handler |
sahilmgandhi | 18:6a4db94011d3 | 442 | |
sahilmgandhi | 18:6a4db94011d3 | 443 | /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |
sahilmgandhi | 18:6a4db94011d3 | 444 |