pwrctrl.h

来自「基于东南大学开发的SEP3203的ARM7中的所有驱动」· C头文件 代码 · 共 47 行

H
47
字号
/*************************************************************************
 *  Copyright (C) Asic Center. 2001
 *  All Rights Reserved
 *
 *  Filename : pwrctrl.h
 *  Function : power control
 *  Revision :
 *          2002/06/17     Pessia     Create this file;
 *************************************************************************/
#ifndef PWRCTRL_H
#define PWRCTRL_H

#include "asixdef.h"

#define POWER_SAVING_ENABLE 1
#define POWER_SAVING_DISABLE 0

/* "PCS" means "Power Control Status"  */
enum{
PCS_NORMAL=0,	/* System runs normally */
PCS_IDLE,		/* Idle_task is the current running task */
PCS_DOZE,		/* System runs with DOZE-MODE ( cpu halt, devices run ) */
PCS_SLEEP		/* System runs with SLEEP-MODE ( cpu halt, devices are 
				  * turned off , such as LCD, UART, and so on) */
};

EXTERN ULONG power_saving_counter;
EXTERN UINT power_saving_flag;
EXTERN UINT cur_pcs;

/* Init Power Control */
PUBLIC void init_pwrctrl( void );

/* Set Current Power Control Status */
PUBLIC void set_pcs( UINT  status );
/* Get Current Power Control Status */
PUBLIC UINT get_pcs( void );

/* System Power On/Off  */
PUBLIC void sys_pwr_on( void );
PUBLIC void sys_pwr_off( void );

/* Called by idle_task */
PUBLIC void idle_process( void );

#endif /* PWRCTRL_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?