📄 emi_ghs.mac
字号:
;------------------------------------------------------------------------------
;- 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 : emi_ghs.mac
;- Object : Main loop function can be assembly in ARM or THUMB
;- This function read DATA in data area with or without
;- Wait state
;-
;- 1.0 04/Mar/03 JPP : Creation
;------------------------------------------------------------------------------
;------------------------------------------------------------------------------
;- Macros : EMI_MEA
;- Parameter
;- Treatments : Infinite loop for measurement
;- Called Functions : None
;- Called Macros : None
;------------------------------------------------------------------------------
;- (TC) Counter Clock Disable Command
#define AT91C_TC_CLKDIS 0x02
.import ptEmiFlag
.macro EMI_MEA label
.macrolocal loop
label:
loop:
nop ; 1
nop ; 2
nop ; 3
nop ; 4
nop ; 5
nop ; 6
nop ; 7
nop ; 8
nop ; 9
nop ; 10
; test loop
ldr r2,[r0] ; get flag value
cmp r2,#0 ; test if 0
beq loop
; return in interworking
bx r14
.type label,$function
.size label,.-label
.endm
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -