; *****************************************************************************
; *  @file:    YTM32B1MD2_startup_ghs.S
; *  @purpose: GreenHillsARM Startup File
; *            YTM32B1MD2
; *  @version: 1.0
; *  @date:    2025-07-02
; *****************************************************************************

    .file "YTM32B1MD2_startup_ghs.S"
    .text

    .need DefaultISR
    .globl DefaultISR

    .thumb

    .section .isr_vector, "a"
    .align 2
    .globl __Vectors
__Vectors:
    .long   __StackTop                                     ; Top of Stack
    .long   Reset_Handler                                  ; Reset Handler
    .long   NMI_Handler                                    ; NMI Handler
    .long   HardFault_Handler                              ; HardFault Handler
    .long   MemManage_Handler                              ; MemManage Handler
    .long   BusFault_Handler                               ; BusFault Handler
    .long   UsageFault_Handler                             ; UsageFault Handler
    .long   0                                              ; Reserved
    .long   0                                              ; Reserved
    .long   0                                              ; Reserved
    .long   0                                              ; Reserved
    .long   SVC_Handler                                    ; SVC Handler
    .long   DebugMon_Handler                               ; DebugMon Handler
    .long   0                                              ; Reserved
    .long   PendSV_Handler                                 ; PendSV Handler
    .long   SysTick_Handler                                ; SysTick Handler

