1 /******************************************************************************
2 ** File Name: sys_timer_reg_v0.h *
3 ** Author: Steve.Zhan *
5 ** Copyright: 2010 Spreatrum, Incoporated. All Rights Reserved. *
7 ******************************************************************************/
8 /******************************************************************************
10 **---------------------------------------------------------------------------*
11 ** DATE NAME DESCRIPTION *
12 ** 06/12/2010 hao.liu Create. *
13 ******************************************************************************/
14 #ifndef _SYS_TIMER_REG_V0_H_
15 #define _SYS_TIMER_REG_V0_H_
16 /*----------------------------------------------------------------------------*
18 **------------------------------------------------------------------------- */
20 /**---------------------------------------------------------------------------*
22 **--------------------------------------------------------------------------*/
27 /**---------------------------------------------------------------------------*
29 **---------------------------------------------------------------------------*/
30 /*----------System Count----------*/
36 #define SYSTIMER_BASE (SPRD_SYSCNT_PHYS)
38 #define SYS_ALM (SYSTIMER_BASE + 0x0000)
39 #define SYS_CNT0 (SYSTIMER_BASE + 0x0004)
40 #define SYS_CTL (SYSTIMER_BASE + 0x0008)
42 #define SYSTEM_CURRENT_CLOCK (*((volatile uint32 *)SYS_CNT0) & 0xFFFFFFFF)
43 /**----------------------------------------------------------------------------*
44 ** Local Function Prototype **
45 **----------------------------------------------------------------------------*/
48 /**----------------------------------------------------------------------------*
49 ** Function Prototype **
50 **----------------------------------------------------------------------------*/
53 /**----------------------------------------------------------------------------*
55 **----------------------------------------------------------------------------*/
59 /**---------------------------------------------------------------------------*/