power.c
来自「台湾凌阳方案300万数码相机源代码」· C语言 代码 · 共 252 行
C
252 行
/*++
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 + =
减小字号Ctrl + -
显示快捷键?