⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asm_isr.arm

📁 at91rm9200 benchmark-GHS3_6-2_0
💻 ARM
字号:
;------------------------------------------------------------------------------
;-         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          : arm_isr.arm
;- Object               : Example of IT handler calling a C function
;- Compilation flag     : None
;-
;- 1.0 06/JUN/03 	JPP, : Creation
;------------------------------------------------------------------------------

#include "AT91RM9200_inc.h"
#include "irq_ghs.mac"

;------------------------------------------------------------------------------
;- Area Definition
;------------------------------------------------------------------------------

    .section ".internal", .text
    .align  4

;------------------------------------------------------------------------------
;- Function             : sw_asm_irq_handler
;- Treatments           : software Controller Interrupt Handler.
;- Called Functions     : MeasureISR
;- Called Macros        : IRQ_ENTRY, IRQ_EXIT
;------------------------------------------------------------------------------
    .globl sw_asm_irq_handler
sw_asm_irq_handler:
            .import      MeasureISR

;- Manage Exception Entry
        IRQ_ENTRY
;- Call the  Interrupt C handler
            ldr         r0, =MeasureISR
            mov         r14, pc
            bx          r0
;- Irq exit
;- Manage Exception Exit
        b 	Irq_exit

    .type   sw_asm_irq_handler,$function
    .size   sw_asm_irq_handler,.-sw_asm_irq_handler
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;- Function             : timer0_asm_irq_handler
;- Treatments           : TIMER Controller Interrupt Handler.
;- Called Functions     : TimerISR
;- Called Macros        : IRQ_ENTRY, IRQ_EXIT
;------------------------------------------------------------------------------
    .globl timer0_asm_irq_handler
timer0_asm_irq_handler:
            .import      TimerISR

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

    .type   timer0_asm_irq_handler,$function
    .size   timer0_asm_irq_handler,.-timer0_asm_irq_handler
;------------------------------------------------------------------------------


	END

⌨️ 快捷键说明

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