waitinterrupt.arm

来自「ARM9 at91rm9200的linux驱动程序全集!超值!」· ARM 代码 · 共 45 行

ARM
45
字号
;------------------------------------------------------------------------------
;-         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          : WaitInterrupt.arm
;- Object               : Generic CStartup for Ram run
;- Compilation flag     : None
;-
;- 1.0 18/Mar/03 	JPP : Creation Green Hills 3.6
;------------------------------------------------------------------------------

        .file   "WaitInterrupt.arm"

        .nothumb

;------------------------------------------------------------------------------
;- Area Definition
;-----------------
;- Must be defined as function to put first in the code as it must be mapped
;- at offset 0 of the flash EBI_CSR0, ie. at address 0 before remap.
;------------------------------------------------------------------------------
    .section ".text", .text
    .align  4

;-----------------------------------------------------------------------------
;- \fn    AT91F_ARM_WaitForInterrupt
;- \brief Wait for interrupt
;-----------------------------------------------------------------------------
;- extern   void AT91F_ARM_WaitForInterrupt()
    .globl AT91F_ARM_WaitForInterrupt
AT91F_ARM_WaitForInterrupt:

		MCR p15, 0, r0, c7, c0, 4

			mov	 pc,lr
            .type   AT91F_ARM_WaitForInterrupt,$function
            .size   AT91F_ARM_WaitForInterrupt,.-AT91F_ARM_WaitForInterrupt

            END

⌨️ 快捷键说明

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