📄 power.c
字号:
/*++
Copyright (c) 2001 Sunplus Technology Co., Ltd.
Module Name:
power.c
Abstract:
Module related to power control
Environment:
Keil C51 Compiler
Revision History:
08/28/2001 Chi-Yeh Tsai created
--*/
//=============================================================================
//Header file
//=============================================================================
#include "general.h"
#if (POWER_OPTION == 1)
#include "power.h"
//=============================================================================
//Symbol
//=============================================================================
//-----------------------------------------------------------------------------
//Constant
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
//Variable
//-----------------------------------------------------------------------------
//=============================================================================
//Program
//=============================================================================
//-----------------------------------------------------------------------------
//POWER_Initialize
//-----------------------------------------------------------------------------
/*++
Routine Description:
initialize power control
Arguments:
none
Return Value:
none
--*/
void POWER_Initialize(void) USING_0
{
POWER_Resume();
}
//-----------------------------------------------------------------------------
//POWER_UsbConnectStatusChangeInt
//-----------------------------------------------------------------------------
void POWER_UsbConnectStatusChangeInt(void) USING_1
/*++
Routine Description:
process interrupt of USB connect status change
Arguments:
none
Return Value:
none
--*/
{
POWER_UsbConnect();
POWER_UsbDisconnect();
}
//-----------------------------------------------------------------------------
//POWER_UsbConnect
//-----------------------------------------------------------------------------
void POWER_UsbConnect(void) USING_1
/*++
Routine Description:
process interrupt of USB connector connected
Arguments:
none
Return Value:
none
--*/
{
}
//-----------------------------------------------------------------------------
//POWER_UsbDisconnect
//-----------------------------------------------------------------------------
void POWER_UsbDisconnect(void) USING_1
/*++
Routine Description:
process interrupt of USB connector disconnected
Arguments:
none
Return Value:
none
--*/
{
}
//-----------------------------------------------------------------------------
//POWER_UsbSuspendPolling
//-----------------------------------------------------------------------------
void POWER_UsbSuspendPolling(void) USING_0
/*++
Routine Description:
polling event of USB bus suspend
Arguments:
none
Return Value:
none
--*/
{
POWER_UsbSuspend();
}
//-----------------------------------------------------------------------------
//POWER_UsbSuspend
//-----------------------------------------------------------------------------
void POWER_UsbSuspend(void) USING_0
/*++
Routine Description:
process event of USB bus suspend
Arguments:
none
Return Value:
none
--*/
{
}
//-----------------------------------------------------------------------------
//POWER_UiSuspendPolling
//-----------------------------------------------------------------------------
void POWER_UiSuspendPolling(void) USING_0
/*++
Routine Description:
polling event of UI suspend
Arguments:
none
Return Value:
none
--*/
{
POWER_UiSuspend();
}
//-----------------------------------------------------------------------------
//POWER_UiSuspend
//-----------------------------------------------------------------------------
void POWER_UiSuspend(void) USING_0
/*++
Routine Description:
process event of UI suspend
Arguments:
none
Return Value:
none
--*/
{
}
//-----------------------------------------------------------------------------
//POWER_Resume
//-----------------------------------------------------------------------------
void POWER_Resume(void) USING_0
/*++
Routine Description:
process resume from suspend state
Arguments:
none
Return Value:
none
--*/
{
}
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -