vectors.s
上传用户:yj_qqy
上传日期:2017-01-28
资源大小:2911k
文件大小:11k
源码类别:

uCOS

开发平台:

C/C++

  1. ;******************************************************************************
  2. ;
  3. ;                             INTERRUPT VECTORS
  4. ;                                    ARM
  5. ;                             KEIL's uVision3 
  6. ;                   (RealView Microprocessor Developer Kit)
  7. ;
  8. ; Filename      : vectors.s
  9. ;******************************************************************************
  10.                 PRESERVE8
  11.                 AREA   VECT, CODE, READONLY                     ; Name this block of code                                   ;
  12.                 THUMB
  13.                 ENTRY
  14. ;******************************************************************************
  15. ;                                  IMPORTS
  16. ;******************************************************************************
  17.         IMPORT OS_CPU_SysTickHandler
  18.         IMPORT OS_CPU_PendSVHandler
  19.         IMPORT BSP_IntHandlerWWDG
  20.         IMPORT BSP_IntHandlerPVD
  21.         IMPORT BSP_IntHandlerTAMPER
  22.         IMPORT BSP_IntHandlerRTC
  23.         IMPORT BSP_IntHandlerFLASH
  24.         IMPORT BSP_IntHandlerRCC
  25.         IMPORT BSP_IntHandlerEXTI0
  26.         IMPORT BSP_IntHandlerEXTI1
  27.         IMPORT BSP_IntHandlerEXTI2
  28.         IMPORT BSP_IntHandlerEXTI3
  29.         IMPORT BSP_IntHandlerEXTI4
  30.         IMPORT BSP_IntHandlerDMA1_CH1
  31.         IMPORT BSP_IntHandlerDMA1_CH2
  32.         IMPORT BSP_IntHandlerDMA1_CH3
  33.         IMPORT BSP_IntHandlerDMA1_CH4
  34.         IMPORT BSP_IntHandlerDMA1_CH5
  35.         IMPORT BSP_IntHandlerDMA1_CH6
  36.         IMPORT BSP_IntHandlerDMA1_CH7
  37.         IMPORT BSP_IntHandlerADC1_2
  38.         IMPORT BSP_IntHandlerUSB_HP_CAN_TX
  39.         IMPORT BSP_IntHandlerUSB_LP_CAN_RX0
  40.         IMPORT BSP_IntHandlerCAN_RX1
  41.         IMPORT BSP_IntHandlerCAN_SCE
  42.         IMPORT BSP_IntHandlerEXTI9_5
  43.         IMPORT BSP_IntHandlerTIM1_BRK
  44.         IMPORT BSP_IntHandlerTIM1_UP
  45.         IMPORT BSP_IntHandlerTIM1_TRG_COM
  46.         IMPORT BSP_IntHandlerTIM1_CC
  47.         IMPORT BSP_IntHandlerTIM2
  48.         IMPORT BSP_IntHandlerTIM3
  49.         IMPORT BSP_IntHandlerTIM4
  50.         IMPORT BSP_IntHandlerI2C1_EV
  51.         IMPORT BSP_IntHandlerI2C1_ER
  52.         IMPORT BSP_IntHandlerI2C2_EV
  53.         IMPORT BSP_IntHandlerI2C2_ER
  54.         IMPORT BSP_IntHandlerSPI1
  55.         IMPORT BSP_IntHandlerSPI2
  56.         IMPORT BSP_IntHandlerUSART1
  57.         IMPORT BSP_IntHandlerUSART2
  58.         IMPORT BSP_IntHandlerUSART3 
  59.         IMPORT BSP_IntHandlerEXTI15_10
  60.         IMPORT BSP_IntHandlerRTCAlarm
  61.         IMPORT BSP_IntHandlerUSBWakeUp
  62.                 IMPORT  ResetHndlr
  63.                 IMPORT  ||Image$$ARM_LIB_STACK$$ZI$$Limit||     ; Import stack limit from scatter-loading file              ;
  64. ;******************************************************************************
  65. ;                                  EXPORTS
  66. ;******************************************************************************
  67. ;******************************************************************************
  68. ;                                DEFINITIONS
  69. ;******************************************************************************
  70. ;******************************************************************************
  71. ;                      INITIALIZE EXCEPTION VECTORS
  72. ;******************************************************************************
  73. Vectors
  74.         DCD     ||Image$$ARM_LIB_STACK$$ZI$$Limit||         ;  0, SP start value.                                         
  75.         DCD     ResetHndlr                                  ;  1, PC start value.                                         
  76.         DCD     App_NMI_ISR                                 ;  2, NMI                                                     
  77.         DCD     App_Fault_ISR                               ;  3, Hard Fault                                              
  78.         DCD     App_MemFault_ISR                            ;  4, Memory Management                                      
  79.         DCD     App_BusFault_ISR                            ;  5, Bus Fault                                               
  80.         DCD     App_UsageFault_ISR                          ;  6, Usage Fault                                             
  81.         DCD     0                                           ;  7, Reserved                                                
  82.         DCD     0                                           ;  8, Reserved                                                
  83.         DCD     0                                           ;  9, Reserved                                                
  84.         DCD     0                                           ; 10, Reserved                                                
  85.         DCD     App_Spurious_ISR                            ; 11, SVCall                                                  
  86.         DCD     App_Spurious_ISR                            ; 12, Debug Monitor                                           
  87.         DCD     App_Spurious_ISR                            ; 13, Reserved                                                
  88.         DCD     OS_CPU_PendSVHandler                        ; 14, PendSV Handler                                          
  89.         DCD     OS_CPU_SysTickHandler                       ; 15, uC/OS-II Tick ISR Handler
  90.                                        
  91.         DCD     BSP_IntHandlerWWDG                          ; 16, INTISR[  0]  Window Watchdog.                   
  92.         DCD     BSP_IntHandlerPVD                           ; 17, INTISR[  1]  PVD through EXTI Line Detection.    
  93.         DCD     BSP_IntHandlerTAMPER                        ; 18, INTISR[  2]  Tamper Interrupt.                   
  94.         DCD     BSP_IntHandlerRTC                           ; 19, INTISR[  3]  RTC Global Interrupt.               
  95.         DCD     BSP_IntHandlerFLASH                         ; 20, INTISR[  4]  FLASH Global Interrupt.             
  96.         DCD     BSP_IntHandlerRCC                           ; 21, INTISR[  5]  RCC Global Interrupt.               
  97.         DCD     BSP_IntHandlerEXTI0                         ; 22, INTISR[  6]  EXTI Line0 Interrupt.               
  98.         DCD     BSP_IntHandlerEXTI1                         ; 23, INTISR[  7]  EXTI Line1 Interrupt.               
  99.         DCD     BSP_IntHandlerEXTI2                         ; 24, INTISR[  8]  EXTI Line2 Interrupt.               
  100.         DCD     BSP_IntHandlerEXTI3                         ; 25, INTISR[  9]  EXTI Line3 Interrupt.               
  101.         DCD     BSP_IntHandlerEXTI4                         ; 26, INTISR[ 10]  EXTI Line4 Interrupt.               
  102.         DCD     BSP_IntHandlerDMA1_CH1                      ; 27, INTISR[ 11]  DMA Channel1 Global Interrupt.      
  103.         DCD     BSP_IntHandlerDMA1_CH2                      ; 28, INTISR[ 12]  DMA Channel2 Global Interrupt.      
  104.         DCD     BSP_IntHandlerDMA1_CH3                      ; 29, INTISR[ 13]  DMA Channel3 Global Interrupt.      
  105.         DCD     BSP_IntHandlerDMA1_CH4                      ; 30, INTISR[ 14]  DMA Channel4 Global Interrupt.      
  106.         DCD     BSP_IntHandlerDMA1_CH5                      ; 31, INTISR[ 15]  DMA Channel5 Global Interrupt.      
  107.         DCD     BSP_IntHandlerDMA1_CH6                      ; 32, INTISR[ 16]  DMA Channel6 Global Interrupt.      
  108.         DCD     BSP_IntHandlerDMA1_CH7                      ; 33, INTISR[ 17]  DMA Channel7 Global Interrupt.      
  109.         DCD     BSP_IntHandlerADC1_2                        ; 34, INTISR[ 18]  ADC1 & ADC2 Global Interrupt.       
  110.         DCD     BSP_IntHandlerUSB_HP_CAN_TX                 ; 35, INTISR[ 19]  USB High Prio / CAN TX  Interrupts. 
  111.         DCD     BSP_IntHandlerUSB_LP_CAN_RX0                ; 36, INTISR[ 20]  USB Low  Prio / CAN RX0 Interrupts. 
  112.         DCD     BSP_IntHandlerCAN_RX1                       ; 37, INTISR[ 21]  CAN RX1 Interrupt.                  
  113.         DCD     BSP_IntHandlerCAN_SCE                       ; 38, INTISR[ 22]  CAN SCE Interrupt.                  
  114.         DCD     BSP_IntHandlerEXTI9_5                       ; 39, INTISR[ 23]  EXTI Line[9:5] Interrupt.           
  115.         DCD     BSP_IntHandlerTIM1_BRK                      ; 40, INTISR[ 24]  TIM1 Break  Interrupt.              
  116.         DCD     BSP_IntHandlerTIM1_UP                       ; 41, INTISR[ 25]  TIM1 Update Interrupt.              
  117.         DCD     BSP_IntHandlerTIM1_TRG_COM                  ; 42, INTISR[ 26]  TIM1 Trig & Commutation Interrupts. 
  118.         DCD     BSP_IntHandlerTIM1_CC                       ; 43, INTISR[ 27]  TIM1 Capture Compare Interrupt.     
  119.         DCD     BSP_IntHandlerTIM2                          ; 44, INTISR[ 28]  TIM2 Global Interrupt.              
  120.         DCD     BSP_IntHandlerTIM3                          ; 45, INTISR[ 29]  TIM3 Global Interrupt.              
  121.         DCD     BSP_IntHandlerTIM4                          ; 46, INTISR[ 30]  TIM4 Global Interrupt.              
  122.         DCD     BSP_IntHandlerI2C1_EV                       ; 47, INTISR[ 31]  I2C1 Event  Interrupt.              
  123.         DCD     BSP_IntHandlerI2C1_ER                       ; 48, INTISR[ 32]  I2C1 Error  Interrupt.              
  124.         DCD     BSP_IntHandlerI2C2_EV                       ; 49, INTISR[ 33]  I2C2 Event  Interrupt.              
  125.         DCD     BSP_IntHandlerI2C2_ER                       ; 50, INTISR[ 34]  I2C2 Error  Interrupt.             
  126.         DCD     BSP_IntHandlerSPI1                          ; 51, INTISR[ 35]  SPI1 Global Interrupt.              
  127.         DCD     BSP_IntHandlerSPI2                          ; 52, INTISR[ 36]  SPI2 Global Interrupt.              
  128.         DCD     BSP_IntHandlerUSART1                        ; 53, INTISR[ 37]  USART1 Global Interrupt.            
  129.         DCD     BSP_IntHandlerUSART2                        ; 54, INTISR[ 38]  USART2 Global Interrupt.            
  130.         DCD     BSP_IntHandlerUSART3                        ; 55, INTISR[ 39]  USART3 Global Interrupt.            
  131.         DCD     BSP_IntHandlerEXTI15_10                     ; 56, INTISR[ 40]  EXTI Line [15:10] Interrupts.       
  132.         DCD     BSP_IntHandlerRTCAlarm                      ; 57, INTISR[ 41]  RTC Alarm EXT Line Interrupt.       
  133.         DCD     BSP_IntHandlerUSBWakeUp                     ; 58, INTISR[ 42]  USB Wakeup from Suspend EXTI Int.   
  134.         
  135.         
  136. ;******************************************************************************
  137. ;                          DEFAULT HANDLERS
  138. ;******************************************************************************
  139. App_NMI_ISR         B       App_NMI_ISR
  140. App_Fault_ISR       B       App_Fault_ISR
  141. App_MemFault_ISR    B       App_MemFault_ISR
  142. App_BusFault_ISR    B       App_BusFault_ISR
  143. App_UsageFault_ISR  B       App_UsageFault_ISR
  144. App_Spurious_ISR    B       App_Spurious_ISR
  145.                 ALIGN
  146.                 END