98a895fb3e
添加默认rtc闹钟,用于更新debug日志文件名 func.c 去掉重复校验逻辑 func.h 添加部分宏定义注释 getinfo.c 修复TT关机后未复位状态信息的bug log2file.c 添加更新debug日志文件名的功能 ttTR.c 增加msg_pool及TTRx_MSG的大小 增加ULOG_ASYNC_OUTPUT_BUF_SIZE大小
29 lines
637 B
C
29 lines
637 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
|
|
*/
|
|
#ifndef APPLICATIONS_TTTR_H_
|
|
#define APPLICATIONS_TTTR_H_
|
|
|
|
|
|
//struct rt_messagequeue TTrx_mq;
|
|
typedef struct
|
|
{
|
|
rt_uint8_t data[512];
|
|
int size;
|
|
}TTRx_MSG;
|
|
|
|
int tcpInit(void);
|
|
int tcpRec(unsigned char *recv_data);
|
|
int sendMsg(const rt_uint8_t *msg, size_t len);
|
|
int sendMsgs(const rt_uint8_t (*msg)[200], char *s, size_t row);
|
|
void tcpClose(void);
|
|
int isTCPok(void);
|
|
void tcpRecMQ(void);
|
|
#endif /* APPLICATIONS_TTTR_H_ */
|