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

📄 irq_spu.s

📁 基于sam7x256平台做的CAN与网口互转接口
💻 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 + -