
        MODULE  ?cstartup

        ;; Forward declaration of sections.
        SECTION CSTACK:DATA:NOROOT(3)

        SECTION .intvec:CODE:NOROOT(2)

        EXTERN  __iar_program_start
        PUBLIC  __vector_table

        DATA
        
__vector_table
        DCD     sfe(CSTACK)
        DCD     Reset_Handler             ; Reset Handler
        DCD     NMI_Handler               ; NMI Handler
        DCD     HardFault_Handler         ; Hard Fault Handler
        DCD     0                         ; Reserved
        DCD     0                         ; Reserved
        DCD     0                         ; Reserved
        DCD     0                         ; Reserved
        DCD     0                         ; Reserved
        DCD     0                         ; Reserved
        DCD     0                         ; Reserved
        DCD     SVC_Handler               ; SVCall Handler
        DCD     0                         ; Reserved
        DCD     0                         ; Reserved
        DCD     PendSV_Handler            ; PendSV Handler
        DCD     SysTick_Handler           ; SysTick Handler

        ; External Interrupts
        DCD     WDT_IRQHandler            ; 0:  WDT 
        DCD     SVD_IRQHandler            ; 1:  SVD 	
        DCD     RTC_IRQHandler            ; 2:  RTC 	
        DCD     MUX0_IRQHandler	          ; 3:  MUX0	
        DCD     TSI_IRQHandler	          ; 4:  TSI	
        DCD     ADC_IRQHandler            ; 5:  ADC	
        DCD     CAN0_IRQHandler           ; 6:  CAN0
        DCD     MUX1_IRQHandler           ; 7:  MUX1 	
        DCD     MUX2_IRQHandler           ; 8:  MUX2
        DCD     MUX3_IRQHandler           ; 9:  MUX3	
        DCD     MUX4_IRQHandler           ; 10:  MUX4	
        DCD     MUX5_IRQHandler           ; 11:  MUX5		
        DCD     MUX6_IRQHandler           ; 12:  MUX6	
        DCD     MUX7_IRQHandler           ; 13:  MUX7	
        DCD     MUX8_IRQHandler           ; 14:  MUX8		
        DCD     I2CMX_IRQHandler		  ; 15:  I2C_SMBX	
        DCD     LPUART1_IRQHandler	      ; 16:  LPUART1	
        DCD     I2C_SMBX_IRQHandler       ; 17:  I2C_SMBX	
        DCD     MUX9_IRQHandler           ; 18:  MUX9	
        DCD     AES_IRQHandler         	  ; 19:  AES	
        DCD     LPTIM_IRQHandler          ; 20:  LPTIM	
        DCD     DMA_IRQHandler            ; 21:  DMA	
        DCD     WKUPX_IRQHandler          ; 22:  WKUPX	
        DCD     MUX10_IRQHandler          ; 23:  MUX10	
        DCD     BSTIM_IRQHandler          ; 24:  BSTIM
        DCD     COMPX_IRQHandler          ; 25:  COMPX
        DCD     MUX11_IRQHandler          ; 26:  MUX11	
        DCD     MUX12_IRQHandler          ; 27:  MUX12	
        DCD     ATIM_IRQHandler           ; 28:  ATIM	
        DCD     MUX13_IRQHandler          ; 29:  MUX13	
        DCD     GPIO_IRQHandler           ; 30:  EXTI
        DCD     ECCC_RAMP_FDET_IRQHandler ; 31:  ECCC_RAMP_FDET
__Vectors_End
                
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Default interrupt handlers.
;;
        THUMB

        PUBWEAK Reset_Handler
        SECTION .text:CODE:NOROOT:REORDER(2)
Reset_Handler
        IMPORT  SystemInit
        LDR     R0, =SystemInit
        BLX     R0		
        LDR     R0, =__iar_program_start
        ;LDR     R0, =__main
        BX      R0
        
        PUBWEAK NMI_Handler
        SECTION .text:CODE:NOROOT:REORDER(1)
NMI_Handler
        B NMI_Handler
        
        
        PUBWEAK HardFault_Handler
        SECTION .text:CODE:NOROOT:REORDER(1)
HardFault_Handler
        B HardFault_Handler
       
        
        PUBWEAK SVC_Handler
        SECTION .text:CODE:NOROOT:REORDER(1)
SVC_Handler
        B SVC_Handler
        
        
        PUBWEAK PendSV_Handler
        SECTION .text:CODE:NOROOT:REORDER(1)
PendSV_Handler  
        B PendSV_Handler
        
        
        PUBWEAK SysTick_Handler
        SECTION .text:CODE:NOROOT:REORDER(1)
SysTick_Handler
        B SysTick_Handler
        
        
        PUBWEAK WDT_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
WDT_IRQHandler
        B WDT_IRQHandler
        
                
        PUBWEAK SVD_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
SVD_IRQHandler
        B SVD_IRQHandler
        
                
        PUBWEAK RTC_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
RTC_IRQHandler
        B RTC_IRQHandler
        
                
        PUBWEAK MUX0_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX0_IRQHandler
        B MUX0_IRQHandler
        
                
        PUBWEAK TSI_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
TSI_IRQHandler
        B TSI_IRQHandler
        
                
        PUBWEAK ADC_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
ADC_IRQHandler
        B ADC_IRQHandler
  
        PUBWEAK CAN0_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
CAN0_IRQHandler
        B CAN0_IRQHandler
       
       
        PUBWEAK MUX1_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX1_IRQHandler
        B MUX1_IRQHandler
        

        PUBWEAK MUX2_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX2_IRQHandler
        B MUX2_IRQHandler
        
                                
        PUBWEAK MUX3_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX3_IRQHandler
        B MUX3_IRQHandler
        
                
        PUBWEAK MUX4_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX4_IRQHandler
        B MUX4_IRQHandler
        
                
        PUBWEAK MUX5_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX5_IRQHandler
        B MUX5_IRQHandler
        
                
        PUBWEAK MUX6_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX6_IRQHandler
        B MUX6_IRQHandler
        
                
        PUBWEAK MUX7_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX7_IRQHandler
        B MUX7_IRQHandler
        
                
        PUBWEAK MUX8_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX8_IRQHandler
        B MUX8_IRQHandler
        
                 
        PUBWEAK I2CMX_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
I2CMX_IRQHandler
        B I2CMX_IRQHandler
        
                 
        PUBWEAK LPUART1_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
LPUART1_IRQHandler
        B LPUART1_IRQHandler
        
                
        PUBWEAK I2C_SMBX_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
I2C_SMBX_IRQHandler
        B I2C_SMBX_IRQHandler
        
        PUBWEAK MUX9_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX9_IRQHandler
        B MUX9_IRQHandler
        
                
        PUBWEAK AES_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
AES_IRQHandler
        B AES_IRQHandler
                  
                  
        PUBWEAK LPTIM_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
LPTIM_IRQHandler
        B LPTIM_IRQHandler
                
                
        PUBWEAK DMA_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
DMA_IRQHandler
        B DMA_IRQHandler
        
        
        PUBWEAK WKUPX_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
WKUPX_IRQHandler
        B WKUPX_IRQHandler
   
   
        PUBWEAK MUX10_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX10_IRQHandler
        B MUX10_IRQHandler


        PUBWEAK BSTIM_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
BSTIM_IRQHandler
        B BSTIM_IRQHandler 
      
      
        PUBWEAK COMPX_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
COMPX_IRQHandler
        B COMPX_IRQHandler



        PUBWEAK MUX11_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX11_IRQHandler
        B MUX11_IRQHandler
        
                
        PUBWEAK MUX12_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX12_IRQHandler
        B MUX12_IRQHandler
               
        
        
        PUBWEAK ATIM_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
ATIM_IRQHandler
        B ATIM_IRQHandler
         
         
        PUBWEAK MUX13_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
MUX13_IRQHandler
        B MUX13_IRQHandler
        
        
         PUBWEAK GPIO_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
GPIO_IRQHandler
        B GPIO_IRQHandler
        
        
         PUBWEAK ECCC_RAMP_FDET_IRQHandler
        SECTION .text:CODE:NOROOT:REORDER(1)
ECCC_RAMP_FDET_IRQHandler
        B ECCC_RAMP_FDET_IRQHandler
        END