8cb31be86b
看门狗不工作 待更新cfg中ini_puts和ini_gets函数为ini_putl和ini_getl
28 lines
554 B
C
28 lines
554 B
C
/*
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*
|
|
* Change Logs:
|
|
* Date Author Notes
|
|
* 2023-05-30 murmur the first version
|
|
*/
|
|
|
|
#include <rtthread.h>
|
|
/* 串口接收消息结构*/
|
|
typedef struct
|
|
{
|
|
char key[10];
|
|
char value[10];
|
|
} CFG_MSG;
|
|
|
|
#define CFGCHANGEED 1
|
|
#define SENDINTERVAL 1<<1
|
|
#define MAXSIZEPERFILE 1<<2
|
|
#define COMPRESSTYPE 1<<3
|
|
#define ENCRYTTYPE 1<<4
|
|
|
|
int get_cfg(const char *k);
|
|
int set_cfg(const char *k, const char*v);
|
|
int add_val(const char *k);
|