151 lines
3.1 KiB
C
151 lines
3.1 KiB
C
|
|
|||
|
/*************************************CopyRight(c)************************************************
|
|||
|
** <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ƽ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˾
|
|||
|
** www.lvbu.wang
|
|||
|
**************************************************************************************************
|
|||
|
**Filename:
|
|||
|
**Version:
|
|||
|
**Author:
|
|||
|
**Date:
|
|||
|
**Description:
|
|||
|
**
|
|||
|
**************************************************************************************************
|
|||
|
**Version:
|
|||
|
**Modifier:
|
|||
|
**Datemodified:
|
|||
|
**Description:
|
|||
|
**
|
|||
|
**************************************************************************************************/
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
extern "C"
|
|||
|
{
|
|||
|
#endif
|
|||
|
|
|||
|
/*********************************************************************
|
|||
|
* Include
|
|||
|
*/
|
|||
|
#include "calender.h"
|
|||
|
#include "softtimer.h"
|
|||
|
#include "DebugLog.h"
|
|||
|
/*********************************************************************
|
|||
|
* Macros
|
|||
|
*/
|
|||
|
#define _TIMER_HANDLER_C_
|
|||
|
/*********************************************************************
|
|||
|
* Constants
|
|||
|
*/
|
|||
|
|
|||
|
/*********************************************************************
|
|||
|
* Typedefs
|
|||
|
*/
|
|||
|
|
|||
|
/*********************************************************************
|
|||
|
* Global Variables
|
|||
|
*/
|
|||
|
|
|||
|
struct SYD_sysTimer syd_sysTimer[EVT_NUM] = {0};
|
|||
|
/*********************************************************************
|
|||
|
* Global Functions
|
|||
|
*/
|
|||
|
|
|||
|
/*********************************************************************
|
|||
|
* External Variables
|
|||
|
*/
|
|||
|
|
|||
|
/*********************************************************************
|
|||
|
* External Functions
|
|||
|
*/
|
|||
|
|
|||
|
/*********************************************************************
|
|||
|
* Local Vriables
|
|||
|
*/
|
|||
|
|
|||
|
/*********************************************************************
|
|||
|
* Local Functions
|
|||
|
*/
|
|||
|
|
|||
|
/*********************************************************************
|
|||
|
* Function : <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ķ<EFBFBD>ʱ<EFBFBD>¼<EFBFBD>
|
|||
|
* Param in : none
|
|||
|
* Param out: none
|
|||
|
* Return : none
|
|||
|
* Describe :
|
|||
|
*/
|
|||
|
#ifdef EVT_2S
|
|||
|
void Timer_Evt_2s(void)
|
|||
|
{
|
|||
|
TIMER_EVT|=EVT_2S;
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
#ifdef EVT_1S_OTA
|
|||
|
void Timer_EVT_1S_OTA(void)
|
|||
|
{
|
|||
|
TIMER_EVT|=EVT_1S_OTA;
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
#ifdef EVT_1S_WORK
|
|||
|
void Timer_EVT_1S_WORK(void)
|
|||
|
{
|
|||
|
TIMER_EVT|=EVT_1S_WORK;
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
#ifdef EVT_100MS_PACK
|
|||
|
void Timer_EVT_100MS_PCAK(void)
|
|||
|
{
|
|||
|
TIMER_EVT|=EVT_100MS_PACK;
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
#ifdef EVT_20S_BATTERY
|
|||
|
void Timer_EVT_20S_BATTERY(void)
|
|||
|
{
|
|||
|
TIMER_EVT|=EVT_20S_BATTERY;
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
void Timer_Evt_List(void)
|
|||
|
{
|
|||
|
/* 2s<32><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
#ifdef EVT_2S
|
|||
|
Timer_Evt_Creat(EVT_2S,2000,Timer_Evt_2s,EVT_DISABLE_MODE);
|
|||
|
#endif
|
|||
|
|
|||
|
/* 1s<31><73>OTA<54><41><EFBFBD>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
#ifdef EVT_1S_OTA
|
|||
|
Timer_Evt_Creat(EVT_1S_OTA,1000,Timer_EVT_1S_OTA,EVT_DISABLE_MODE);
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
/* 1S<31><53>app<70><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
|
|||
|
#ifdef EVT_1S_WORK
|
|||
|
Timer_Evt_Creat(EVT_1S_WORK,1000,Timer_EVT_1S_WORK,EVT_DISABLE_MODE);
|
|||
|
#endif
|
|||
|
|
|||
|
/* 300ms<6D>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݷ<EFBFBD><DDB7><EFBFBD>*/
|
|||
|
#ifdef EVT_100MS_PACK
|
|||
|
Timer_Evt_Creat(EVT_100MS_PACK,100,Timer_EVT_100MS_PCAK,EVT_DISABLE_MODE);
|
|||
|
#endif
|
|||
|
|
|||
|
/* 20S<30>Ķ<EFBFBD>ʱ<EFBFBD><CAB1>ȡ<EFBFBD><C8A1><EFBFBD>ص<EFBFBD><D8B5><EFBFBD>*/
|
|||
|
#ifdef EVT_20S_BATTERY
|
|||
|
Timer_Evt_Creat(EVT_20S_BATTERY,20000,Timer_EVT_20S_BATTERY,EVT_DISABLE_MODE);
|
|||
|
#endif
|
|||
|
}
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
}
|
|||
|
#endif
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|