; External Interrupts
    .long   DMA0_IRQHandler                                ; DMA0 IRQHandler
    .long   DMA1_IRQHandler                                ; DMA1 IRQHandler
    .long   DMA2_IRQHandler                                ; DMA2 IRQHandler
    .long   DMA3_IRQHandler                                ; DMA3 IRQHandler
    .long   DMA4_IRQHandler                                ; DMA4 IRQHandler
    .long   DMA5_IRQHandler                                ; DMA5 IRQHandler
    .long   DMA6_IRQHandler                                ; DMA6 IRQHandler
    .long   DMA7_IRQHandler                                ; DMA7 IRQHandler
    .long   Reserved5_IRQHandler                           ; Reserved5 IRQHandler
    .long   Reserved6_IRQHandler                           ; Reserved6 IRQHandler
    .long   Reserved7_IRQHandler                           ; Reserved7 IRQHandler
    .long   Reserved8_IRQHandler                           ; Reserved8 IRQHandler
    .long   Reserved9_IRQHandler                           ; Reserved9 IRQHandler
    .long   Reserved10_IRQHandler                          ; Reserved10 IRQHandler
    .long   Reserved11_IRQHandler                          ; Reserved11 IRQHandler
    .long   Reserved12_IRQHandler                          ; Reserved12 IRQHandler
    .long   DMA_Error_IRQHandler                           ; DMA_Error IRQHandler
    .long   FPU_IRQHandler                                 ; FPU IRQHandler
    .long   EFM_IRQHandler                                 ; EFM IRQHandler
    .long   EFM_Error_IRQHandler                           ; EFM_Error IRQHandler
    .long   PCU_IRQHandler                                 ; PCU IRQHandler
    .long   EFM_Ecc_IRQHandler                             ; EFM_Ecc IRQHandler
    .long   WDG0_IRQHandler                                ; WDG0 IRQHandler
    .long   RCU_IRQHandler                                 ; RCU IRQHandler
    .long   I2C0_Master_IRQHandler                         ; I2C0_Master IRQHandler
    .long   I2C0_Slave_IRQHandler                          ; I2C0_Slave IRQHandler
    .long   SPI0_IRQHandler                                ; SPI0 IRQHandler
    .long   SPI1_IRQHandler                                ; SPI1 IRQHandler
    .long   SPI2_IRQHandler                                ; SPI2 IRQHandler
    .long   I2C1_Master_IRQHandler                         ; I2C1_Master IRQHandler
    .long   Reserved13_IRQHandler                          ; Reserved13 IRQHandler
    .long   UART0_IRQHandler                               ; UART0 IRQHandler
    .long   Reserved14_IRQHandler                          ; Reserved14 IRQHandler
    .long   UART1_IRQHandler                               ; UART1 IRQHandler
    .long   Reserved15_IRQHandler                          ; Reserved15 IRQHandler
    .long   UART2_IRQHandler                               ; UART2 IRQHandler
    .long   Reserved16_IRQHandler                          ; Reserved16 IRQHandler
    .long   Reserved17_IRQHandler                          ; Reserved17 IRQHandler
    .long   Reserved18_IRQHandler                          ; Reserved18 IRQHandler
    .long   eADC0_IRQHandler                               ; eADC0 IRQHandler
    .long   Reserved19_IRQHandler                          ; Reserved19 IRQHandler
    .long   ACMP0_IRQHandler                               ; ACMP0 IRQHandler
    .long   Reserved20_IRQHandler                          ; Reserved20 IRQHandler
    .long   Reserved21_IRQHandler                          ; Reserved21 IRQHandler
    .long   EMU0_SB_IRQHandler                             ; EMU0_SB IRQHandler
    .long   EMU0_DB_IRQHandler                             ; EMU0_DB IRQHandler
    .long   RTC_IRQHandler                                 ; RTC IRQHandler
    .long   RTC_Seconds_IRQHandler                         ; RTC_Seconds IRQHandler
    .long   pTMR0_Ch0_IRQHandler                           ; pTMR0_Ch0 IRQHandler
    .long   pTMR0_Ch1_IRQHandler                           ; pTMR0_Ch1 IRQHandler
    .long   pTMR0_Ch2_IRQHandler                           ; pTMR0_Ch2 IRQHandler
    .long   pTMR0_Ch3_IRQHandler                           ; pTMR0_Ch3 IRQHandler
    .long   Reserved22_IRQHandler                          ; Reserved22 IRQHandler
    .long   Reserved23_IRQHandler                          ; Reserved23 IRQHandler
    .long   Reserved24_IRQHandler                          ; Reserved24 IRQHandler
    .long   Reserved25_IRQHandler                          ; Reserved25 IRQHandler
    .long   Reserved26_IRQHandler                          ; Reserved26 IRQHandler
    .long   CMU_IRQHandler                                 ; CMU IRQHandler
    .long   lpTMR0_IRQHandler                              ; lpTMR0 IRQHandler
    .long   GPIOA_IRQHandler                               ; GPIOA IRQHandler
    .long   GPIOB_IRQHandler                               ; GPIOB IRQHandler
    .long   GPIOC_IRQHandler                               ; GPIOC IRQHandler
    .long   GPIOD_IRQHandler                               ; GPIOD IRQHandler
    .long   GPIOE_IRQHandler                               ; GPIOE IRQHandler
    .long   Reserved27_IRQHandler                          ; Reserved27 IRQHandler
    .long   Reserved28_IRQHandler                          ; Reserved28 IRQHandler
    .long   Reserved29_IRQHandler                          ; Reserved29 IRQHandler
    .long   Reserved30_IRQHandler                          ; Reserved30 IRQHandler
    .long   Reserved31_IRQHandler                          ; Reserved31 IRQHandler
    .long   Reserved32_IRQHandler                          ; Reserved32 IRQHandler
    .long   Reserved33_IRQHandler                          ; Reserved33 IRQHandler
    .long   Reserved34_IRQHandler                          ; Reserved34 IRQHandler
    .long   Reserved35_IRQHandler                          ; Reserved35 IRQHandler
    .long   Reserved36_IRQHandler                          ; Reserved36 IRQHandler
    .long   Reserved37_IRQHandler                          ; Reserved37 IRQHandler
    .long   Reserved38_IRQHandler                          ; Reserved38 IRQHandler
    .long   Reserved39_IRQHandler                          ; Reserved39 IRQHandler
    .long   Reserved40_IRQHandler                          ; Reserved40 IRQHandler
    .long   CAN0_ORed_IRQHandler                           ; CAN0_ORed IRQHandler
    .long   CAN0_Error_IRQHandler                          ; CAN0_Error IRQHandler
    .long   CAN0_Wake_Up_IRQHandler                        ; CAN0_Wake_Up IRQHandler
    .long   CAN0_ORed_0_15_MB_IRQHandler                   ; CAN0_ORed_0_15_MB IRQHandler
    .long   CAN0_ORed_16_31_MB_IRQHandler                  ; CAN0_ORed_16_31_MB IRQHandler
    .long   CAN0_ORed_32_47_MB_IRQHandler                  ; CAN0_ORed_32_47_MB IRQHandler
    .long   CAN0_ORed_48_63_MB_IRQHandler                  ; CAN0_ORed_48_63_MB IRQHandler
    .long   CAN1_ORed_IRQHandler                           ; CAN1_ORed IRQHandler
    .long   CAN1_Error_IRQHandler                          ; CAN1_Error IRQHandler
    .long   CAN1_Wake_Up_IRQHandler                        ; CAN1_Wake_Up IRQHandler
    .long   CAN1_ORed_0_15_MB_IRQHandler                   ; CAN1_ORed_0_15_MB IRQHandler
    .long   CAN1_ORed_16_31_MB_IRQHandler                  ; CAN1_ORed_16_31_MB IRQHandler
    .long   CAN1_ORed_32_47_MB_IRQHandler                  ; CAN1_ORed_32_47_MB IRQHandler
    .long   CAN1_ORed_48_63_MB_IRQHandler                  ; CAN1_ORed_48_63_MB IRQHandler
    .long   CAN2_ORed_IRQHandler                           ; CAN2_ORed IRQHandler
    .long   CAN2_Error_IRQHandler                          ; CAN2_Error IRQHandler
    .long   CAN2_Wake_Up_IRQHandler                        ; CAN2_Wake_Up IRQHandler
    .long   CAN2_ORed_0_15_MB_IRQHandler                   ; CAN2_ORed_0_15_MB IRQHandler
    .long   CAN2_ORed_16_31_MB_IRQHandler                  ; CAN2_ORed_16_31_MB IRQHandler
    .long   Reserved41_IRQHandler                          ; Reserved41 IRQHandler
    .long   Reserved42_IRQHandler                          ; Reserved42 IRQHandler
    .long   eTMR0_Ch0_Ch1_IRQHandler                       ; eTMR0_Ch0_Ch1 IRQHandler
    .long   eTMR0_Ch2_Ch3_IRQHandler                       ; eTMR0_Ch2_Ch3 IRQHandler
    .long   eTMR0_Ch4_Ch5_IRQHandler                       ; eTMR0_Ch4_Ch5 IRQHandler
    .long   eTMR0_Ch6_Ch7_IRQHandler                       ; eTMR0_Ch6_Ch7 IRQHandler
    .long   eTMR0_Fault_IRQHandler                         ; eTMR0_Fault IRQHandler
    .long   eTMR0_Ovf_IRQHandler                           ; eTMR0_Ovf IRQHandler
    .long   eTMR1_Ch0_Ch1_IRQHandler                       ; eTMR1_Ch0_Ch1 IRQHandler
    .long   eTMR1_Ch2_Ch3_IRQHandler                       ; eTMR1_Ch2_Ch3 IRQHandler
    .long   eTMR1_Ch4_Ch5_IRQHandler                       ; eTMR1_Ch4_Ch5 IRQHandler
    .long   eTMR1_Ch6_Ch7_IRQHandler                       ; eTMR1_Ch6_Ch7 IRQHandler
    .long   eTMR1_Fault_IRQHandler                         ; eTMR1_Fault IRQHandler
    .long   eTMR1_Ovf_IRQHandler                           ; eTMR1_Ovf IRQHandler
    .long   Reserved43_IRQHandler                          ; Reserved43 IRQHandler
    .long   Reserved44_IRQHandler                          ; Reserved44 IRQHandler
    .long   Reserved45_IRQHandler                          ; Reserved45 IRQHandler
    .long   Reserved46_IRQHandler                          ; Reserved46 IRQHandler
    .long   Reserved47_IRQHandler                          ; Reserved47 IRQHandler
    .long   Reserved48_IRQHandler                          ; Reserved48 IRQHandler
    .long   MPWM0_Ch0_Ovf_IRQHandler                       ; MPWM0_Ch0_Ovf IRQHandler
    .long   MPWM0_Ch1_Ovf_IRQHandler                       ; MPWM0_Ch1_Ovf IRQHandler
    .long   MPWM0_Ch2_Ovf_IRQHandler                       ; MPWM0_Ch2_Ovf IRQHandler
    .long   MPWM0_Ch3_Ovf_IRQHandler                       ; MPWM0_Ch3_Ovf IRQHandler
    .long   MPWM0_Ch4_Ovf_IRQHandler                       ; MPWM0_Ch4_Ovf IRQHandler
    .long   MPWM0_Ch5_Ovf_IRQHandler                       ; MPWM0_Ch5_Ovf IRQHandler
    .long   MPWM0_Ch6_Ovf_IRQHandler                       ; MPWM0_Ch6_Ovf IRQHandler
    .long   MPWM0_Ch7_Ovf_IRQHandler                       ; MPWM0_Ch7_Ovf IRQHandler
    .long   MPWM0_Ch8_Ovf_IRQHandler                       ; MPWM0_Ch8_Ovf IRQHandler
    .long   MPWM0_Ch9_Ovf_IRQHandler                       ; MPWM0_Ch9_Ovf IRQHandler
    .long   MPWM0_Ch10_Ovf_IRQHandler                      ; MPWM0_Ch10_Ovf IRQHandler
    .long   MPWM0_Ch11_Ovf_IRQHandler                      ; MPWM0_Ch11_Ovf IRQHandler
    .long   MPWM0_Ch12_Ovf_IRQHandler                      ; MPWM0_Ch12_Ovf IRQHandler
    .long   MPWM0_Ch13_Ovf_IRQHandler                      ; MPWM0_Ch13_Ovf IRQHandler
    .long   MPWM0_Ch14_Ovf_IRQHandler                      ; MPWM0_Ch14_Ovf IRQHandler
    .long   MPWM0_Ch15_Ovf_IRQHandler                      ; MPWM0_Ch15_Ovf IRQHandler
    .long   MPWM0_Ch0_IRQHandler                           ; MPWM0_Ch0 IRQHandler
    .long   MPWM0_Ch1_IRQHandler                           ; MPWM0_Ch1 IRQHandler
    .long   MPWM0_Ch2_IRQHandler                           ; MPWM0_Ch2 IRQHandler
    .long   MPWM0_Ch3_IRQHandler                           ; MPWM0_Ch3 IRQHandler
    .long   MPWM0_Ch4_IRQHandler                           ; MPWM0_Ch4 IRQHandler
    .long   MPWM0_Ch5_IRQHandler                           ; MPWM0_Ch5 IRQHandler
    .long   MPWM0_Ch6_IRQHandler                           ; MPWM0_Ch6 IRQHandler
    .long   MPWM0_Ch7_IRQHandler                           ; MPWM0_Ch7 IRQHandler
    .long   MPWM0_Ch8_IRQHandler                           ; MPWM0_Ch8 IRQHandler
    .long   MPWM0_Ch9_IRQHandler                           ; MPWM0_Ch9 IRQHandler
    .long   MPWM0_Ch10_IRQHandler                          ; MPWM0_Ch10 IRQHandler
    .long   MPWM0_Ch11_IRQHandler                          ; MPWM0_Ch11 IRQHandler
    .long   MPWM0_Ch12_IRQHandler                          ; MPWM0_Ch12 IRQHandler
    .long   MPWM0_Ch13_IRQHandler                          ; MPWM0_Ch13 IRQHandler
    .long   MPWM0_Ch14_IRQHandler                          ; MPWM0_Ch14 IRQHandler
    .long   MPWM0_Ch15_IRQHandler                          ; MPWM0_Ch15 IRQHandler
    .long   Reserved49_IRQHandler                          ; Reserved49 IRQHandler
    .long   Reserved50_IRQHandler                          ; Reserved50 IRQHandler
    .long   Reserved51_IRQHandler                          ; Reserved51 IRQHandler
    .long   Reserved52_IRQHandler                          ; Reserved52 IRQHandler
    .long   Reserved53_IRQHandler                          ; Reserved53 IRQHandler
    .long   Reserved54_IRQHandler                          ; Reserved54 IRQHandler
    .long   Reserved55_IRQHandler                          ; Reserved55 IRQHandler
    .long   TRNG_IRQHandler                                ; TRNG IRQHandler
    .long   HCU_IRQHandler                                 ; HCU IRQHandler

    .size    __Vectors, . - __Vectors

    .text

