?? irq_spu.s
字號:
;#------------------------------------------------------------------------------
;#- 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_spu.s
;#- Object : Spurious Interrupt Handler.
;#-
;#- 1.0 01/04/00 JCZ : Creation
;#- 1.1 02/11/00 JPP : Green Hills
;#------------------------------------------------------------------------------
AREA AT91Lib, CODE, READONLY
;#------------------------------------------------------------------------------
;#- Function : at91_spurious_handler
;#- Treatments : Simplest and Fastest Spurious Interrupt Handler.
;#- Input Parameters : r14 = lr = interrupt instruction address + 4
;#- : SPSR = CPSR when core interrupted
;#- Output Parameters : None
;#- Registers lost : None
;#- Called Functions : None
;#- Called Macros : None
;#------------------------------------------------------------------------------
INCLUDE at91sam7x256/include/AT91SAM7X256.inc
EXPORT AT91C_spurious_handler
AT91C_spurious_handler
sub r14, r14, #4 ;/* Adjust LR */
stmdb r13!, {r14} ;/* Save LR */
ldr r14, =AT91C_AIC_BASE ;/* Mark the End of Interrupt */
str r14, [r14, #AIC_EOICR]
ldmia r13!, {pc}^ ;/* Restore adjusted */
END
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -