1 /******************************************************************************
2 ** File Name: pwm_drvapi.H *
5 ** Copyright: 2003 Spreatrum, Incoporated. All Rights Reserved. *
6 ** Description: This file defines the basic operation interfaces of *
8 *******************************************************************************
10 ******************************************************************************
12 ** ------------------------------------------------------------------------- *
13 ** DATE NAME DESCRIPTION *
14 ** 03/01/2004 Lin.liu Create. *
15 ******************************************************************************/
16 #ifndef _PWM_DRVAPI_H_
17 #define _PWM_DRVAPI_H_
36 #define PWM_CTL_S_ONOFF 0x30 /*Set PWM ON/OFF*/
37 #define PWM_CTL_S_CLKSRC 0x31 /*Set CLK sorce*/
38 #define PWM_CTL_G_CLKSRC 0x32 /*Get CLK sorce*/
41 void PWM_Config (int pwm_num, uint32 freq, uint16 duty_cycle);
42 uint32 PWM_Ioctl (uint32 pwm_num, uint32 cmd, uint32 *arg);
44 #endif // _PWM_DRVAPI_H_