count.s
来自「支持三星原产的S3C2413开发板」· S 代码 · 共 66 行
S
66 行
;******************************************************************************
;*
;* 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.
;*
;*-----------------------------------------------------------------------------
;*
;* S3C2413 BSP (WinCE.NET)
;*
;* count.s : BSP timer Code
;*
;* @author :
;*
;* @date : 2005/11/29
;*
;* Log: DonGo, Refered from WM510 24A0.
;* The source is from S3C2440 SM520
;******************************************************************************
INCLUDE kxarm.h
INCLUDE s3c2413.inc
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 + -
显示快捷键?