1 /******************************************************************************
2 ** File Name: pin_sleep.h *
5 ** Copyright: 2007 Spreatrum, Incoporated. All Rights Reserved. *
6 ** Description: This file defines the basic configuration for pin *
7 ** management in deepsleep condition. *
8 ******************************************************************************
10 ******************************************************************************
12 ** ------------------------------------------------------------------------- *
13 ** DATE NAME DESCRIPTION *
14 ** 07/28/2007 jiexia.yu Create. *
15 ******************************************************************************/
19 /**---------------------------------------------------------------------------*
21 **---------------------------------------------------------------------------*/
22 #include "sci_types.h"
25 /**---------------------------------------------------------------------------*
27 **---------------------------------------------------------------------------*/
33 /**---------------------------------------------------------------------------*
35 **---------------------------------------------------------------------------*/
36 //PIN sleep struct define
37 typedef struct pin_sleep_tag
39 uint32 reg_addr; //register address
40 uint32 bit_mask; //register data mask
41 uint32 bit_set; //register bit that want to be setup
42 uint32 reg_save; //temp variable for save original register value
46 /**---------------------------------------------------------------------------*
47 ** Constant Variables *
48 **---------------------------------------------------------------------------*/
50 /**---------------------------------------------------------------------------*
51 ** Function Prototypes *
52 **---------------------------------------------------------------------------*/
53 /*****************************************************************************/
54 // Description: setup pin config when system enters deepsleep
55 // Global resource dependence: misc_pin_sleep_cfg[]
58 /*****************************************************************************/
59 PUBLIC void PIN_EnterDeepSleep(void);
61 /*****************************************************************************/
62 // Description: restore pin config when system leaves deepsleep
63 // Global resource dependence: misc_pin_sleep_cfg[]
66 /*****************************************************************************/
67 PUBLIC void PIN_LeaveDeepSleep(void);
70 /**---------------------------------------------------------------------------*
72 **---------------------------------------------------------------------------*/
77 #endif // _PIN_SLEEP_H_