c83440e33a
基本完成参数更新功能,目前仅加载了部分参数
46 lines
760 B
C
46 lines
760 B
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 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
|
|
{
|
|
int sendInterval;
|
|
int maxTTWaitTime;
|
|
int maxTTRetryCnt;
|
|
int minTTPeriCnt;
|
|
int minTTsinal;
|
|
int minActiveTime;
|
|
int maxActiveTime;
|
|
} SYS_CFG;
|
|
|
|
//struct rt_event sw_check;//软件条件
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* APPLICATIONS_USRCFG_H_ */
|