5ae4e8ef90
清理部分无用代码
58 lines
1.1 KiB
C
58 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2023-06-02 murmur the first version
|
|
*/
|
|
#ifndef APPLICATIONS_USRCFG_H_
|
|
#define APPLICATIONS_USRCFG_H_
|
|
|
|
#include "cfg.h"
|
|
|
|
#define MIN_FRAME_LEN 10
|
|
#define BUFFER_ROW 10//存储编码后信息的二维数组的维数
|
|
|
|
#define WORK_BOARD
|
|
#define FILE_IS_OK 1
|
|
#define TIMER_IS_OUT 1<<1
|
|
#define TT_IS_OK 1<<2
|
|
#define TT_TCP_OK 1<<3
|
|
#define TTIP "10.10.10.72"
|
|
|
|
typedef struct
|
|
{
|
|
rt_uint8_t cnt;
|
|
rt_uint8_t s;
|
|
} CFG;
|
|
|
|
typedef struct
|
|
{
|
|
uint8_t sendInterval;
|
|
uint8_t maxTTWaitTime;
|
|
uint8_t maxTTRetryCnt;
|
|
uint8_t minTTPeriCnt;
|
|
uint8_t minTTsinal;
|
|
uint8_t minActiveTime;
|
|
uint8_t maxActiveTime;
|
|
uint8_t timeout;
|
|
uint8_t openWindowTime[8];
|
|
uint16_t maxSizePerFile;
|
|
uint8_t commMode;
|
|
uint8_t selfDesSW;
|
|
uint8_t locAlert;
|
|
uint8_t locReportInterval;
|
|
|
|
} SYS_CFG;
|
|
|
|
//struct rt_event sw_check;//软件条件
|
|
|
|
#define ROOT_PATH_LOG "/sd/log/"
|
|
#define ROOT_PATH_DATA "/sd/rxdata/"
|
|
|
|
|
|
|
|
#endif /* APPLICATIONS_USRCFG_H_ */
|