From 842bb64195f958b050867c50db66fc0aa413dafb Mon Sep 17 00:00:00 2001
From: QuakeGod <quakegod@sina.com>
Date: 星期六, 27 七月 2024 10:42:56 +0800
Subject: [PATCH] KBus upgrade

---
 KMini_CCT6/Inc/functions.h |   39 +++++++++++++++++++++++++++++----------
 1 files changed, 29 insertions(+), 10 deletions(-)

diff --git a/KMini_CCT6/Inc/functions.h b/KMini_CCT6/Inc/functions.h
index f55a927..6760cf4 100644
--- a/KMini_CCT6/Inc/functions.h
+++ b/KMini_CCT6/Inc/functions.h
@@ -45,23 +45,36 @@
 	};
 }shortbits;
 
-#define RX5BUFSIZE 64
-#define TX5BUFSIZE 64
+#define RX1BUFSIZE 160
+#define TX1BUFSIZE 260
+
+#define UART3RXBUFSIZE 256
+#define UART3TXBUFSIZE 64
+
+extern stUartStat Uart3Stat;
+extern unsigned char Uart3RxBuf[UART3RXBUFSIZE];
+extern unsigned char Uart3TxBuf[UART3TXBUFSIZE];
+extern unsigned int Uart3RecvBuf1DataLen;
+extern unsigned int Uart3ToSendLen;
+extern unsigned int Uart3SentLen;
+
+#define UART5RXBUFSIZE 256
+#define UART5TXBUFSIZE 64
 
 extern stUartStat Uart5Stat;
-extern unsigned char Uart5RxBuf[RX5BUFSIZE];
-extern unsigned char Uart5TxBuf[TX5BUFSIZE];
+extern unsigned char Uart5RxBuf[UART5RXBUFSIZE];
+extern unsigned char Uart5TxBuf[UART5TXBUFSIZE];
 extern unsigned int Uart5RecvBuf1DataLen;
 extern unsigned int Uart5ToSendLen;
 extern unsigned int Uart5SentLen;
 
 
-#define RX6BUFSIZE 64
-#define TX6BUFSIZE 64
+#define UART6RXBUFSIZE 64
+#define UART6TXBUFSIZE 64
 
 extern stUartStat Uart6Stat;
-extern unsigned char Uart6RxBuf[RX6BUFSIZE];
-extern unsigned char Uart6TxBuf[TX6BUFSIZE];
+extern unsigned char Uart6RxBuf[UART6RXBUFSIZE];
+extern unsigned char Uart6TxBuf[UART6TXBUFSIZE];
 extern unsigned int Uart6RecvBuf1DataLen;
 extern unsigned int Uart6ToSendLen;
 extern unsigned int Uart6SentLen;
@@ -96,17 +109,23 @@
 void Uart1RecvDone(void);
 void Uart2SendDone(void);
 void Uart2RecvDone(void);
+
+void Uart3SendDone(void);
+void Uart3RecvDone(void);
+void Uart3SendPacket(char * str, int len);
+
 void Uart5SendDone(void);
 void Uart5RecvDone(void);
 void Uart5SendPacket(char * str, int len);
 
 void Uart6SendDone(void);
 void Uart6RecvDone(void);
-void Uart6SendPacket(char * str, int len);
+void Uart6SendPacket(unsigned char * str, int len);
 
-void SLPSendPacket(char * str, uchar len);
+void SLPSendPacket(void * str, uchar len);
 	
 int PutStr(char * str1, int len1);
+int PutStr2(char * str1, int len1);
 int SendPacket(int nChn, void * pBuf,int len1);
 //int SendPacket1(void * pBuf,int len1);
 //int SendPacket2(pKBPacket p1,int len1);

--
Gitblit v1.9.1