irq_irq0.arm

来自「ATMEL AT91RM9200开发板配套光盘上的全部示例程序」· ARM 代码 · 共 51 行

ARM
51
字号
;------------------------------------------------------------------------------
;-         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          : irq_irq0.arm
;- Object               : Assembler IRQ0 Interrupt Handler.
;-
;- 1.0 18/11/02 JPP     : Creation
;------------------------------------------------------------------------------

;------------------------------------------------------------------------------
;- Area Definition
;------------------------------------------------------------------------------
    .section ".text", .text
    .align  4

#include "include/AT91M55800A_inc.h"
#include "irq_ghs.mac"

;------------------------------------------------------------------------------
;- Function             : irq0_asm_irq_handler
;- Treatments           : IRQ0 Controller Interrupt Handler.
;- Called Functions     : at91_IRQ0_handler
;- Called Macros        : IRQ_ENTRY, IRQ_EXIT
;------------------------------------------------------------------------------
    .globl irq0_asm_irq_handler
irq0_asm_irq_handler:
            .import      at91_IRQ0_handler

;- Manage Exception Entry
        IRQ_ENTRY
;- Call the PIO Interrupt C handler
            ldr         r0, =at91_IRQ0_handler
            mov         r14, pc
            bx          r0
;- Irq exit
exit_irq:
;- Manage Exception Exit
        IRQ_EXIT

    .type   irq0_asm_irq_handler,$function
    .size   irq0_asm_irq_handler,.-irq0_asm_irq_handler

    END

⌨️ 快捷键说明

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