⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vectors.s

📁 stm32 ucos 精简移殖版本 不需作任何修改直接便可运行。包含串口 定时器
💻 S
字号:
;******************************************************************************
;
;                             INTERRUPT VECTORS
;                                    ARM
;                             KEIL's uVision3 
;                   (RealView Microprocessor Developer Kit)
;
; Filename      : vectors.s
;******************************************************************************

                PRESERVE8
                AREA   VECT, CODE, READONLY                     ; Name this block of code                                   ;
                THUMB

                ENTRY

;******************************************************************************
;                                  IMPORTS
;******************************************************************************

		        IMPORT	OS_CPU_SysTickHandler
		        IMPORT	OS_CPU_PendSVHandler

		        IMPORT	BSP_IntHandlerWWDG
		        IMPORT	BSP_IntHandlerPVD
		        IMPORT	BSP_IntHandlerTAMPER
		        IMPORT	BSP_IntHandlerRTC
		        IMPORT	BSP_IntHandlerFLASH
		        IMPORT	BSP_IntHandlerRCC
		        IMPORT	BSP_IntHandlerEXTI0
		        IMPORT	BSP_IntHandlerEXTI1
		        IMPORT	BSP_IntHandlerEXTI2
		        IMPORT	BSP_IntHandlerEXTI3
		        IMPORT	BSP_IntHandlerEXTI4
		        IMPORT	BSP_IntHandlerDMA1_CH1
		        IMPORT	BSP_IntHandlerDMA1_CH2
		        IMPORT	BSP_IntHandlerDMA1_CH3
		        IMPORT	BSP_IntHandlerDMA1_CH4
		        IMPORT	BSP_IntHandlerDMA1_CH5

		        IMPORT	BSP_IntHandlerDMA1_CH6
		        IMPORT	BSP_IntHandlerDMA1_CH7
		        IMPORT	BSP_IntHandlerADC1_2
		        IMPORT	BSP_IntHandlerUSB_HP_CAN_TX
		        IMPORT	BSP_IntHandlerUSB_LP_CAN_RX0
		        IMPORT	BSP_IntHandlerCAN_RX1
		        IMPORT	BSP_IntHandlerCAN_SCE
		        IMPORT	BSP_IntHandlerEXTI9_5
		        IMPORT	BSP_IntHandlerTIM1_BRK
		        IMPORT	BSP_IntHandlerTIM1_UP
		        IMPORT	BSP_IntHandlerTIM1_TRG_COM
		        IMPORT	BSP_IntHandlerTIM1_CC
		        IMPORT	BSP_IntHandlerTIM2
		        IMPORT	BSP_IntHandlerTIM3
		        IMPORT	BSP_IntHandlerTIM4
		        IMPORT	BSP_IntHandlerI2C1_EV

		        IMPORT	BSP_IntHandlerI2C1_ER
		        IMPORT	BSP_IntHandlerI2C2_EV
		        IMPORT	BSP_IntHandlerI2C2_ER
		        IMPORT	BSP_IntHandlerSPI1
		        IMPORT	BSP_IntHandlerSPI2
		        IMPORT	BSP_IntHandlerUSART1
		        IMPORT	BSP_IntHandlerUSART2
		        IMPORT	BSP_IntHandlerUSART3 
		        IMPORT	BSP_IntHandlerEXTI15_10
		        IMPORT	BSP_IntHandlerRTCAlarm
		        IMPORT	BSP_IntHandlerUSBWakeUp

                IMPORT  ResetHndlr
                IMPORT  ||Image$$ARM_LIB_STACK$$ZI$$Limit||     ; Import stack limit from scatter-loading file              ;

;******************************************************************************
;                                  EXPORTS
;******************************************************************************


;******************************************************************************
;                                DEFINITIONS
;******************************************************************************


;******************************************************************************
;                      INITIALIZE EXCEPTION VECTORS
;******************************************************************************

