📄 pwrctrl.h
字号:
/*************************************************************************
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -