count.s
来自「S3C24A0的完整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.
;*
;*-----------------------------------------------------------------------------
;*
;* S3C24A0 BSP (WinCE.NET)
;*
;* count.s : BSP timer Code
;*
;* @author :
;*
;* @date : 2004/08/12
;*
;* Log:
;* 2004/08/12 Start
;*
;******************************************************************************
INCLUDE kxarm.h
INCLUDE reg24A0.a
TEXTAREA
;------------------------------------------------------------------------------
;
; 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 + -
显示快捷键?