/*******************************************************************************
|
* File Name : Log.c
|
* Description :
|
* Created on : 2018Äê8ÔÂ2ÈÕ
|
* Author : ¶Å¼ü
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Include Files *
|
*******************************************************************************/
|
#include "stdarg.h"
|
#include "string.h"
|
#include "stm32f4xx_hal.h"
|
#include "Power.h"
|
#include "DBG.h"
|
#include "Module.h"
|
|
/*******************************************************************************
|
* Macro *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Type Definition *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Local Variable *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Local Function Declaration *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Local Function *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Function Name : Power_ModuleEventCallback
|
* Description : ¹Ø»ú»Øµ÷
|
* Input :
|
* Output :
|
* Return :
|
* Author : ¶Å¼ü
|
* Modified Date: : 2018Äê8ÔÂ2ÈÕ
|
*******************************************************************************/
|
// extern u8 rtk_state;
|
|
static HIDO_VOID *l_pPowerEventArg2 = HIDO_NULL;
|
static HIDO_VOID Power_ModuleEventCallback(E_Module _eModule, E_ModuleState _eModuleState, HIDO_VOID *_pArg)
|
{
|
/* ¿ª¹Ø»ú»Øµ÷ÔÚÕâÀï */
|
l_pPowerEventArg2 = _pArg;
|
//rtk_state = 0;
|
}
|
|
/*******************************************************************************
|
* Global Function *
|
*******************************************************************************/
|
|
/*******************************************************************************
|
* Function Name : Power_4GModulePowerOn
|
* Description : PowerOn
|
* Input :
|
* Output :
|
* Return :
|
* Author : ¶Å¼ü
|
* Modified Date: : 2018Äê8ÔÂ2ÈÕ
|
*******************************************************************************/
|
HIDO_INT32 Power_4GModulePowerOn(void)
|
{
|
Module_PowerOn(MODULE_MAIN);
|
|
return HIDO_OK;
|
}
|
|
/*******************************************************************************
|
* Function Name : Power_4GModulePowerOff
|
* Description : PowerOff
|
* Input :
|
* Output :
|
* Return :
|
* Author : ¶Å¼ü
|
* Modified Date: : 2018Äê8ÔÂ2ÈÕ
|
*******************************************************************************/
|
HIDO_INT32 Power_4GModulePowerOff(void)
|
{
|
Module_PowerOff(MODULE_MAIN);
|
|
return HIDO_OK;
|
}
|
|
/*******************************************************************************
|
* Function Name : Power_Init
|
* Description : ³õʼ»¯
|
* Input :
|
* Output :
|
* Return :
|
* Author : ¶Å¼ü
|
* Modified Date: : 2018Äê8ÔÂ2ÈÕ
|
*******************************************************************************/
|
HIDO_INT32 Power_Init(void)
|
{
|
Module_SetPowerEventCallback(Power_ModuleEventCallback, HIDO_NULL);
|
|
return HIDO_OK;
|
}
|