; Reset Handler
    .thumb
    .align 2
    .globl   Reset_Handler
    .weak    Reset_Handler
    .type    Reset_Handler, $function
Reset_Handler:
    cpsid   i               ; Mask interrupts

    ; Init the rest of the registers
    ldr     r1,=0
    ldr     r2,=0
    ldr     r3,=0
    ldr     r4,=0
    ldr     r5,=0
    ldr     r6,=0
    ldr     r7,=0
    mov     r8,r7
    mov     r9,r7
    mov     r10,r7
    mov     r11,r7
    mov     r12,r7

#ifndef START_NO_ECC_INIT

    ; Init ECC RAM 
    ldr     r1, =__RAM_START
    ldr     r2, =__RAM_END

    subs    r2, r1
    subs    r2, #1
    ble     SRAM_LOOP_END

    movs    r0, #0
    movs    r3, #4
SRAM_LOOP:
    str     r0, [r1]
    add     r1, r1, r3
    subs    r2, #4
    bge     SRAM_LOOP
SRAM_LOOP_END:
#endif
    
    ; Initialize the stack pointer 
    ldr     r0,=__StackTop
    mov     r13,r0

#ifndef __NO_SYSTEM_INIT
    ; Call the system init routine 
    ldr     r0,=SystemInit
    blx     r0
