98 lines
2.2 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/****************************************************************************************************
* mainAtbh.c
* 描述AT保护主文件包含入口程序主要模拟采样中断程序和保护中断程序
* 函数STATUS progStart()
* void sysInit()
* void ReadSampleValue()
* void funcBH()
* void progStop()
*
*
******************************************************************************************************/
/****************************************** includes ***********************************************/
#include "..\h\predefine.h"
#ifdef _atbh_c_
#include "time.h"
/* APP relational */
#include ".\inc\atbh.h"
#include "..\h\lib.h"
#include "..\h\variable.h"
#include "..\h\com_lib.h"
#include "..\h\testDefine.h"
#include <string.h>
#include "time.h"
/**************************************** forward declarations ***************************************/
int progStart(int ErrCode);
void progStop();
void comm();
extern void Reset_Init();
extern void InitCommTable();
extern void PowerInitData(void);
extern void settingtype_init();
extern void commobjectinit();
/******************************************************************************
* Function: progStart
* Description:入口
* Calls: none
* Called By:
* Input:
* Ouput:
* Return:
* others:
* History:
* 1.luoyang created
*
*******************************************************************************/
int progStart(int ErrCode)
{
PowerInitData(); //上电初始化
InitCommTable(); //通信初始化
settingtype_init();
commobjectinit();
InitSample(); //初始化模拟量通道相关变量
dl_open_innormal_param_init(&ATBH_dl_open_innormal_param);
digit_init(); //数字接口初始化
CHZValue.Status = CHZ_CLOSE;
Reset_Init(); //复位初始化
QdInfoShow(); //
//block_Init(); //闭锁初始化
return (OK);
}
/******************************************************************************
* Function: ReadSampleValue
* Description:未使用
* Calls: none
* Called By:
* Input:
* Ouput:
* Return:
* others:
* History:
* 1.luoyang created
*
*******************************************************************************/
void progStop()
{
}
#endif