irq_timer.s
来自「ATEML公司EB40/40a/42/63/55开发板部分测试程序。」· S 代码 · 共 83 行
S
83 行
#------------------------------------------------------------------------------
#- 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_timer.s
#- Object : Assembler timer Interrupt Handler.
#-
#- 1.0 14/01/02 PFi : Creation
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
#- Area Definition
#-----------------
#- Must be defined as function to put first in the code as it must be mapped
#- at SRAM.
#------------------------------------------------------------------------------
# AREA AT91Lib, CODE, READONLY
.INCLUDE "periph/aic/irq.mac"
#------------------------------------------------------------------------------
#- Function : timer0_asm_irq_handler
#- Treatments : Timer 0 interrupt handler.
#- Called Functions : timer0_c_irq_handler
#- Called Macros : IRQ_ENTRY, IRQ_EXIT
#------------------------------------------------------------------------------
.GLOBAL timer0_asm_irq_handler
.EXTERN timer0_c_irq_handler
.EXTERN TC0_DESC
timer0_asm_irq_handler:
#- Manage Exception Entry
IRQ_ENTRY
#- Call the timer Interrupt C handler
ldr r1, =timer0_c_irq_handler
ldr r0, =TC0_DESC
mov r14, pc
bx r1
#- Manage Exception Exit
IRQ_EXIT
#------------------------------------------------------------------------------
#- Function : timer1_asm_irq_handler
#- Treatments : Timer 1 interrupt handler.
#- Called Functions : timer1_c_irq_handler
#- Called Macros : IRQ_ENTRY, IRQ_EXIT
#------------------------------------------------------------------------------
.GLOBAL timer1_asm_irq_handler
.EXTERN timer1_c_irq_handler
.EXTERN TC1_DESC
timer1_asm_irq_handler:
#- Manage Exception Entry
IRQ_ENTRY
#- Call the timer Interrupt C handler
ldr r1, =timer1_c_irq_handler
ldr r0, =TC1_DESC
mov r14, pc
bx r1
#- Manage Exception Exit
IRQ_EXIT
.END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?