#endif

    ; Init .data and .bss sections 
    ldr     r0,=init_data_bss
    blx     r0
    cpsie   i               ; Unmask interrupts 
    bl      main
JumpToSelf:
    b       JumpToSelf

    .align 4
    .ltorg

    .size Reset_Handler, . - Reset_Handler

    .align 2
    .thumb
    .weak DefaultISR
    .type DefaultISR, $function
DefaultISR:
    b       DefaultISR
    .size DefaultISR, . - DefaultISR

;    Macro to define default handlers. Default handler
;    will be weak symbol and just dead loops. They can be
;    overwritten by other handlers
    .macro def_irq_handler  handler_name
    .weak  handler_name
    .set   handler_name, DefaultISR
    .endm

    ; Exception Handlers
    def_irq_handler    NMI_Handler
    def_irq_handler    HardFault_Handler
    def_irq_handler    MemManage_Handler
    def_irq_handler    BusFault_Handler
    def_irq_handler    UsageFault_Handler
    def_irq_handler    Reserved0_Handler
    def_irq_handler    Reserved1_Handler
    def_irq_handler    Reserved2_Handler
    def_irq_handler    Reserved3_Handler
    def_irq_handler    SVC_Handler
    def_irq_handler    DebugMon_Handler
    def_irq_handler    Reserved4_Handler
    def_irq_handler    PendSV_Handler
    def_irq_handler    SysTick_Handler

    ; Device Exception Handlers 

    def_irq_handler    DMA0_IRQHandler
    def_irq_handler    DMA1_IRQHandler
    def_irq_handler    DMA2_IRQHandler
    def_irq_handler    DMA3_IRQHandler
    def_irq_handler    DMA4_IRQHandler
    def_irq_handler    DMA5_IRQHandler
    def_irq_handler    DMA6_IRQHandler
    def_irq_handler    DMA7_IRQHandler
    def_irq_handler    Reserved5_IRQHandler
    def_irq_handler    Reserved6_IRQHandler
    def_irq_handler    Reserved7_IRQHandler
    def_irq_handler    Reserved8_IRQHandler
    def_irq_handler    Reserved9_IRQHandler
    def_irq_handler    Reserved10_IRQHandler
    def_irq_handler    Reserved11_IRQHandler
    def_irq_handler    Reserved12_IRQHandler
    def_irq_handler    DMA_Error_IRQHandler
    def_irq_handler    FPU_IRQHandler
    def_irq_handler    EFM_IRQHandler
    def_irq_handler    EFM_Error_IRQHandler
    def_irq_handler    PCU_IRQHandler
    def_irq_handler    EFM_Ecc_IRQHandler
    def_irq_handler    WDG0_IRQHandler
    def_irq_handler    RCU_IRQHandler
    def_irq_handler    I2C0_Master_IRQHandler
    def_irq_handler    I2C0_Slave_IRQHandler
    def_irq_handler    SPI0_IRQHandler
    def_irq_handler    SPI1_IRQHandler
    def_irq_handler    SPI2_IRQHandler
    def_irq_handler    I2C1_Master_IRQHandler
    def_irq_handler    Reserved13_IRQHandler
    def_irq_handler    UART0_IRQHandler
    def_irq_handler    Reserved14_IRQHandler
    def_irq_handler    UART1_IRQHandler
    def_irq_handler    Reserved15_IRQHandler
    def_irq_handler    UART2_IRQHandler
    def_irq_handler    Reserved16_IRQHandler
    def_irq_handler    Reserved17_IRQHandler
    def_irq_handler    Reserved18_IRQHandler
    def_irq_handler    eADC0_IRQHandler
    def_irq_handler    Reserved19_IRQHandler
    def_irq_handler    ACMP0_IRQHandler
    def_irq_handler    Reserved20_IRQHandler
    def_irq_handler    Reserved21_IRQHandler
    def_irq_handler    EMU0_SB_IRQHandler
    def_irq_handler    EMU0_DB_IRQHandler
    def_irq_handler    RTC_IRQHandler
    def_irq_handler    RTC_Seconds_IRQHandler
    def_irq_handler    pTMR0_Ch0_IRQHandler
    def_irq_handler    pTMR0_Ch1_IRQHandler
    def_irq_handler    pTMR0_Ch2_IRQHandler
    def_irq_handler    pTMR0_Ch3_IRQHandler
    def_irq_handler    Reserved22_IRQHandler
    def_irq_handler    Reserved23_IRQHandler
    def_irq_handler    Reserved24_IRQHandler
    def_irq_handler    Reserved25_IRQHandler
    def_irq_handler    Reserved26_IRQHandler
    def_irq_handler    CMU_IRQHandler
    def_irq_handler    lpTMR0_IRQHandler
    def_irq_handler    GPIOA_IRQHandler
    def_irq_handler    GPIOB_IRQHandler
    def_irq_handler    GPIOC_IRQHandler
    def_irq_handler    GPIOD_IRQHandler
    def_irq_handler    GPIOE_IRQHandler
    def_irq_handler    Reserved27_IRQHandler
    def_irq_handler    Reserved28_IRQHandler
    def_irq_handler    Reserved29_IRQHandler
    def_irq_handler    Reserved30_IRQHandler
    def_irq_handler    Reserved31_IRQHandler
    def_irq_handler    Reserved32_IRQHandler
    def_irq_handler    Reserved33_IRQHandler
    def_irq_handler    Reserved34_IRQHandler
    def_irq_handler    Reserved35_IRQHandler
    def_irq_handler    Reserved36_IRQHandler
    def_irq_handler    Reserved37_IRQHandler
    def_irq_handler    Reserved38_IRQHandler
    def_irq_handler    Reserved39_IRQHandler
    def_irq_handler    Reserved40_IRQHandler
    def_irq_handler    CAN0_ORed_IRQHandler
    def_irq_handler    CAN0_Error_IRQHandler
    def_irq_handler    CAN0_Wake_Up_IRQHandler
    def_irq_handler    CAN0_ORed_0_15_MB_IRQHandler
    def_irq_handler    CAN0_ORed_16_31_MB_IRQHandler
    def_irq_handler    CAN0_ORed_32_47_MB_IRQHandler
    def_irq_handler    CAN0_ORed_48_63_MB_IRQHandler
    def_irq_handler    CAN1_ORed_IRQHandler
    def_irq_handler    CAN1_Error_IRQHandler
    def_irq_handler    CAN1_Wake_Up_IRQHandler
    def_irq_handler    CAN1_ORed_0_15_MB_IRQHandler
    def_irq_handler    CAN1_ORed_16_31_MB_IRQHandler
    def_irq_handler    CAN1_ORed_32_47_MB_IRQHandler
    def_irq_handler    CAN1_ORed_48_63_MB_IRQHandler
    def_irq_handler    CAN2_ORed_IRQHandler
    def_irq_handler    CAN2_Error_IRQHandler
    def_irq_handler    CAN2_Wake_Up_IRQHandler
    def_irq_handler    CAN2_ORed_0_15_MB_IRQHandler
    def_irq_handler    CAN2_ORed_16_31_MB_IRQHandler
    def_irq_handler    Reserved41_IRQHandler
    def_irq_handler    Reserved42_IRQHandler
    def_irq_handler    eTMR0_Ch0_Ch1_IRQHandler
    def_irq_handler    eTMR0_Ch2_Ch3_IRQHandler
    def_irq_handler    eTMR0_Ch4_Ch5_IRQHandler
    def_irq_handler    eTMR0_Ch6_Ch7_IRQHandler
    def_irq_handler    eTMR0_Fault_IRQHandler
    def_irq_handler    eTMR0_Ovf_IRQHandler
    def_irq_handler    eTMR1_Ch0_Ch1_IRQHandler
    def_irq_handler    eTMR1_Ch2_Ch3_IRQHandler
    def_irq_handler    eTMR1_Ch4_Ch5_IRQHandler
    def_irq_handler    eTMR1_Ch6_Ch7_IRQHandler
    def_irq_handler    eTMR1_Fault_IRQHandler
    def_irq_handler    eTMR1_Ovf_IRQHandler
    def_irq_handler    Reserved43_IRQHandler
    def_irq_handler    Reserved44_IRQHandler
    def_irq_handler    Reserved45_IRQHandler
    def_irq_handler    Reserved46_IRQHandler
    def_irq_handler    Reserved47_IRQHandler
    def_irq_handler    Reserved48_IRQHandler
    def_irq_handler    MPWM0_Ch0_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch1_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch2_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch3_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch4_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch5_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch6_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch7_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch8_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch9_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch10_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch11_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch12_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch13_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch14_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch15_Ovf_IRQHandler
    def_irq_handler    MPWM0_Ch0_IRQHandler
    def_irq_handler    MPWM0_Ch1_IRQHandler
    def_irq_handler    MPWM0_Ch2_IRQHandler
    def_irq_handler    MPWM0_Ch3_IRQHandler
    def_irq_handler    MPWM0_Ch4_IRQHandler
    def_irq_handler    MPWM0_Ch5_IRQHandler
    def_irq_handler    MPWM0_Ch6_IRQHandler
    def_irq_handler    MPWM0_Ch7_IRQHandler
    def_irq_handler    MPWM0_Ch8_IRQHandler
    def_irq_handler    MPWM0_Ch9_IRQHandler
    def_irq_handler    MPWM0_Ch10_IRQHandler
    def_irq_handler    MPWM0_Ch11_IRQHandler
    def_irq_handler    MPWM0_Ch12_IRQHandler
    def_irq_handler    MPWM0_Ch13_IRQHandler
    def_irq_handler    MPWM0_Ch14_IRQHandler
    def_irq_handler    MPWM0_Ch15_IRQHandler
    def_irq_handler    Reserved49_IRQHandler
    def_irq_handler    Reserved50_IRQHandler
    def_irq_handler    Reserved51_IRQHandler
    def_irq_handler    Reserved52_IRQHandler
    def_irq_handler    Reserved53_IRQHandler
    def_irq_handler    Reserved54_IRQHandler
    def_irq_handler    Reserved55_IRQHandler
    def_irq_handler    TRNG_IRQHandler
    def_irq_handler    HCU_IRQHandler

    .end

