irq_timer.s

来自「包括EPA协议栈」· S 代码 · 共 89 行

S
89
字号
;------------------------------------------------------------------------------
;-         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/Feb/03 JPP     : Creation
;------------------------------------------------------------------------------

;------------------------------------------------------------------------------
;- Area Definition
;------------------------------------------------------------------------------
	AREA        itHandler, CODE, READONLY

    INCLUDE   AT91R40008.inc

    INCLUDE   irq_arm.mac


;------------------------------------------------------------------------------
;- Function             : timer2_asm_irq_handler
;- Treatments           : Timer 0 interrupt handler.
;- Called Functions     : TC2Int
;- Called Macros        : IRQ_ENTRY, IRQ_EXIT
;------------------------------------------------------------------------------
	EXPORT timer2_asm_irq_handler
	IMPORT TC2Int
timer2_asm_irq_handler

;- Manage Exception Entry
        IRQ_ENTRY

;- Call the timer Interrupt C handler
		    ldr         r0, =TC2Int
            mov         r14, pc
            bx          r0
;- Irq exit
;- Manage Exception Exit
            IRQ_EXIT
;------------------------------------------------------------------------------
;- Function             : timer1_asm_irq_handler
;- Treatments           : Timer 1 interrupt handler.
;- Called Functions     : STInt
;- Called Macros        : IRQ_ENTRY, IRQ_EXIT
;------------------------------------------------------------------------------
	EXPORT timer1_asm_irq_handler
	IMPORT STInt
timer1_asm_irq_handler

;- Manage Exception Entry
        IRQ_ENTRY

;- Call the timer Interrupt C handler
		    ldr         r0, =STInt
            mov         r14, pc
            bx          r0
;- Irq exit
;- Manage Exception Exit
            IRQ_EXIT
;------------------------------------------------------------------------------
;- Function             : PTimerIntHandler
;- Treatments           : Timer 1 interrupt handler.
;- Called Functions     : PTimerInt
;- Called Macros        : IRQ_ENTRY, IRQ_EXIT
;------------------------------------------------------------------------------
	EXPORT PTimerIntHandler
	IMPORT PTimerInt
PTimerIntHandler

;- Manage Exception Entry
        IRQ_ENTRY

;- Call the timer Interrupt C handler
		    ldr         r0, =PTimerInt
            mov         r14, pc
            bx          r0
;- Irq exit
;- Manage Exception Exit
            IRQ_EXIT


          END

⌨️ 快捷键说明

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