?? asm_isr.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 + -