count.s

来自「2440的又一BSP」· S 代码 · 共 67 行

S
67
字号
;******************************************************************************
;*
;* System On Chip(SOC)
;*
;* Copyright (c) 2003 Mobile Solution Project Team, Samsung Electronics, Inc.
;* All rights reserved.
;*
;* This software is the confidential and proprietary information of Samsung 
;* Electronics, Inc("Confidential Information"). You Shall not disclose such 
;* Confidential Information and shall use it only in accordance with the terms 
;* of the license agreement you entered into Samsung.
;*
;*-----------------------------------------------------------------------------
;*
;*	S3C2440 BSP  
;*   
;* count.s		: BSP timer Code
;*
;* @author		: 
;*  
;* @date		:	2005/04/01
;* 
;* Log:
;*      2005/04/01  Start
;*      
;******************************************************************************

	INCLUDE kxarm.h

    TEXTAREA

vTCNTB4		EQU		0x9110003c
vTCNTO4		EQU		0x91100040
;------------------------------------------------------------------------------
;
;  Function:  OALTimerGetCount()
;
;  Returns actual counter value
;
	LEAF_ENTRY OALTimerGetCount
	ldr r1, =vTCNTB4
	ldr r0, [r1]
	mov pc, lr          ; return
	

;------------------------------------------------------------------------------
;
;  Function:  OALTimerGetCompare()
;
;  Returns actual counter value
;
	LEAF_ENTRY OALTimerGetCompare
	ldr r1, =vTCNTB4
	ldr r0, [r1]
	mov pc, lr          ; return

;------------------------------------------------------------------------------
;
;  Function:  OALTimerSetCompare()
;
;  Returns actual counter value
;
	LEAF_ENTRY OALTimerSetCompare
    mov  pc, lr          ; return

;------------------------------------------------------------------------------
	END

⌨️ 快捷键说明

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