2023-06-02 02:23:26 +00:00
|
|
|
/*
|
|
|
|
* 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_
|
|
|
|
|
2023-06-06 07:45:13 +00:00
|
|
|
#include "cfg.h"
|
2023-06-02 06:37:58 +00:00
|
|
|
|
2023-07-28 08:29:57 +00:00
|
|
|
#define MIN_FRAME_LEN 10
|
2023-08-04 10:13:59 +00:00
|
|
|
#define BUFFER_ROW 10//存储编码后信息的二维数组的维数
|
2023-07-28 08:29:57 +00:00
|
|
|
|
2023-06-02 06:37:58 +00:00
|
|
|
#define WORK_BOARD
|
2023-06-02 02:23:26 +00:00
|
|
|
#define FILE_IS_OK 1
|
|
|
|
#define TIMER_IS_OUT 1<<1
|
|
|
|
#define TT_IS_OK 1<<2
|
2023-06-16 03:18:52 +00:00
|
|
|
#define TT_TCP_OK 1<<3
|
|
|
|
#define TTIP "10.10.10.72"
|
2023-06-06 07:45:13 +00:00
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
rt_uint8_t cnt;
|
|
|
|
rt_uint8_t s;
|
|
|
|
} CFG;
|
|
|
|
|
2023-06-20 10:09:07 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2023-08-01 08:27:21 +00:00
|
|
|
uint8_t sendInterval;
|
|
|
|
uint8_t maxTTWaitTime;
|
|
|
|
uint8_t maxTTRetryCnt;
|
|
|
|
uint8_t minTTPeriCnt;
|
|
|
|
uint8_t minTTsinal;
|
|
|
|
uint8_t timeout;
|
2023-08-03 03:04:50 +00:00
|
|
|
uint8_t openWindowTime[8];
|
2023-08-01 08:27:21 +00:00
|
|
|
uint16_t maxSizePerFile;
|
|
|
|
uint8_t commMode;
|
|
|
|
uint8_t selfDesSW;
|
|
|
|
uint8_t locAlert;
|
|
|
|
uint8_t locReportInterval;
|
|
|
|
|
2023-06-20 10:09:07 +00:00
|
|
|
} SYS_CFG;
|
2023-06-06 07:45:13 +00:00
|
|
|
|
|
|
|
//struct rt_event sw_check;//软件条件
|
|
|
|
|
2023-07-29 08:08:15 +00:00
|
|
|
#define ROOT_PATH_LOG "/sd/log/"
|
|
|
|
#define ROOT_PATH_DATA "/sd/rxdata/"
|
2023-06-06 07:45:13 +00:00
|
|
|
|
2023-08-15 09:10:18 +00:00
|
|
|
#define RELAY
|
2023-06-06 07:45:13 +00:00
|
|
|
|
2023-06-02 02:23:26 +00:00
|
|
|
#endif /* APPLICATIONS_USRCFG_H_ */
|