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----------*/
31 #define SYS_ALM (SYSTIMER_BASE + 0x0000)
32 #define SYS_CNT0 (SYSTIMER_BASE + 0x0004)
33 #define SYS_CTL (SYSTIMER_BASE + 0x0008)
35 #define SYSTEM_CURRENT_CLOCK (*((volatile uint32 *)SYS_CNT0) & 0xFFFFFFFF)
36 /**----------------------------------------------------------------------------*
37 ** Local Function Prototype **
38 **----------------------------------------------------------------------------*/
41 /**----------------------------------------------------------------------------*
42 ** Function Prototype **
43 **----------------------------------------------------------------------------*/
46 /**----------------------------------------------------------------------------*
48 **----------------------------------------------------------------------------*/
52 /**---------------------------------------------------------------------------*/