st_irq.s

来自「有关ATMEL AT91系列CPU的驱动函数库」· S 代码 · 共 46 行

S
46
字号
#------------------------------------------------------------------------------
#-         ATMEL Microcontroller Software Support  -  ROUSSET  -
#------------------------------------------------------------------------------
# The software is delivered "AS IS" without warranty or condition of any
# kind, either express, implied or statutory. This includes without
# limitation any warranty or condition with respect to merchantability or
# fitness for any particular purpose, or against the infringements of
# intellectual property rights of others.
#------------------------------------------------------------------------------
#- File source          : st_irq.s
#- Object               : Assembler System Timer Interrupt Handler.
#-
#- 1.0 18/02/02  PFi    : Creation
#------------------------------------------------------------------------------

#            AREA        IrqST, CODE, READONLY, INTERWORK

            .INCLUDE     "../../periph/aic/irq.mac"
            .INCLUDE     "../../periph/system_timer/st.inc"

#------------------------------------------------------------------------------
#- Function             : at91_st_irq_asm_handler
#- Treatments           : Sytem Timer Interrupt Handler.
#- Imported Functions   : at91_st_irq_c_handler
#- Exported Functions   : at91_st_irq_asm_handler
#- Called Macros        : IRQ_ENTRY, IRQ_EXIT
#------------------------------------------------------------------------------

            .EXTERN      at91_st_irq_c_handler
            .GLOBAL      at91_st_irq_asm_handler

at91_st_irq_asm_handler:

#- Manage Exception Entry
            IRQ_ENTRY

#- Call the System Timer C Interrupt handler 
            ldr         r0, =at91_st_irq_c_handler
            mov         r14, pc
            bx          r0
            
#- Manage Exception Exit
            IRQ_EXIT
            
            .END

⌨️ 快捷键说明

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