1 /******************************************************************************
2 ** File Name: pwm_reg_v1.h *
5 ** Copyright: 2010 Spreatrum, Incoporated. All Rights Reserved. *
7 ******************************************************************************/
8 /******************************************************************************
10 **---------------------------------------------------------------------------*
11 ** DATE NAME DESCRIPTION *
12 ** 06/11/2010 hao.liu Create. *
13 ******************************************************************************/
14 #ifndef _PWM_REG_V1_H_
15 #define _PWM_REG_V1_H_
16 /*----------------------------------------------------------------------------*
18 **------------------------------------------------------------------------- */
20 /**---------------------------------------------------------------------------*
22 **--------------------------------------------------------------------------*/
27 /**---------------------------------------------------------------------------*
29 **---------------------------------------------------------------------------*/
30 typedef struct pwm_tag
32 VOLATILE uint32 prescale;
33 VOLATILE uint32 cnt_duty;
35 VOLATILE uint32 pattern_low;
36 VOLATILE uint32 pattern_high;
38 /**----------------------------------------------------------------------------*
40 **----------------------------------------------------------------------------*/
42 /**----------------------------------------------------------------------------*
43 ** Local Function Prototype **
44 **----------------------------------------------------------------------------*/
46 /**----------------------------------------------------------------------------*
47 ** Function Prototype **
48 **----------------------------------------------------------------------------*/
51 /**----------------------------------------------------------------------------*
53 **----------------------------------------------------------------------------*/
58 /**---------------------------------------------------------------------------*/