Vectors
        DCD     ||Image$$ARM_LIB_STACK$$ZI$$Limit||         ;  0, SP start value.                                         
        DCD     ResetHndlr                                  ;  1, PC start value.                                         
        DCD     App_NMI_ISR                                 ;  2, NMI                                                     
        DCD     App_Fault_ISR                               ;  3, Hard Fault                                              
        DCD     App_MemFault_ISR                            ;  4, Memory Management                                      
        DCD     App_BusFault_ISR                            ;  5, Bus Fault                                               
        DCD     App_UsageFault_ISR                          ;  6, Usage Fault                                             
        DCD     0                                           ;  7, Reserved                                                
        DCD     0                                           ;  8, Reserved                                                
        DCD     0                                           ;  9, Reserved                                                
        DCD     0                                           ; 10, Reserved                                                
        DCD     App_Spurious_ISR                            ; 11, SVCall                                                  
        DCD     App_Spurious_ISR                            ; 12, Debug Monitor                                           
        DCD     App_Spurious_ISR                            ; 13, Reserved                                                
        DCD     OS_CPU_PendSVHandler                        ; 14, PendSV Handler                                          
        DCD     OS_CPU_SysTickHandler                       ; 15, uC/OS-II Tick ISR Handler
                                       
        DCD     BSP_IntHandlerWWDG                          ; 16, INTISR[  0]  Window Watchdog.                   
        DCD     BSP_IntHandlerPVD                           ; 17, INTISR[  1]  PVD through EXTI Line Detection.    
        DCD     BSP_IntHandlerTAMPER                        ; 18, INTISR[  2]  Tamper Interrupt.                   
        DCD     BSP_IntHandlerRTC                           ; 19, INTISR[  3]  RTC Global Interrupt.               
        DCD     BSP_IntHandlerFLASH                         ; 20, INTISR[  4]  FLASH Global Interrupt.             
        DCD     BSP_IntHandlerRCC                           ; 21, INTISR[  5]  RCC Global Interrupt.               
        DCD     BSP_IntHandlerEXTI0                         ; 22, INTISR[  6]  EXTI Line0 Interrupt.               
        DCD     BSP_IntHandlerEXTI1                         ; 23, INTISR[  7]  EXTI Line1 Interrupt.               
        DCD     BSP_IntHandlerEXTI2                         ; 24, INTISR[  8]  EXTI Line2 Interrupt.               
        DCD     BSP_IntHandlerEXTI3                         ; 25, INTISR[  9]  EXTI Line3 Interrupt.               
        DCD     BSP_IntHandlerEXTI4                         ; 26, INTISR[ 10]  EXTI Line4 Interrupt.               
        DCD     BSP_IntHandlerDMA1_CH1                      ; 27, INTISR[ 11]  DMA Channel1 Global Interrupt.      
        DCD     BSP_IntHandlerDMA1_CH2                      ; 28, INTISR[ 12]  DMA Channel2 Global Interrupt.      
        DCD     BSP_IntHandlerDMA1_CH3                      ; 29, INTISR[ 13]  DMA Channel3 Global Interrupt.      
        DCD     BSP_IntHandlerDMA1_CH4                      ; 30, INTISR[ 14]  DMA Channel4 Global Interrupt.      
        DCD     BSP_IntHandlerDMA1_CH5                      ; 31, INTISR[ 15]  DMA Channel5 Global Interrupt.      

        DCD     BSP_IntHandlerDMA1_CH6                      ; 32, INTISR[ 16]  DMA Channel6 Global Interrupt.      
        DCD     BSP_IntHandlerDMA1_CH7                      ; 33, INTISR[ 17]  DMA Channel7 Global Interrupt.      
        DCD     BSP_IntHandlerADC1_2                        ; 34, INTISR[ 18]  ADC1 & ADC2 Global Interrupt.       
        DCD     BSP_IntHandlerUSB_HP_CAN_TX                 ; 35, INTISR[ 19]  USB High Prio / CAN TX  Interrupts. 
        DCD     BSP_IntHandlerUSB_LP_CAN_RX0                ; 36, INTISR[ 20]  USB Low  Prio / CAN RX0 Interrupts. 
        DCD     BSP_IntHandlerCAN_RX1                       ; 37, INTISR[ 21]  CAN RX1 Interrupt.                  
        DCD     BSP_IntHandlerCAN_SCE                       ; 38, INTISR[ 22]  CAN SCE Interrupt.                  
        DCD     BSP_IntHandlerEXTI9_5                       ; 39, INTISR[ 23]  EXTI Line[9:5] Interrupt.           
        DCD     BSP_IntHandlerTIM1_BRK                      ; 40, INTISR[ 24]  TIM1 Break  Interrupt.              
        DCD     BSP_IntHandlerTIM1_UP                       ; 41, INTISR[ 25]  TIM1 Update Interrupt.              
        DCD     BSP_IntHandlerTIM1_TRG_COM                  ; 42, INTISR[ 26]  TIM1 Trig & Commutation Interrupts. 
        DCD     BSP_IntHandlerTIM1_CC                       ; 43, INTISR[ 27]  TIM1 Capture Compare Interrupt.     
        DCD     BSP_IntHandlerTIM2                          ; 44, INTISR[ 28]  TIM2 Global Interrupt.              
        DCD     BSP_IntHandlerTIM3                          ; 45, INTISR[ 29]  TIM3 Global Interrupt.              
        DCD     BSP_IntHandlerTIM4                          ; 46, INTISR[ 30]  TIM4 Global Interrupt.              
        DCD     BSP_IntHandlerI2C1_EV                       ; 47, INTISR[ 31]  I2C1 Event  Interrupt.              

        DCD     BSP_IntHandlerI2C1_ER                       ; 48, INTISR[ 32]  I2C1 Error  Interrupt.              
        DCD     BSP_IntHandlerI2C2_EV                       ; 49, INTISR[ 33]  I2C2 Event  Interrupt.              
        DCD     BSP_IntHandlerI2C2_ER                       ; 50, INTISR[ 34]  I2C2 Error  Interrupt.             
        DCD     BSP_IntHandlerSPI1                          ; 51, INTISR[ 35]  SPI1 Global Interrupt.              
        DCD     BSP_IntHandlerSPI2                          ; 52, INTISR[ 36]  SPI2 Global Interrupt.              
        DCD     BSP_IntHandlerUSART1                        ; 53, INTISR[ 37]  USART1 Global Interrupt.            
        DCD     BSP_IntHandlerUSART2                        ; 54, INTISR[ 38]  USART2 Global Interrupt.            
        DCD     BSP_IntHandlerUSART3                        ; 55, INTISR[ 39]  USART3 Global Interrupt.            
        DCD     BSP_IntHandlerEXTI15_10                     ; 56, INTISR[ 40]  EXTI Line [15:10] Interrupts.       
        DCD     BSP_IntHandlerRTCAlarm                      ; 57, INTISR[ 41]  RTC Alarm EXT Line Interrupt.       
        DCD     BSP_IntHandlerUSBWakeUp                     ; 58, INTISR[ 42]  USB Wakeup from Suspend EXTI Int.   
        
        
;******************************************************************************
;                          DEFAULT HANDLERS
;******************************************************************************

App_NMI_ISR         B       App_NMI_ISR

App_Fault_ISR       B       App_Fault_ISR

App_MemFault_ISR    B       App_MemFault_ISR

App_BusFault_ISR    B       App_BusFault_ISR

App_UsageFault_ISR  B       App_UsageFault_ISR

App_Spurious_ISR    B       App_Spurious_ISR


                ALIGN
                END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -