Revert "移植与电子模块通信相关代码"

This reverts commit 8e3a140bec
This commit is contained in:
andy
2023-10-06 10:52:48 +00:00
parent 8e3a140bec
commit 8a263181ce
77 changed files with 1168 additions and 13331 deletions

View File

@@ -2,9 +2,9 @@
#define transmit_h__
#include "rtthread.h"
#include "handle.h"
#include "signal.h"
#include "stdint.h"
#include "bytearray.h"
// 错误码定义
@@ -25,7 +25,7 @@ typedef struct _ucport_def{
tran_def *p;
int (*dolater)(struct _ucport_def *u,uint8_t cmd,array_def *data,char *err_str);
void (*del)(struct _ucport_def *h);
void (*doend)(struct _ucport_def *h,void *src,void *data,int ack,char *err_str);
void (*doend)(struct _ucport_def *h,port_mcu *src,void *data,int ack,char *err_str);
}ucport_def;
@@ -57,6 +57,8 @@ void tran_recv_slot(tran_def *t,const char *codec_name,uint8_t cmd,array_def *da
void tran_set_busy(tran_def *t,int busy);
int tran_get_busy(tran_def *t);
port_mcu *tran_get_portm(tran_def *t,int index);
uint32_t tran_get_slave_online(tran_def *t);
signal tran_reply_signal(tran_def *p,array_def *data);